开启音频切片后,你可以使用 StopSegment 关闭音频切片。
你可以调用 StopSegment 接口,关闭已启动的音频切片任务。
关于调用接口的服务地址、通信协议、字符编码和签名机制,参看调用 OpenAPI。
QPS 不得超过 150。
Post
| 参数名 | 类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | StopSegment | 接口名称,本接口取值:StopSegment |
| Version | String | 是 | 2022-06-01 | 接口版本,本接口取值:2022-06-01 |
| 参数名 | 类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| AppId | String | 是 | Your_AppId | 应用的唯一标志 |
| BusinessId | String | 否 | Your_BusinessId | 业务标识 |
| RoomId | String | 是 | Your_RoomId | 房间 ID,是房间的唯一标志 |
| TaskId | String | 是 | Your_TaskId | 你需要关闭的音频切片任务的 ID。 |
https://rtc.volcengineapi.com?Action=StopSegment&Version=2022-06-01
postscript{
"AppId": "Your_AppId",
"BusinessId": "Your_BusinessId",
"RoomId": "Your_RoomId",
"TaskId": "Your_TaskId"
}
json返回值 Result 仅在请求成功时返回"ok",失败时为空。
{
"Result": "ok",
"ResponseMetadata": {
"RequestId": "Your_RequestId",
"Action": "StopSegment",
"Version": "2022-06-01",
"Service": "rtc",
"Region": "cn-north-1"
}
}
json