Speech To Text Translate
Speech to Text Translation API
This API automatically detects the input language, transcribes the speech, and translates the text to English.
Available Options:
- REST API (Current Endpoint): For quick responses under 30 seconds with immediate results
- Batch API: For longer audio files Follow this documentation
- Supports diarization (speaker identification)
Note:
- Pricing differs for REST and Batch APIs
- Diarization is only available in Batch API with separate pricing
- Please refer to here for detailed pricing information
Headers
Request
The audio file to transcribe. Supported formats include WAV, MP3, AAC, AIFF, OGG, OPUS, FLAC, MP4/M4A, AMR, WMA, WebM, and PCM formats. The API automatically detects most codec formats, but for PCM files (pcm_s16le, pcm_l16, pcm_raw), you must specify the input_audio_codec parameter. PCM files are supported only at 16kHz sample rate. Works best at 16kHz. Multiple channels will be merged.
Audio codec/format of the input file. Our API automatically detects all codec formats, but for PCM files specifically (pcm_s16le, pcm_l16, pcm_raw), you must pass this parameter. PCM files are supported only at 16kHz sample rate.
Response
This will return the BCP-47 code of language spoken in the input. If multiple languages are detected, this will return language code of most predominant spoken language. If no language is detected, this will be null