Soniox
Docs

Transcribe a file

Learn how to transcribe an audio file asynchronously.

Learn how to transcribe an audio file asynchronously

Soniox Speech-to-Text API makes it simple to transcribe audio files in over 60 languages with high accuracy. Asynchronous transcription is ideal for processing files that are already recorded — including calls, meetings, interviews, podcasts, 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 file

The following examples demonstrate how to:

  • Create a transcription session
  • Check the status of the transcription
  • Retrieve the final transcript once it is ready

You can transcribe audio from a public URL or directly from a local file.

On this page