Language

Last updated 10/20/2021
BATCH
STREAM

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)
English

en-GB

general
phonecall

en-IN

general
phonecall

en-NZ

general

en-US

general
meeting
phonecall
voicemail
finance
conversationalai

French
Labs

fr

general

German
Labs

de

general

Hindi
Labs

hi

general

Korean

ko

general

Portuguese
Labs

pt

general

pt-BR

general

Russian
Labs

ru

general

Spanish

es

general

Turkish

tr

general



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 swap the placeholder username and password with the email address you used to create your Deepgram account and your Deepgram password.

curl
-X POST
-u USERNAME:PASSWORD
-H "Content-Type: audio/wav"
--data-binary @myaudio.wav
"https://brain.deepgram.com/v2/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 Speech Recognition API Reference.