Numerals
Numerals converts numbers from written format to numerical format.
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”.
This feature is available for English only (all available regions).
Enable Feature
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.
Toggling Numerals during a real-time stream
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.
Results
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.