ElevenLabs TTS Eleven V3

按实际用量计费
ae_elevenlabs_tts_eleven_v3

使用所选音色和语言将文本转换为自然流畅的语音音频,并可选生成词级时间戳。

文本转语音音频
按实际用量计费

价格说明

条件费用
每次调用按实际输入字符数收费,每字符0.12 AE积分。

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
request_bodyobject是暂无参数说明。—
request_body.textstring是The text to convert to speech—
request_body.voicestring否The voice to use for speech generationRachel
request_body.stabilitynumber否Voice stability (0-1)0.5
request_body.timestampsboolean否Whether to return timestamps for each word in the generated speechfalse
request_body.language_codestring | unknown否Language code (ISO 639-1) used to enforce a language for the model.—
request_body.apply_text_normalizationenum (auto | on | off)否This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.auto

调用示例

提交任务并查询完成结果

POST/agent-api/v1/tool/executeX-Api-Key

先提交任务,再用返回的 task_id 查询,直至完成。

请求代码request.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_elevenlabs_tts_eleven_v3' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "language_code": "zh",
      "stability": 0.3,
      "text": "安美特 ANMITE,把一块会触摸的大屏,装进背包。",
      "voice": "Brian"
    }
  }
}'
返回示例response.json
JSON
{
  "description": "task accepted; poll the result via query_tool with this task_id",
  "query_tool": "ae_get_result",
  "status": "created",
  "task_id": "3c01feb7-e86c-46bb-a070-acdcfaf2ae70"
}