You need to enable JavaScript to run this app.
导航

查询录音

最近更新时间2023.08.17 21:02:18

首次发布时间2023.02.28 20:31:39

根据通话id查询通话录音地址

  • 请求地址:https://cloud-vms.volcengineapi.com

  • 请求方式:POST

1. 请求参数
参数数据类型是否必填示例值描述
X-DateString20201103T104027Z鉴权字段。请参考文档中心-火山引擎

Authorization

String

HMAC-SHA256 Credential***

鉴权字段。请参考文档中心-火山引擎

ServiceNameStringvms服务名称。该接口是vms
RegionStringcn-north-1区域名称,固定值cn-north-1

Content-Type

String

application/x-www-form-urlencoded

签名相关header字段参考火山引擎公共参数

Query

参数参数类型是否必选示例值描述
ActionStringQueryAudioRecordFileUrl接口名称
VersionString2022-01-01接口版本

Body

参数参数类型是否必选示例值描述
CallIdStringNM21062918163787800001012500051888通话id
2. 请求示例
curl --location --request POST 'https://cloud-vms.volcengineapi.com?Action=QueryAudioRecordFileUrl&Version=2022-01-01' \
--header 'ServiceName: vms' \
--header 'Region: cn-north-1' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-Date: 20201103T104027Z' \
--header 'Authorization: HMAC-SHA256 Credential=***' \
--data-urlencode 'CallId=NM21062918163787800001012500051888'
3. 响应消息
参数数据类型描述
ResponseMetadataResponseMetadata响应公共参数。
ResultResult响应业务参数。

ResponseMetadata

参数数据类型描述
RequestIdstring请求 ID。
Actionstring请求的接口名称。
Versionstring请求的版本号。
Servicestring请求的服务名称。
Regionstring请求的区域。
ErrorError错误信息。如果请求没有异常则不会返回错误信息。

Result

参数数据类型实例值描述

AudioRecordFileUrl

String

https://xxxx/volc-communication-audio/NM21062918163787800001012500051888.mp3?x-expires=1625222087&x-signature=kjskZuHRWGn3zX9IMiEwmRhOEsM%3D

录音文件地址,三小时有效时间,过期后需重新查询,下同

AudioRecordLeftFileUrlStringhttps://xxxx/volc-communication-audio/NM21062918163787800001012500051888-left.wav?x-expires=1625222087&x-signature=yzIWnImF9oZxulgGk2oKfZNZ5s8%3D左声道录音文件
AudioRecordRightFileUrlStringhttps://xxxx/volc-communication-audio/NM21062918163787800001012500051888-right.wav?x-expires=1625222087&x-signature=0HEEwVfyn1YVyYA5CEQKiQ5GhSk%3D右声道录音文件

Error

参数数据类型描述
Codestring错误码。
Messagestring错误信息。

错误码

火山引擎网关的公共错误码,请参见火山引擎网关公共错误码

CodeMessage说明处理建议
RequestParametersErrorUnexpected Parameters参数异常检查请求通话id是否为空
SystemErrorThe system meets an error while executing your request, contact us please服务异常,可能是遇到了网络抖动可重试请求
4. 响应实例
{
    "ResponseMetadata": {
        "RequestId": "202107021534470102252431530287857C",
        "Action": "QueryAudioRecordFileUrl",
        "Version": "2022-01-01",
        "Service": "vms",
        "Region": "cn-north-1"
    },
    "Result": {
        "AudioRecordFileUrl": "https://xxxx/volc-communication-audio/NM21062918163787800001012500051888.mp3?x-expires=1625222087&x-signature=kjskZuHRWGn3zX9IMiEwmRhOEsM%3D",
        "AudioRecordLeftFileUrl": "https://xxxx/volc-communication-audio/NM21062918163787800001012500051888-left.wav?x-expires=1625222087&x-signature=yzIWnImF9oZxulgGk2oKfZNZ5s8%3D",
        "AudioRecordRightFileUrl": "https://xxxx/volc-communication-audio/NM21062918163787800001012500051888-right.wav?x-expires=1625222087&x-signature=0HEEwVfyn1YVyYA5CEQKiQ5GhSk%3D"
    }
}