Single Text Request

POST

Convert text into natural-sounding speech using Deepgram’s TTS API

Query parameters

bit_rateintegerRequired>=4000<=192000

The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.

callbackstringOptional

URL to which we’ll make the callback request

containerenumOptionalDefaults to wav

Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.

Allowed values: nonewavogg
encodingenumOptionalDefaults to mp3

Encoding allows you to specify the expected encoding of your audio output

modelenumOptionalDefaults to aura-asteria-en

AI model used to process submitted text

sample_rateintegerRequired

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.
textstringRequired

The text content to be converted to speech

Response

Successful text to speech

abc
File DownloadBase64 string or null

Errors

Built with