Deepgram Post Speak Generate
1积分/次
ae_deepgram_post_speak_generate
使用 Deepgram 的 TTS REST API 将文本转换为自然语音。JSON 正文通过 request_body 提供,其中 text 为待合成文本。可选 callback 指定回调地址,callback_method 支持 post 或 put,默认 post。speed 为 0.7–1.5 的语速倍率,仅部分模型支持;不支持或希望使用上游默认语速时应省略,省略时不发送 speed。其他参数按现有参数说明使用。
1积分/次
价格说明
1积分/次
| 条件 | 费用 |
|---|---|
| 每次调用 | 1积分/次 |
工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
tag | string | array | 否 | Label your requests for the purpose of identification during usage reporting | — |
model | enum (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) | 否 | Speech synthesis voice model. Choose an exact published Aura voice identifier; the suffix identifies the language. | aura-asteria-en |
speed | number | 否 | Speaking rate multiplier from 0.7 to 1.5, inclusive. Not supported in all languages; omit when unsupported. | — |
bit_rate | string | 否 | Output 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. | — |
callback | string | 否 | URL to which we'll make the callback request | — |
encoding | unknown | 否 | Encoding allows you to specify the expected encoding of your audio output | mp3 |
container | enum (none | wav | ogg) | 否 | Output 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_out | boolean | 否 | 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 | false |
sample_rate | enum (8000 | 16000 | 22050 | 24000 | 32000 | 48000) | 否 | Output 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_body | object | 否 | Request body for text-to-speech conversion | — |
request_body.text | string | 是 | The text content to be converted to speech | — |
callback_method | unknown | 否 | HTTP method by which the callback request will be made | post |
调用示例
复制请求代码,查看对应的返回示例。
POST
/agent-api/v1/tool/executeX-Api-Key请求代码request.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.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"
}




