调用GetSecretAsrDetail获取ASR识别结果详情。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String GetSecretAsrDetail

系统规定参数。取值:GetSecretAsrDetail

CallId String abcedf1234

呼叫记录ID,用于标识一条通话记录。

请登录号码隐私保护控制台,在呼叫记录查询中查看呼叫记录ID

CallTime String 2019-03-05 12:00:00

呼叫记录中的呼叫发起时间。请登录号码隐私保护控制台,在呼叫记录查询中查看呼叫发起时间,或者在话单回执消息中查看call_time字段。

PoolKey String FC123456

号码池Key。请登录号码隐私保护控制台,在号码池管理中查看号码池Key。

返回数据

名称 类型 示例值 描述
Code String OK

错误码。

Data String {10944,"435ee78c7a019650@!FC100000074672458@!20200615225802","JCGTncltuNaolegJ", "21050000","SUCCESS","8d2329d407a83447a83be441681f4872ac74nE",[ {1020, 0, "5.7",1770,"0","80", "喂"},{1440,1,"6.3",3280,"0","32","喂。"},{2110,0,"6.2",4650,"0","212","嗯,反正是吧,反正出来。" }],true,"asrResult" }

ASR详情实体类信息.

Message String OK

错误码描述。

RequestId String F655A8D5-B967-440B-8683-DAD6FF8DE990

请求ID。

示例

请求示例

http(s)://[Endpoint]/?Action=GetSecretAsrDetail
&CallId=abcedf1234
&CallTime=2019-03-05 12:00:00
&PoolKey=FC123456
&<公共请求参数>

正常返回示例

XML 格式

<RequestId>abcdedf</RequestId>
<Code>OK</Code>
<Message>OK</Message>
<Data>
    <bizDuration>10944</bizDuration>
    <businessId>435ee78c7a019650@!FC100000074672458@!20200615225802</businessId>
    <businessKey>JCGTncltuNaolegJ</businessKey>
    <code>21050000</code>
    <msg>SUCCESS</msg>
    <requestId>8d2329d407a83447a83be441681f4872ac74nE</requestId>
    <sentences>
        <beginTime>1020</beginTime>
        <channelId>0</channelId>
        <emotionValue>5.7</emotionValue>
        <endTime>1770</endTime>
        <silenceDuration>0</silenceDuration>
        <speechRate>80</speechRate>
        <text>喂</text>
    </sentences>
    <sentences>
        <beginTime>1440</beginTime>
        <channelId>1</channelId>
        <emotionValue>6.3</emotionValue>
        <endTime>3280</endTime>
        <silenceDuration>0</silenceDuration>
        <speechRate>32</speechRate>
        <text>喂。</text>
    </sentences>
    <sentences>
        <beginTime>2110</beginTime>
        <channelId>0</channelId>
        <emotionValue>6.2</emotionValue>
        <endTime>4650</endTime>
        <silenceDuration>0</silenceDuration>
        <speechRate>212</speechRate>
        <text>嗯,反正是吧,反正出来。</text>
    </sentences>
    <success>true</success>
    <type>asrResult</type>
</Data>

JSON 格式

{
  "RequestId": "abcdedf",
  "Code":"OK",
  "Message":"OK",
  "Data":{
    "bizDuration": 10944,
    "businessId": "435ee78c7a019650@!FC100000074672458@!20200615225802",
    "businessKey": "JCGTncltuNaolegJ", 
    "code": "21050000", 
    "msg": "SUCCESS",
    "requestId": "8d2329d407a83447a83be441681f4872ac74nE",
    "sentences": [ 
        {
            "beginTime": 1020,
            "channelId": 0, 
            "emotionValue": "5.7",
            "endTime": 1770,
            "silenceDuration": "0",
            "speechRate": "80",
            "text": "喂"
        },
        {
            "beginTime": 1440,
            "channelId": 1,
            "emotionValue": "6.3",
            "endTime": 3280,
            "silenceDuration": "0",
            "speechRate": "32",
            "text": "喂。"
        },
        {
            "beginTime": 2110,
            "channelId": 0,
            "emotionValue": "6.2",
            "endTime": 4650,
            "silenceDuration": "0",
            "speechRate": "212",
            "text": "嗯,反正是吧,反正出来。" 
        }
    ],
    "success": true,
    "type": "asrResult" 
    }
}

错误码

HttpCode 错误码 错误信息 描述
400 isp.RAM_PERMISSION_DENY RAM permission is denied. RAM权限DENY

访问错误中心查看更多错误码。