获取指定通话的质检结果
场景描述
获取指定通话的质检结果
接口方法
POST
接口URI
https://域名/apiaccess/CCISQM/rest/ccisqm/v1/appraisecall/detail,例如域名是service.besclouds.com
请求说明
序号 |
名称 |
参数类型 |
是否必选 |
说明 |
---|---|---|---|---|
1 |
Content-Type |
string |
False |
固定填 application/json; charset=UTF-8。 |
2 |
x-app-key |
string |
False |
appKey标识,请联系运营人员获取 |
3 |
Authorization |
string |
True |
鉴权字段,内容格式为: Bearer +tokenByAKSK接口的返回值中AccessToken(Bearer后有空格) |
序号 |
名称 |
参数类型 |
是否必选 |
说明 |
---|---|---|---|---|
1.1 |
call_uuid |
string |
True |
通话标识 可从appraisecall/details接口返回的结果获取call_uuid |
响应说明
- 响应状态码: 200
序号 |
名称 |
参数类型 |
是否必选 |
说明 |
---|---|---|---|---|
1.1 |
left_speed |
number |
False |
左声道发话语速,发话方取决于left_channel字段 |
1.2 |
left_speech_ratio |
number |
False |
左声道通话比例,发话方取决于left_channel字段 |
1.3 |
file_name |
string |
False |
质检文件名称 |
1.4 |
left_channel |
string |
False |
左声道发话方:客户,座席 |
1.5 |
right_speech_ratio |
number |
False |
右声道通话比例,发话方取决于right_channel字段 |
1.6 |
call_time |
number |
False |
通话开始时间 |
1.7 |
right_channel |
string |
False |
右声道发话方:客户,座席 |
1.8 |
call_id |
number |
False |
通话标识 |
1.9 |
left_silence_time |
number |
False |
发话静音时间 |
1.10 |
segments |
array[object] |
False |
ASR转写文本语段结果 |
1.10.1 |
asr_text |
string |
False |
ASR转写文本 |
1.10.2 |
speaker |
number |
False |
发话方 |
1.10.3 |
start_time |
number |
False |
发话开始时间 |
1.10.4 |
end_time |
number |
False |
发话结束时间 |
1.10.5 |
segment_id |
number |
False |
ASR转写文本语段标识 |
1.11 |
duration |
number |
False |
通话时间 |
1.12 |
right_silence_time |
number |
False |
发话静音时间,发话方取决于right_channel字段 |
1.13 |
upload_time |
number |
False |
通话上传时间 |
1.14 |
left_emotions |
array[object] |
False |
通话语气,只针对座席,取决于left_channel是否为座席 |
1.14.1 |
type |
string |
False |
语气类型:积极,消极 |
1.14.2 |
score |
number |
False |
语气评分 |
1.15 |
right_speed |
number |
False |
右声道发话语速,发话方取决于right_channel字段 |
1.16 |
staff_id |
string |
False |
座席人员的userId 可在登录后,进入座席管理页面,查看接口返回的accountId |
1.17 |
call_uuid |
string |
False |
通话标识 |
1.18 |
call_type |
number |
False |
质检通话类型:
|
1.19 |
status |
string |
False |
质检状态取值如下:
|
1.20 |
right_emotions |
array[object] |
False |
通话语气,只针对座席,取决于right_channel是否为座席 |
1.20.1 |
type |
string |
False |
语气类型:积极,消极 |
1.20.2 |
score |
number |
False |
语气评分 |
1.21 |
staff_name |
string |
False |
座席名称 |
1.22 |
create_time |
string |
False |
创建时间 |
- 响应状态码: 400
错误的请求:请检查请求路径及参数。
- 响应状态码: 401
未授权:1. 请确认是否购买了相关服务。 2. 请联系客服人员检查您账号的当前状态。
- 响应状态码: 404
请求的内容未找到:请检查请求的路径。
- 响应状态码: 500
业务失败:请依次确认您请求中各参数的取值。
错误码
无。
报文样例
- 场景描述:获取指定通话的质检结果
x-app-key:XXXXXXXXXXX Authorization:Bearer XXXXXXXXXXX
请求参数:
{ "call_uuid": "822bbf4d-c4f8-473a-9144-199058375be8" }
响应参数:
{ "staff_name": "xieyiling", "left_speed": 324.068, "create_time": 1635318854, "left_speech_ratio": 0.6081, "file_name": "1111", "right_speech_ratio": 0.185, "left_channel": "customer", "call_time": 1635318854, "right_channel": "staff", "call_id": "17af55af-e51d-4cc0-8a62-84222e1d1eea", "segments": [{ "start_time": 0.0, "asr_text": "请问是您想询价吗", "speaker": "customer", "end_time": 11.32, "segment_id": 1 }, { "start_time": 13.36, "asr_text": "对", "speaker": "staff", "end_time": 13.88, "segment_id": 2 }, { "start_time": 14.56, "asr_text": "那您是打算在北京这边买车是吗", "speaker": "customer", "end_time": 16.74, "segment_id": 3 }, { "start_time": 18.74, "asr_text": "是的", "speaker": "staff", "end_time": 19.68, "segment_id": 4 }, { "start_time": 20.28, "asr_text": "那您是打算上本地牌照吗", "speaker": "customer", "end_time": 23.66, "segment_id": 5 }, { "start_time": 25.76, "asr_text": "北京这边可以上河北的牌照吗", "speaker": "staff", "end_time": 28.4, "segment_id": 6 }, { "start_time": 29.24, "asr_text": "不同的城市是有不同的上牌要求的", "speaker": "customer", "end_time": 37.48, "segment_id": 7 }, { "start_time": 38.04, "asr_text": "一会给您回电再详细介绍一下", "speaker": "customer", "end_time": 47.42, "segment_id": 8 }, { "start_time": 49.12, "asr_text": "可以", "speaker": "staff", "end_time": 50.22, "segment_id": 9 }, { "start_time": 51.0, "asr_text": "那您是准备在北京买车是吗", "speaker": "customer", "end_time": 53.22, "segment_id": 10 }, { "start_time": 56.26, "asr_text": "有什么优惠吗", "speaker": "staff", "end_time": 62.96, "segment_id": 11 }, { "start_time": 61.7, "asr_text": "嗯是这样的", "speaker": "customer", "end_time": 62.64, "segment_id": 12 }, { "start_time": 63.74, "asr_text": "部分车型是可以零首付的", "speaker": "customer", "end_time": 73.28, "segment_id": 13 }, { "start_time": 73.76, "asr_text": "稍后我让店里的专业顾问再给您详细介绍一下", "speaker": "customer", "end_time": 78.34, "segment_id": 14 }, { "start_time": 80.1, "asr_text": "可以", "speaker": "staff", "end_time": 81.68, "segment_id": 15 }, { "start_time": 82.54, "asr_text": "您什么时候方便", "speaker": "customer", "end_time": 85.48, "segment_id": 16 }, { "start_time": 86.7, "asr_text": "随时可以", "speaker": "staff", "end_time": 91.28, "segment_id": 17 }, { "start_time": 91.72, "asr_text": "好的", "speaker": "staff", "end_time": 92.04, "segment_id": 18 }, { "start_time": 92.16, "asr_text": "稍后我让负责的同事跟您联系", "speaker": "customer", "end_time": 95.68, "segment_id": 19 }, { "start_time": 93.76, "asr_text": "好吧", "speaker": "staff", "end_time": 94.04, "segment_id": 20 }, { "start_time": 96.18, "asr_text": "您还有其他问题吗", "speaker": "customer", "end_time": 97.82, "segment_id": 21 }, { "start_time": 99.52, "asr_text": "没有", "speaker": "staff", "end_time": 100.12, "segment_id": 22 }, { "start_time": 100.68, "asr_text": "好的那我先挂机了祝您生活愉快再见", "speaker": "customer", "end_time": 104.12, "segment_id": 23 }], "left_silence_time": 40.8, "duration": 104.12, "right_emotions": [{ "score": 32.0, "type": "negative" }, { "score": 69.0, "type": "positive" }], "right_silence_time": 84.86, "upload_time": 1635318854, "left_emotions": [{ "score": 65.0, "type": "negative" }, { "score": 80.0, "type": "positive" }], "right_speed": 230.53, "staff_id": "xieyiling", "call_type": 0, "status": 2 }