Transcription API Features Guide
Introduction
Salad Transcription API offers a suite of powerful features to help you get the most out of your audio and video content. This guide covers the key transcription parameters you can use to customize your transcription outputs:- Transcription Output Options:
audio_stream_indexreturn_as_filesentence_level_timestampsword_level_timestamps
- Speaker Identification:
multichanneldiarizationsentence_diarization
- Model Selection:
enhanced_accuracy
- Language Specification:
language_code
Transcription Parameters
1. return_as_file
Description
Thereturn_as_file parameter allows you to receive your transcription output as a downloadable file URL. This is
particularly useful when dealing with large responses, as it helps avoid issues with response size limitations.
- Default:
false - Type:
boolean
Usage
Set"return_as_file": true in your request to receive the transcription output as a file URL.
Example:
- If the response size exceeds 1 MB, the output will automatically be returned as a file URL, even if return_as_file is set to false.
- This helps ensure reliable delivery of large transcription outputs.
2. sentence_level_timestamps
Description
Include timestamps at the sentence level in your transcription output.- Default:
false - Type:
boolean
Usage
Set"sentence_level_timestamps": true to include sentence-level timestamps. Set to false if you do not need them.
Example:
3. word_level_timestamps
Description
Include timestamps for each word in your transcription output.- Default:
false - Type:
boolean
Usage
Set"word_level_timestamps": true to include word-level timestamps.
Example:
4. diarization
Description
Enable speaker separation and identification at the word level.- Default:
false - Type:
boolean
Usage
Example:5. sentence_diarization
Description
Include speaker information at the sentence level.- Default:
false - Type:
boolean
Usage
Example:6. multichannel
Description
Preserve separate audio channels for channel-based diarization. This option is available on primarytranscribe only.
- Default:
false - Type:
boolean
"multichannel": true. Enable the output behavior needed by your workflow:
"diarization": truefor word-level speaker/channel results."sentence_diarization": truefor sentence-level speaker/channel results.
multichannel to Transcription Lite.
Usage
7. language_code
Description
Thelanguage_code parameter selects a Whisper language code. Omit it or set it to null to use automatic detection.
- Default:
null(automatic detection) - Type:
stringornull
Usage
Set thelanguage_code to the ISO 639-1 code of the audio’s language.
Example:
Note
- Automatic Detection: Omit
language_codeor set it tonullto enable automatic detection. - Translation Option: Use
"translate": "to_eng"for the only currently defined Whisper translation behavior. - Multilingual Content: For multilingual audio, it is better not to specify a language to ensure the best results.
language_code or leveraging the automatic detection feature, you ensure the best possible
transcription quality tailored to your audio content.
8. audio_stream_index
Use this field for MP4 or other multitrack media when you need a specific audio stream. It is a zero-based integer; omit
it or set it to null when no explicit stream selection is needed.
9. enhanced_accuracy
Set this primary-only boolean to true to use a language-specific fine-tuned model when one is available. Its default
is false; availability for a language must not be inferred from this setting alone.