更新时间:2023-12-07 GMT+08:00
分享

开始使用

通过华为云控制台使用

  1. 登录华为云对象存储服务控制台,查看部署完成后,自动创建的OBS桶列表。

    图1 对象存储服务控制台

  2. 选择用于上传隐私通话录音文件的桶“call-center-speech-analytics-demo-input”,上传录音。

    图2 上传隐私通话录音文件

  3. 选择用于存放结果的“call-center-speech-analytics-demo-output”桶,即录音内容分析结果,以录音名称为前缀的JSON文件存储。

    图3 获取识别结果文件

通过华为云SDK使用

企业业务系统可通过华为云提供的SDK服务与OBS桶进行对接,当员工上传客服通话录音到华为云OBS桶后,即可自动进行内容分析,企业业务系统只需定时从存储结果的OBS桶中获取结果,即可实现隐私通话内容的自动化处理流程。SDK详细使用流程可参考OBS SDK用户指南。

结果示例

客服中心语音质检结果如下所示,支持语音识别结果、原始录音文件地址、录音时长、规则命中结果、命中位置等多个字段。

{
       'asr_result': {
              'status': 'FINISHED',
              'create_time': '2022-11-26T11: 56: 16.152Z',
              'start_time': '2022-11-26T11: 56: 16.307Z',
              'finish_time': '2022-11-26T11: 56: 22.408Z',
              'audio_duration': 34000,
              'segments': [{
                     'start_time': 4570,
                     'end_time': 8000,
                     'result': {
                            'text': '你好,客服中心总部客服一号,请问有什么可以帮您?',
                            'analysis_info': {
                                   'role': 'AGENT',
                                   'emotion': 'NORMAL',
                                   'speed': 8.309038
                            }
                     }
              },
              {
                     'start_time': 9010,
                     'end_time': 10870,
                     'result': {
                            'text': '我在这里买的东西坏掉了。',
                            'analysis_info': {
                                   'role': 'USER',
                                   'emotion': 'NORMAL',
                                   'speed': 10.483871
                            }
                     }
              },
              {
                     'start_time': 10990,
                     'end_time': 12980,
                     'result': {
                            'text': '上一个客服没有给我解决。',
                            'analysis_info': {
                                   'role': 'USER',
                                   'emotion': 'NORMAL',
                                   'speed': 9.798995
                            }
                     }
              },
              {
                     'start_time': 13060,
                     'end_time': 14730,
                     'result': {
                            'text': '我就问你能不能给我解决吧。',
                            'analysis_info': {
                                   'role': 'USER',
                                   'emotion': 'NORMAL',
                                   'speed': 12.27545
                            }
                     }
              },
              {
                     'start_time': 15560,
                     'end_time': 19440,
                     'result': {
                            'text': '非常抱歉,给您带来不便了。你是什么时候下单的呢?',
                            'analysis_info': {
                                   'role': 'AGENT',
                                   'emotion': 'NORMAL',
                                   'speed': 8.762886
                            }
                     }
              },
              {
                     'start_time': 19790,
                     'end_time': 22610,
                     'result': {
                            'text': '客服这边给您看下能不能退款。',
                            'analysis_info': {
                                   'role': 'AGENT',
                                   'emotion': 'NORMAL',
                                   'speed': 7.446809
                            }
                     }
              },
              {
                     'start_time': 23250,
                     'end_time': 28000,
                     'result': {
                            'text': '来人好几次都没有给我解决,我不要道歉,我也不要退款,我**要投诉。',
                            'analysis_info': {
                                   'role': 'USER',
                                   'emotion': 'NORMAL',
                                   'speed': 10.421053
                            }
                     }
              },
              {
                     'start_time': 28830,
                     'end_time': 29260,
                     'result': {
                            'text': '再见。',
                            'analysis_info': {
                                   'role': 'USER',
                                   'emotion': 'NORMAL',
                                   'speed': 6.976744
                            }
                     }
              },
              {
                     'start_time': 30090,
                     'end_time': 34260,
                     'result': {
                            'text': '非常抱歉,客服没能帮您解决问题祝您生活愉快,再见。',
                            'analysis_info': {
                                   'role': 'AGENT',
                                   'emotion': 'NORMAL',
                                   'speed': 8.513189
                            }
                     }
              }]
       },
       'audio_url': 'https: //call-center-speech-analytics-demo-input.obs.cn-north-4.myhuaweicloud.com/call-center-speech-analytics-demo.wav',
       'audio_duration': 34000,
       'rules_hit_results': [{
              'hit_rule_name': '客户投诉举报/坐席引导投诉',
              'hit_rule_items': [{
                     'hit_text': '来人好几次都没有给我解决,我不要道歉,我也不要退款,我**要投诉。',
                     'role': 'USER',
                     'start_time': 23250,
                     'end_time': 28000
              }]
       }]
}
  

相关文档