Ae · F5 · Tts
10.00积分/次
ae_f5_tts
使用参考音频录音中的声音将文本转换为语音。
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_f5_tts",
"input": {
"gen_text": "xxx",
"ref_text": "xxx",
"model_type": "xxx",
"ref_audio_url": "xxx",
"remove_silence": "true"
}
}'- 请求方式
- 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"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
gen_text | string | 是 | The text to be converted to speech. Maximum 5000 characters. | — |
ref_text | string | 否 | The reference text to be used for TTS. If not provided, an ASR (Automatic Speech Recognition) model will be used to generate the reference text. | — |
model_type | enum (F5-TTS | E2-TTS) | 是 | The name of the model to be used for TTS. | — |
ref_audio_url | string | 是 | The URL of the reference audio file. | — |
remove_silence | boolean | 否 | Whether to remove the silence from the audio file. | true |
