- Translates text from one language to another
- Analyzes emotional content in the translated text
- Selects appropriate voices based on language and emotion
- Creates localized voices using Cartesia’s voice localization tools
- Generates audio output with emotion-appropriate voice characteristics
Code
cookbook/examples/agents/translation_agent.py
Usage
1
Create a virtual environment
Open the
Terminal
and create a python virtual environment.2
Set your API key
3
Install libraries
4
Run Agent