Sample Rate
sample_rate int32
Pre-recorded Streaming:NovaStreaming:Flux All available languages
Enable Feature
Section titled “Enable Feature”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 \
--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'