Async transcription with Python SDK
Transcribe audio files asynchronously with the Soniox Python SDK
Soniox Python SDK supports asynchronous transcription for audio files. This allows you to transcribe recordings without maintaining a live connection or streaming pipeline. You can either wait for completion or create a job and retrieve the results based on the webhook event.
Quickstart
The SDK provides a convenient transcribe method that accepts a local file, public URL, or previously uploaded file ID.
It will upload the file (if provided) and create the transcription job.
Don't forget to remove files and transcriptions from Soniox after you're done with them.
After creating the job, you can poll the status with client.stt.get or wait for completion with
client.stt.wait. To get the final transcript, call client.stt.get_transcript.
Don't forget to delete files and transcriptions from Soniox after you're done with them.
Get transcription
You can get a transcription by ID using get method.
Get a transcription or return None if it doesn't exist:
Get transcription transcript
If you want to receive text or tokens from a transcription, fetch the transcription transcript with get_transcript.
Retrieve list of transcriptions
You can retrieve a list of transcriptions using list method.
Delete or destroy transcription
You can delete or destroy a transcription using delete or destroy method.
Delete transcription only:
Delete a transcription only if it exists:
Delete transcription and its file if it was uploaded:
Delete all transcriptions and files from your account
You have limited space for files and transcriptions, see: Limits and quotas.
These operations are irreversible and cannot be undone.
Delete all transcriptions
You can delete all transcriptions using transcriptions.delete_all.
Delete all files
You can delete all files using files.delete_all.
Delete all transcriptions and its files
You can delete all transcriptions and its files (if it exist) using files.destroy_all.