Ae · Xai · Tts · V1

10.00积分/次
ae_xai_tts_v1

将文本转换为支持语言的自然语音。可选择音色、添加停顿或耳语等表现提示,并选择音频格式和质量。

文本转语音音频
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_xai_tts_v1",
  "input": {
    "text": "xxx",
    "voice": "eve",
    "language": "auto",
    "output_format": "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"
  }
}

工具参数

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

参数类型必填说明默认值
textstring是The text to convert to speech. Maximum 15,000 characters. Supports speech tags for expressive delivery: inline tags like [laugh], [pause], [sigh] and wrapping tags like <whisper>text</whisper>, <slow>text</slow>.—
voiceenum (eve | ara | rex | sal | leo)否Voice to use for synthesis. eve: energetic, upbeat. ara: warm, friendly. rex: confident, clear. sal: smooth, balanced. leo: authoritative, strong.eve
languageenum (auto | en | ar-EG | ar-SA | ar-AE | bn | zh | fr | de | hi | id | it | ja | ko | pt-BR | pt-PT | ru | es-MX | es-ES | tr | vi)否BCP-47 language code or 'auto' for automatic detection. Supported: en, zh, fr, de, hi, id, it, ja, ko, pt-BR, pt-PT, ru, es-MX, es-ES, tr, vi, bn, ar-EG, ar-SA, ar-AE.auto
output_formatobject否Output format configuration for the TTS API.—