Language

Last updated 09/14/2021
PRE-RECORDED
STREAMING

Deepgram’s Language feature allows you to supply a BCP-47 language tag that hints at the primary spoken language of submitted audio. By default, Deepgram defaults to US English (en-US).

Use Cases

Some examples of use cases for Language include:

  • Customers with employees who live in regions with specific dialects or accents.
  • Customers who need to ensure a specific language in their dataset is recognized.

Enable Feature

To enable Language, when you call Deepgram’s API, add a language parameter in the query string and set it to the language you would like to recognize:

language=OPTION

Language support is optimized for the following language/model combinations:

LanguageRegionModel(s)
Englishen-GBgeneral
phonecall
en-INgeneral
phonecall
en-NZgeneral
en-USgeneral
meeting
phonecall
French
Labs
frgeneral
Hindi
Labs
higeneral
Koreankogeneral
Portuguese
Labs
ptgeneral
pt-BRgeneral
Russian
Labs
rugeneral
Spanishesgeneral
Turkishtrgeneral

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 OPTION with your chosen language and YOUR_DEEPGRAM_API_KEY with your Deepgram API Key. You can create an API Key in the Deepgram Console.

curl \
  --request POST \
  --header 'Authorization: Token YOUR_DEEPGRAM_API_KEY' \
  --header 'Content-Type: audio/wav' \
  --data-binary @youraudio.wav \
  --url 'https://api.deepgram.com/v1/listen?language=OPTION'

Results

Once applied, results will appear in the transcript.

language=fr

Transcript
sur votre personnage un drogué ça passe par plein de phases la défense la descente le manque la honte la colère la dépression quand on se rend les tics du visage la mâchoire les larmes le c'était quoi le plus difficile à jouer si tu le fais que si quelqu'un devrait et pas spécifique non plus un détail mais le fait que c'est c'est un homme vivant et même même indépendant des drogues ou la c'est leur vie c'est leur famille

By default, Deepgram applies its general AI model, which is a good, general purpose model for everyday situations. To learn more about the customization possible with Deepgram's API, check out the Deepgram API Reference.