Deepgram Post Speak Generate

From 18 credits per 1,000 characters
ae_deepgram_post_speak_generate

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

TTSAudio
From 18 credits per 1,000 characters

Pricing

From 18 credits per 1,000 characters
ModeRate
Aura-118 credits per 1,000 characters
Aura-236 credits per 1,000 characters

Billed by input characters and selected Aura model.

Round the final total to three decimal places below 1 credit, or two places at 1 credit or more. Positive totals have a 0.001-credit minimum.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
tagstring | arrayNoLabel your requests for the purpose of identification during usage reporting—
modelenum (aura-angus-en | aura-arcas-en | aura-asteria-en | aura-athena-en | aura-helios-en | aura-hera-en | aura-luna-en | aura-orion-en | aura-orpheus-en | aura-perseus-en | aura-stella-en | aura-zeus-en | aura-2-amalthea-en | aura-2-andromeda-en | aura-2-apollo-en | aura-2-arcas-en | aura-2-aries-en | aura-2-asteria-en | aura-2-athena-en | aura-2-atlas-en | aura-2-aurora-en | aura-2-callista-en | aura-2-cora-en | aura-2-cordelia-en | aura-2-delia-en | aura-2-draco-en | aura-2-electra-en | aura-2-harmonia-en | aura-2-helena-en | aura-2-hera-en | aura-2-hermes-en | aura-2-hyperion-en | aura-2-iris-en | aura-2-janus-en | aura-2-juno-en | aura-2-jupiter-en | aura-2-luna-en | aura-2-mars-en | aura-2-minerva-en | aura-2-neptune-en | aura-2-odysseus-en | aura-2-ophelia-en | aura-2-orion-en | aura-2-orpheus-en | aura-2-pandora-en | aura-2-phoebe-en | aura-2-pluto-en | aura-2-saturn-en | aura-2-selene-en | aura-2-thalia-en | aura-2-theia-en | aura-2-vesta-en | aura-2-zeus-en | aura-2-agustina-es | aura-2-alvaro-es | aura-2-antonia-es | aura-2-aquila-es | aura-2-carina-es | aura-2-celeste-es | aura-2-diana-es | aura-2-estrella-es | aura-2-gloria-es | aura-2-javier-es | aura-2-luciano-es | aura-2-nestor-es | aura-2-olivia-es | aura-2-selena-es | aura-2-silvia-es | aura-2-sirio-es | aura-2-valerio-es | aura-2-aurelia-de | aura-2-elara-de | aura-2-fabian-de | aura-2-julius-de | aura-2-kara-de | aura-2-lara-de | aura-2-viktoria-de | aura-2-beatrix-nl | aura-2-cornelia-nl | aura-2-daphne-nl | aura-2-hestia-nl | aura-2-lars-nl | aura-2-leda-nl | aura-2-rhea-nl | aura-2-roman-nl | aura-2-sander-nl | aura-2-agathe-fr | aura-2-hector-fr | aura-2-cesare-it | aura-2-cinzia-it | aura-2-demetra-it | aura-2-dionisio-it | aura-2-elio-it | aura-2-flavio-it | aura-2-livia-it | aura-2-maia-it | aura-2-melia-it | aura-2-ama-ja | aura-2-ebisu-ja | aura-2-fujin-ja | aura-2-izanami-ja | aura-2-uzume-ja)NoSpeech synthesis voice model. Choose an exact published Aura voice identifier; the suffix identifies the language.aura-asteria-en
speednumberNoSpeaking rate multiplier from 0.7 to 1.5, inclusive. Not supported in all languages; omit when unsupported.—
bit_ratestringNoOutput bitrate in bits per second, passed as a string for compatibility with the current Wrapper, for example "48000". mp3: "32000" or "48000"; opus: 4000 through 650000; aac: 4000 through 192000. Ranges depend on encoding. Omit for other encodings and to use the encoding-specific default. Do not pass a JSON number.—
callbackstringNoURL to which we'll make the callback request—
encodingunknownNoEncoding allows you to specify the expected encoding of your audio outputmp3
containerenum (none | wav | ogg)NoOutput container. linear16/mulaw/alaw accept wav or none; opus uses ogg. Omit for mp3, flac and aac. Omit to let the selected encoding choose its default.—
mip_opt_outbooleanNoOpts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mipfalse
sample_rateenum (8000 | 16000 | 22050 | 24000 | 32000 | 48000)NoOutput sample rate in Hz. linear16: 8000,16000,24000,32000,48000; mulaw/alaw: 8000 or 16000; flac: 8000,16000,22050,32000,48000. mp3/aac are fixed at 22050 and opus at 48000: omit sample_rate for these encodings. Omit to use the encoding-specific default. Pass a string, for example "8000", not a JSON number.—
request_bodyobjectNoRequest body for text-to-speech conversion—
request_body.textstringYesThe text content to be converted to speech—
callback_methodunknownNoHTTP method by which the callback request will be madepost

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_deepgram_post_speak_generate' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "audio_only": true,
      "text": "大家好,欢迎来到今天的口播节目。今天我们来聊聊AI音乐生成的最新进展。",
      "voice": "aura"
    }
  }
}'
Response exampleresponse.json
JSON
{
  "err_code": "INVALID_QUERY_PARAMETER",
  "err_msg": "Failed to deserialize query parameters: unknown variant `POST`, expected `post` or `put`",
  "request_id": "01a1c494-164e-7b81-b026-57c304ac42b8"
}