For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Ask AIPlaygroundLoginFree API Key
HomeAPI ReferenceVoice AgentSpeech-to-TextText-to-SpeechIntelligenceSelf-Hosted Deployments
HomeAPI ReferenceVoice AgentSpeech-to-TextText-to-SpeechIntelligenceSelf-Hosted Deployments
    • Getting Started with Speech to Text
  • Pre-Recorded Audio
    • Getting Started
    • Feature Overview
    • Template Apps
  • Streaming Audio
    • Compare Flux to Nova-3
  • Models and Languages
    • Models & Languages Overview
    • Languages Support
    • Language Detection
    • Multilingual Codeswitching
    • Model Options
    • Version
  • Formatting
    • Speaker Diarization
    • Dictation
    • Filler Words
    • Measurements
    • Numerals
    • Paragraphs
    • Profanity Filtering
    • Punctuation
    • Redaction
    • Smart Formatting
    • Supported Entity Types
    • Utterances
    • Utterance Split
  • Custom Vocabulary
    • Find and Replace
    • Keyterm Prompting
    • Keywords
    • Search
  • Media Input Settings
    • Channels
    • Encoding
    • Multichannel
    • Sample Rate
  • Results Processing
    • Understanding Word Confidence Scores
    • STT Callback
    • STT Tagging
    • Extra Metadata
  • Migrating
    • Migrating From Amazon Web Services (AWS) Transcribe to Deepgram
    • Migrating From Google Speech-to-Text (STT) to Deepgram
    • Migrating From OpenAI Whisper to Deepgram
    • Migrating from AssemblyAI Speech-to-Text to Deepgram
LogoLogo
Ask AIPlaygroundLoginFree API Key
On this page
  • Enable Feature
Media Input Settings

Sample Rate

Sample Rate allows you to specify the sample rate of your submitted audio.
Was this page helpful?
Previous

Understanding Word Confidence Scores

Use word-level confidence scores to detect transcription errors and assess transcript quality.

Next
Built with

sample_rate int32

Pre-recorded Streaming:NovaStreaming:Flux All available languages

Enable Feature

Sample Rate is required when using the Encoding feature for non-containerized/raw audio. For containerized audio formats, both sample_rate and encoding should be omitted.

To enable Sample Rate, when you call Deepgram’s API, add a sample_rate parameter in the query string and set it to the sample rate of your submitted audio.

sample_rate=SAMPLE_RATE_VALUE

cURL
$curl \
> --request POST \
> --header 'Authorization: Token YOUR_DEEPGRAM_API_KEY' \
> --header 'Content-Type: audio/mp3' \
> --data-binary @youraudio.mp3 \
> --url 'https://api.deepgram.com/v1/listen?sample_rate=8000&encoding=linear16'

When submitting audio encoded with the Adaptive Multi-Rate (AMR) codec, you must submit specific Sample Rate values:

  • amr-nb: AMR narrowband codec. When using this option, you must specify sample_rate=8000 (encoding=amr-nb&sample_rate=8000).
  • amr-wb: AMR wideband codec. When using this option, you must also specify sample_rate=16000 (encoding=amr-wb&sample_rate=16000).