Ae · Inworld · Tts
按实际用量计费
ae_inworld_tts
将文本转换为自然语音,可选择不同音色和音频采样率。
按实际用量计费
价格说明
单次费用为(较大值(12 × 待合成输入文本字符数, 0))AE积分。各项条件同时适用,按所选条件计算合计费用。
当前可选音色和采样率均适用相同的字符计费规则。
API 调用
通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。
cURL
curl --request POST \
--url 'https://api.agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_inworld_tts' \
--header 'Authorization: Bearer $AGENTEARTH_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": "xxx"
}
}'- 请求方式
- 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"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
request_body | object | 是 | 暂无参数说明。 | — |
使用该工具的指南
看看真实工作流里怎么用这个工具
