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"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
text | string | 是 | The text to convert to speech | — |
speed | number | 否 | 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 |
style | number | 否 | Style exaggeration (0-1) | 0 |
voice | string | 否 | The voice to use for speech generation | Rachel |
next_text | string | 否 | 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. | — |
stability | number | 否 | Voice stability (0-1) | 0.5 |
timestamps | boolean | 否 | Whether to return timestamps for each word in the generated speech | false |
language_code | string | 否 | 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_text | string | 否 | 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_boost | number | 否 | Similarity boost (0-1) | 0.75 |
apply_text_normalization | enum (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 |
