Skip to main content

Voice-to-Voice Translator Lite

Translate spoken audio to another language, with optional text-to-speech output.

Problem Statement

Who: Travelers, international teams, content localization
Why: Real-time voice translation enables cross-language communication without manual transcription and translation steps.

What You’ll Build

A recipe that transcribes audio, translates the text, and optionally generates speech in the target language.

Input/Output Contract

Prerequisites

TTS is optional. If TTS is not configured, the recipe will output a transcript file only. This is a safe fallback for environments without audio synthesis capabilities.

Step-by-Step Build

1

Create Recipe Directory

2

Create TEMPLATE.yaml

3

Create recipe.py

4

Create test_recipe.py

Run Locally

Deploy & Integrate: 6 Integration Models

Safety: Audio may contain PII. Handle files securely.

Troubleshooting

Cause: TTS API key not configured.Solution: Set ELEVENLABS_API_KEY environment variable. The recipe will still produce a transcript without it.
Solutions:
  • Ensure clear audio input
  • Try specifying source language explicitly
  • Use higher quality audio files

Next Steps