Async transcription
Learn about async transcription for audio files.
Overview
Soniox supports asynchronous transcription for audio files, allowing you to transcribe content without needing a live connection or streaming pipeline. You can submit audio from a public URL or by uploading a local file to the Soniox Files API.
Once submitted, transcription jobs are processed in the background and can be polled for status and results.
Audio input options
Transcribe from public URL
If your audio is hosted at a publicly accessible HTTP URL, you can simply use
the audio_url
parameter when creating the transcription request.
Transcribe from local file
To transcribe a local file, follow these steps:
- Upload the file using the Files API.
- Use the returned file
id
when creating the transcription request.
Files API endpoints
Endpoint | Description |
---|---|
POST /v1/files | Upload file — Uploads a local file |
GET /v1/files/{id} | Get file — Returns metadata for a specific file |
GET /v1/files | List files — Lists all uploaded files |
DELETE /v1/files/{id} | Delete file — Deletes a specific file |
Limits
Limit Type | Value |
---|---|
Total file size (GB) | 10 |
Total number of files | 1,000 |
These limits can be increased in the Soniox Console upon request.
Transcriptions API endpoints
Endpoint | Description |
---|---|
POST /v1/transcriptions | Create transcription — Submits a transcription job |
GET /v1/transcriptions/{id} | Get transcription — Returns metadata for a job |
GET /v1/transcriptions/{id}/transcript | Get transcript — Returns the actual transcription result |
GET /v1/transcriptions | List transcriptions — Lists all transcription jobs |
DELETE /v1/transcriptions/{id} | Delete transcription — Deletes a specific transcription job |
Limits
Limit Type | Value |
---|---|
Total transcriptions | 2,000 |
Pending transcriptions | 100 |
These limits can be increased in the Soniox Console upon request.
Best practices
- Delete uploaded files once transcription is completed and no longer needed.
- Delete transcription jobs after retrieving the results to avoid hitting quota limits.
Examples
Transcribe a file from URL
Demonstrates how to create an asynchronous transcription job using
a publicly accessible audio URL. No upload step is required — simply pass the
URL in the audio_url
parameter of the transcription request.
This is the easiest way to transcribe hosted audio content.
Output:
Transcribe a file from disk
Covers how to transcribe audio from a local file by first uploading it to Soniox
using the Files API. After uploading, use the returned file id
in your
transcription request.
This approach is ideal for files not accessible via a public URL.
Make sure you run this code from the directory that contains your audio file or update the file path to the correct location.
Output
Delete all files
Deletes all uploaded files from your organization.
Delete all transcriptions
Deletes all completed transcription jobs from your organization.