SendAgentInstanceTTS
POST
https://aigc-aiagent-api.zegotech.cn/
本接口可用于主动调用 TTS 服务,以智能体身份向用户发送语音消息。(1. 当调用此接口时,若会话中的智能体正在说话,则该智能体的说话进程会被打断;2. 调用本接口传入的文本消息,会根据 AddHistory 参数决定是否被记录在会话消息历史之中,作为上下文输入给 LLM,同时该消息还会通过 RTC 房间消息下发。)
Request
Query Parameters
Action stringrequired
Possible values: [SendAgentInstanceTTS
]
接口原型参数
https://aigc-aiagent-api.zegotech.cn?Action=SendAgentInstanceTTS
AppId uint32required
AppId,ZEGO 分配的用户唯一凭证。
SignatureNonce stringrequired
随机字符串。
Timestamp int64required
Unix 时间戳,单位为秒。最多允许 10 分钟的误差。
Signature stringrequired
签名,用于验证请求的合法性。
SignatureVersion stringrequired
Possible values: [2.0
]
签名版本号,默认值为 2.0。
- application/json
Responses
- 200
发送成功
- application/json
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
1
RESPONSEClear