Single Text Request
Convert text into natural-sounding speech using Deepgram’s TTS REST API
Headers
Authorization
Header authentication of the form Token <token>
Query parameters
bit_rate
The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.
callback
URL to which we'll make the callback request
callback_method
HTTP method by which the callback request will be made
Allowed values:
mip_opt_out
Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
container
Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.
Allowed values:
encoding
Encoding allows you to specify the expected encoding of your audio output
model
AI model used to process submitted text
sample_rate
Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable
Request
This endpoint expects an object.
text
The text content to be converted to speech
Response
Successful text to speech