Soniox
Docs

Transcribe in real-time

Learn how to transcribe a live audio stream.

Learn how to transcribe a live audio stream

Use Soniox WebSocket API to transcribe live audio streams with high accuracy and ultra-low latency. This is ideal for live broadcast captioning, direct microphone input, real-time voice applications, and more.

Get an API key

Create a free Soniox Account and log in to the Soniox Console to generate an API key.

API keys are tied to individual projects. To create one, click API Keys under the My First Project section in the Console.

Configure your environment

Store your API key in the SONIOX_API_KEY environment variable so your code can authenticate automatically.

Terminal
export SONIOX_API_KEY=<YOUR_API_KEY>

Transcribe a live audio stream

The following example demonstrates how to transcribe a live audio stream with low latency in real time.

On this page