Ae · Elevenlabs · Tts · Multilingual · V2

10.00积分/次
ae_elevenlabs_tts_multilingual_v2

使用所选声音、语言、语速、风格控制和可选的词级时间戳,将文本转换为自然语音。

文本转语音音频
10.00积分/次

价格说明

10.00积分/次

API 调用

通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。

cURL
curl --request POST \
  --url 'https://api.agentearth.ai/v1/tools/run' \
  --header 'Authorization: Bearer $AGENTEARTH_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "tool": "ae_elevenlabs_tts_multilingual_v2",
  "input": {
    "text": "xxx",
    "speed": "1",
    "style": "0",
    "voice": "Rachel",
    "next_text": "xxx",
    "stability": "0.5",
    "timestamps": "false",
    "language_code": "xxx",
    "previous_text": "xxx",
    "similarity_boost": "0.75",
    "apply_text_normalization": "auto"
  }
}'
请求方式
POST
接口地址
/v1/tools/run
鉴权方式
Bearer Token
超时时间
60 秒
当前版本
—
响应示例
{
  "error_no": 0,
  "error_msg": "",
  "result": [
    {
      "type": "text",
      "text": "xxx"
    }
  ],
  "platform_annotations": {
    "source": "AgentEarth",
    "platform_note": "xxx",
    "platform_suggestion": "xxx"
  }
}

工具参数

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

参数类型必填说明默认值
textstring是The text to convert to speech—
speednumber否Speech speed (0.7-1.2). Values below 1.0 slow down the speech, above 1.0 speed it up. Extreme values may affect quality.1
stylenumber否Style exaggeration (0-1)0
voicestring否The voice to use for speech generationRachel
next_textstring否The text that comes after the text of the current request. Can be used to improve the speech's continuity when concatenating together multiple generations or to influence the speech's continuity in the current generation.—
stabilitynumber否Voice stability (0-1)0.5
timestampsboolean否Whether to return timestamps for each word in the generated speechfalse
language_codestring否Language code (ISO 639-1) used to enforce a language for the model. An error will be returned if language code is not supported by the model.—
previous_textstring否The text that came before the text of the current request. Can be used to improve the speech's continuity when concatenating together multiple generations or to influence the speech's continuity in the current generation.—
similarity_boostnumber否Similarity boost (0-1)0.75
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