measurements booleanDefault: false
The Measurements feature in Deepgram’s Speech-to-Text API allows for the automatic conversion of spoken measurement units into their respective abbreviations.
By enabling this feature, terms such as “milligram” will be transcribed as “mg”.
To enable the Measurements feature, you need to set the measurements parameter to true when making an API request.
measurements=true
To transcribe audio with the Measurements feature enabled, use the following cURL command:
Replace YOUR_DEEPGRAM_API_KEY with your Deepgram API Key.
When the Measurements feature is enabled, the transcribed text will contain abbreviations for measured units.
In this example, spoken measurements like “grams” and “milliliters” have been converted to their respective abbreviations “g” and “ml” in the transcript.
The following units will be converted to their abbreviations.