Async transcription with Node SDK
Transcribe audio files asynchronously with the Soniox Node SDK
Soniox Node 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
SDK provides you a convenient method to transcribe audio from a local file, public URL, or previously uploaded file.
The transcribe method will:
- Upload the file to Soniox if it's not already uploaded (if
fileis provided) - Transcribe the audio
- Await for the transcription to complete (if
wait: trueis provided) - Return the transcription object and final transcript (you can disable this by setting
fetch_transcript: falseand fetch transcript later usinggetTranscriptmethod) - Delete the file from Soniox if was uploaded (configurable using
cleanupoption)
Don't forget to remove files and transcriptions from Soniox after you're done with them if cleanup option is not set.
Transcribe from a local file and delete everything after transcription is complete
Transcribe from a public URL and fetch the transcript later using getTranscript method
Transcribe from a previously uploaded file and setup a webhook to get the transcription when it's complete
Learn more about testing webhooks locally.
Retrieve list of transcriptions
You can retrieve a list of transcriptions using list method.
The returned result is async iterable - use for await...of to iterate through all pages.
Get transcription
You can get a transcription by ID using get method.
Get transcription transcript
You can get a transcription transcript using getTranscript method.
Or get transcript by transcription ID.
Segmenting transcripts
Group tokens by speaker and language changes:
Delete or destroy transcription
You can delete or destroy a transcription using delete or destroy method.
Delete transcription only
Delete transcription and its file if it was uploaded
Delete all transcriptions and files from your account
Delete all transcriptions
You can delete all transcriptions using stt.delete_all method.
Delete all transcriptions and their files
You can delete all transcriptions and their files using stt.destroy_all method.
delete_all and destroy_all operations are irreversible and cannot be undone.