- Python
- TypeScript
signature
The
Language type is defined as:NoneExample: single secondary language
- Python
- TypeScript
example.py
Example: multiple secondary languages
- Python
- TypeScript
example.py
Transcript behavior
- There is no auto-translation on the transcript. Each turn appears in the language it was spoken in — if the caller speaks Spanish, that turn is in Spanish; if they speak English, that turn is in English.
- There is currently no per-turn language marker in the transcript.
Edge cases
- If
secondaryis empty or not provided, the agent operates inprimaryonly (the current default behavior). - When a non-English language is detected during a call, the system automatically switches to a language-specific TTS voice.
- The
gracevoice has clones for Spanish, French, German, and Italian. If no dedicated clone exists for a voice + language combination, the base voice is used.