Asia/Karachi
ProjectsJuly 11, 2025

Real-Time Phone Call Translator — English to German, Live on the Call

Real-Time Phone Call Translator — English to German, Live on the Call — project by Abdul Qudoos
A caller speaks English on an ordinary phone call and hears German back, generated live during the call. I built the whole pipeline alone: telephony, streaming speech recognition, context-aware translation, streaming speech synthesis, and a React view of transcripts and translations.
  1. Telephony: a Twilio voice webhook opens a Media Stream, and call audio arrives over a WebSocket as μ-law frames.
  2. Speech-to-text: the audio goes straight to Deepgram's streaming API (Nova-2, μ-law encoding) for live transcripts.
  3. Translation with memory: each transcript segment is translated by OpenAI with the last few English/German exchanges in the prompt. The model keeps terms consistent across the call and fixes obvious transcription errors before translating.
  4. Text-to-speech: the German text streams to ElevenLabs over WebSockets (eleven_flash_v2_5, tuned chunk scheduling), so audio starts playing before the sentence is finished.
  5. Observability: REST endpoints expose each call's audio chunks, transcripts and translations, and the React frontend shows them live.
  • Stream everything: speech-to-text, translation and text-to-speech all run incrementally. Waiting for complete sentences at each stage adds seconds of delay, which ruins a phone conversation.
  • A rolling memory instead of the full history: the last 10 exchanges are kept and the last 5 go into the prompt. That's enough to keep translations consistent without growing token cost and latency over a long call.
  • Let the translator repair speech-to-text: phone audio is noisy. Asking the model to correct obvious transcription mistakes as it translates fixed errors that would otherwise carry through to the German.
Node.js · Express · WebSockets · Twilio Voice & Media Streams · Deepgram streaming STT · OpenAI · ElevenLabs streaming TTS · React · Vite This audio pipeline became the foundation for the LangGraph voice AI agent, where the same Twilio → speech-to-text → LLM → text-to-speech loop drives agents that take real actions.
Twilio
Deepgram
OpenAI
ElevenLabs
Node.js
React

Related projects

Devrox — Modern CRM for Sales Teams

Devrox — Modern CRM for Sales Teams

A full-featured CRM built for growing teams — pipelines, contacts, tasks, and activity tracking in one fast workspace. Devrox helps sales and ops teams manage leads, follow-ups, and customer relationships without spreadsheet chaos.
GoRural — Travel & Rural Experience Platform

GoRural — Travel & Rural Experience Platform

A travel platform connecting explorers with rural destinations, local stays, and countryside experiences. GoRural makes it easy to discover off-the-beaten-path trips, book experiences, and plan authentic rural getaways.
Gym Paladin — Fitness & Gym Management Platform

Gym Paladin — Fitness & Gym Management Platform

A fitness platform for gyms and members — workouts, memberships, progress tracking, and gym operations in one place. Gym Paladin helps athletes stay consistent while giving gym owners tools to manage members and programs.
RemaxHub — Property Experts for Buyers & Investors

RemaxHub — Property Experts for Buyers & Investors

A real estate platform connecting buyers and investors with property experts, listings, and market insights. RemaxHub helps users explore opportunities, compare investments, and work with trusted advisors across residential and commercial property.
ACE Intel — Operating System for Aircraft Brokers

ACE Intel — Operating System for Aircraft Brokers

A specialized platform for aircraft brokers combining market intelligence, live inventory, valuations, and broker workflow management. Built with React, Supabase, PostgreSQL, and advanced aviation-native data modeling.
Promise Ever — Memorial Pages & Revenue Platform

Promise Ever — Memorial Pages & Revenue Platform

Create shareable, AI-enhanced memorial pages that generate preneed leads and new revenue streams for funeral homes. Built with React, Supabase, and Shotstack for cloud video rendering.