Transcribe file
Learn how to transcribe an audio file using Speech-to-Text API.
Soniox Speech-to-Text API supports high-accuracy transcription in 50+ of the world's most spoken languages, with language auto-detection included. Let's dive in and transcribe an audio file.
Get API key
Create a free Soniox Account and login into Soniox Console to create an API key.
Note: API keys are bound to projects. Click on "API keys" under "My First Project" section to create one.
Configure environment
Store the API key in the SONIOX_API_KEY
environment variable to prevent accidental exposure.
Note: Alternative is to put the API key in .env file, if you already have it configured.
Transcribe
Following two examples demonstrate how to use the /transcriptions
API endpoint to:
- Create a transcription session.
- Keep checking if transcription completed.
- Get the transcript.
Supported file formats
Soniox supports and automatically detects most common audio formats from file headers.
Officially supported file formats are mp3, wav, flac, ogg, aac, aiff, amr, and asf.