A real-time Japanese–English AI translation service supporting voice and text, designed for retail marketing and customer acquisition, with strict session controls, cost governance, and production-grade security.
A retail company with a significant Japanese customer segment needed a way to bridge communication gaps in real time. Existing translation tools were either slow, text-only, or required customers to navigate third-party apps, creating friction at exactly the moment when engagement matters most.
The requirements were specific: voice and text translation, bidirectional (Japanese to English and English to Japanese), low enough latency to feel natural, and secure enough to deploy as a public-facing demo without API key exposure risks.
Cost control was equally important. A public-facing translation service without usage limits could generate unpredictable API costs. The solution needed hard session limits, not just soft guidelines.
I extended the existing voice AI platform with a dedicated translation service endpoint. The architecture preserves the low-latency properties of the core platform while adding the translation-specific controls needed for a retail use case.
The key architectural decision: the browser connects directly to the AI voice API using a short-lived ephemeral token, rather than routing audio through the backend. This preserves sub-300ms latency while keeping the actual API key entirely server-side.
System prompts are constructed server-side and bound during ephemeral token creation and cannot be tampered with by the client. The daily quota (2 sessions × 5 minutes) is enforced server-side and on the client simultaneously. Hard session closure at 305 seconds prevents any possibility of runaway API usage. The API key is never visible to the browser at any point in the flow.
The translation platform is live at spaxialiq.ai/translation and has been used successfully for retail marketing demonstrations.
Whether it's Japanese, Spanish, French, or any other language pair. I can build a real-time AI translation experience that fits your customer engagement workflow.