numerals boolean Default: false
Deepgram’s Numerals feature converts numbers from written format to numerical format. For example, the number “nine hundred” would appear in your transcript as “900”.
Supported languages include:
da, da-DKnlen, en-US, en-AU, en-GB, en-NZ, en-INfr, fr-CAdede-CHitnoplpt, pt-BR, pt-PTes, es-419sv, sv-SEruheroWhen using Nova-3 Multilingual (model=nova-3, language=multi), numeral formatting is supported for: English, Spanish, French, German, Russian, Portuguese, Italian, and Dutch. Numeral formatting is not currently supported for Hindi or Japanese.
To enable numerals, when you call Deepgram’s API, add a numerals parameter set to true in the query string:
numerals=true
To transcribe audio from a file on your computer, run the following cURL command in a terminal or your favorite API client.
Be sure to replace the placeholder YOUR_DEEPGRAM_API_KEY with your Deepgram API Key. You can create an API Key in the Deepgram Console.
In addition to the query string parameter, if you’re sending real-time streaming data, you can turn Numerals on or off at any point during the stream. To do so, send the following JSON message to the websocket:
Numerals can be turned on and off multiple times during a stream if desired.
Once applied, results will appear in the transcript.
When punctuation is enabled, converted numbers do not include it. For example, 999,999 will always be transcribed as 999999.