Soniox

Get started

Translate live speech across supported languages with low-latency streaming.

Soniox lets you translate live speech in real time across 60+ languages and 3,600+ language pairs. You can stream translated text as people speak, or combine Soniox STT and TTS to build full speech-to-speech translation.

Speech translation is built into the Soniox real-time API, so you can start with transcription and enable translation with a simple configuration change.


Two ways to build speech translation


Two ways to translate live speech


Language coverage

Speech translation uses the Soniox supported-language set and supports more than 3,600 language pairs.

See Supported languages for the language list and coverage details.


Run speech-to-text translation examples

Use the official examples repo to try real-time one-way and two-way translation with sample audio.

Get API key

Create a Soniox account and log in to the Console to get your API key.

API keys are created per project. In the Console, go to My First Project and click API Keys to generate one.

Export it as an environment variable:

Terminal
export SONIOX_API_KEY=<YOUR_API_KEY>

Get examples

Clone the official examples repo:

Terminal
git clone https://github.com/soniox/soniox_examples
cd soniox_examples/speech_to_text

Run speech-to-text translation examples

Choose your language and run the translation examples below.

Example
What it doesOutput
Real-time
one-way translation
Transcribes speech in any detected language and translates it into Spanish in real time.Transcript + Spanish translation streamed together.
Real-time
two-way translation
Transcribes and translates English ↔ Spanish in real time. Spanish → English, English → Spanish.Transcript + bidirectional translations streamed together.
Terminal
cd python_sdk

# Set up environment
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# One-way translation of a live audio stream
python soniox_sdk_realtime.py --audio_path ../assets/coffee_shop.mp3 --translation one_way

# Two-way translation of a live audio stream
python soniox_sdk_realtime.py --audio_path ../assets/two_way_translation.mp3 --translation two_way
Terminal
cd nodejs_sdk

# Install dependencies
npm install

# One-way translation of a live audio stream
node soniox_sdk_realtime.js --audio_path ../assets/coffee_shop.mp3 --translation one_way

# Two-way translation of a live audio stream
node soniox_sdk_realtime.js --audio_path ../assets/two_way_translation.mp3 --translation two_way
Terminal
cd python

# Set up environment
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# One-way translation of a live audio stream
python soniox_realtime.py --audio_path ../assets/coffee_shop.mp3 --translation one_way

# Two-way translation of a live audio stream
python soniox_realtime.py --audio_path ../assets/two_way_translation.mp3 --translation two_way
Terminal
cd nodejs

# Install dependencies
npm install

# One-way translation of a live audio stream
node soniox_realtime.js --audio_path ../assets/coffee_shop.mp3 --translation one_way

# Two-way translation of a live audio stream
node soniox_realtime.js --audio_path ../assets/two_way_translation.mp3 --translation two_way