Skip to main content

Deepgram

Deepgram provides fast, accurate automatic speech recognition with advanced AI models optimized for real-time streaming and conversational applications across multiple languages.

Sample configuration

The following example shows a starting asr parameter configuration you can use when you Start a conversational AI agent.


_9
"asr": {
_9
"vendor": "deepgram",
_9
"params": {
_9
"url": "wss://api.deepgram.com/v1/listen",
_9
"key": "<deepgram_key>",
_9
"model": "nova-2",
_9
"language": "en"
_9
}
_9
}

Key parameters

paramsrequired
  • url stringnullable

    The WebSocket URL for Deepgram's streaming API.

  • key stringrequired

    The API key used for authentication. Get your API key from the Deepgram Console.

  • model stringnullable

    The speech recognition model to use.

  • language stringnullable

    The language code for speech recognition (For example, en, es, fr). See supported languages for language codes.

For advanced configuration options, model selection, and detailed parameter descriptions, see the Deepgram API documentation.

caution

The following parameters are not passed through and instead use default values set by Agora:

  • callback
  • callback_method
  • channels
  • encoding
  • multichannel
  • sample_rate