Number and language options
How-to guide · Assumes you have completed the Speech to Text quickstart.
Overview
Scribe v3 adds two optional parameters to the batch Speech to Text API:
numbers_formatsets whether numbers in the transcript are written as digits (42) or as words (forty-two).secondary_language_codeslists other languages that may be spoken in the audio alongsidelanguage_code. This improves accuracy on audio where speakers switch between languages.
Both parameters are only supported by scribe_v3. Sending either one with another model returns an invalid_parameters error.
The SDKs don’t have typed arguments for these parameters yet. In Python, pass them through
request_options. In TypeScript, send the request with fetch.
Format numbers
Set numbers_format to digits or words. When the parameter is omitted, the model chooses the format.
numbers_format controls how the model transcribes numbers. For other changes to how dates, times or units are written, use transcript editing.
Declare secondary languages
Set language_code to the main language of the audio and secondary_language_codes to the other languages you expect. Both accept ISO-639-1 or ISO-639-3 codes.
secondary_language_codes is a list. Repeat the form field once per language. A JSON array sent as a single string is not accepted.
The following example transcribes English audio that also contains Spanish and French:
Unrecognized codes in secondary_language_codes are skipped without an error. Check the codes
against the supported languages
before sending the request.
Scribe v3 transcribes speech in the language it is spoken in. It does not translate between the main and secondary languages.
Combine with other parameters
Both parameters can be used together and with other batch parameters, such as keyterms, diarize and no_verbatim. See keyterm prompting to bias transcription towards specific terms.