
{{ docItem.name }}


{{ listItem.name }}
{{ listItem.name }}


{{ item.name }}
{{ item }}
>
英文问答题型简化版
- 该文档是开发者在技术验证阶段 使用的英文问答题型的语音评测技术文档
本题型适用场景:
-
先描述一段场景,然后从描述的场景中提出一个问题,让回答者根据听到的场景回答问题;
-
问答题和扩展选择题的区别是: 扩展选择题有可供选择的项,让用户适度自由的回答。问答题则没有任何选项参考,只是根据听到的场景回答问题。
评测请求参数:
字段 | 类型 | 可选 | 说明 |
---|---|---|---|
coreType | String | 必选 | en.pqan.score表示英文问答题题型 |
quest_ans | String | 可选 | 提问问题的文本 |
key | array | 必选 | key包括关键点可能的表述方式;关键点对打分的影响很大; |
para | String | 可选 | 描述情景的文本 |
lm | array | 必选 | 设置可能的正确回答;lm中的每个text表示一种正确的回答 (注:lm字段是LM的小写形式) |
phones | String | 可选 | 指定单词的发音。如果单词有多发音,要用”|”符号分隔开;每个音素之间及音素与音节分隔符”-“之间,必须使用空格隔开。 例:"phones":{"directory":"d ih - 'r eh k - tr ih|d ax - 'r eh k - t ax - r ih"}; |
测评参数示例如下:
{
"coreType": "en.pqan.score",
"para": "It's unbelievable. He looks stupid, but in fact, he is such a great and humorous actor. What's going on? You know what? Mr. Bean graduate from Oxford University. Exactly, I am also very crazy about Mr. Bean. He is really a funny guy and he does have a great sense of humor. In my eyes, he is a genius. I really admire him. I couldn't agree more, and it's his giftedness and hard works that make him succeed. After seeing his interesting films, I feel cheerful and excited, he brings happiness to us. Yes, I hope we can bring laughter to people too, just like Mr. Bean. I can't wait to see more his films after class. But first thing first, let's get our homework done.",
"quest_ans": "What makes Mr. Bean so successful?",
"lm": [
{
"text": "It's his giftedness and hard works that make him succeed."
},
{
"text": "his talents and hard works."
},
{
"text": "is talent and hard work."
},
{
"text": "His giftedness and hard works."
},
{
"text": "His giftedness and hard works makes Mr. Bean so successful."
},
{
"text": "His talent and hard work makes him successful."
},
{
"text": "His body language is so funny, he makes people laugh, feel happy and relaxed."
},
{
"text": "Hard work and giftedness."
},
{
"text": "His giftedness and hard work."
},
{
"text": "his talents and he is very hard working."
},
{
"text": "His gift and hard works."
}
],
"key": [
{
"text": "giftedness hard work"
},
{
"text": "gift hard work"
},
{
"text": "talent hard work"
}
]
}
返回结果示例
- 返回结果采用JSON结构,参考样例
测评返回结果
返回结果说明
键 | 类型 | 说明 | 使用建议 |
---|---|---|---|
recordId | string | 音频文件的唯一标识 | 可供参考 |
tokenId | string | 用户请求的唯一标识 | 可供参考 |
applicationId | string | 授权账号,即用户的Appkey | 内部参数 |
- request | object | 评分请求参数节点 | |
- audio | object | 评分请求的音频参数节点数 | |
result | object | 评测结果 | |
- overall | float | 总分 | 建议字段 |
- fluency | float | 流利度分 | 内部参数 |
- pron | float | 发音分 | 内部参数 |
- integrity | float | 完整度分 | 内部参数 |
- -char | string | ||
- info | object | ||
- - snr | float | 信噪比,值越高越清晰,范围(0~40dB) 此参数影响评分时,会设置相应的tipId值 | 可供参考 |
- - clip | float | 音频声音太高,出现截幅,范围(0\~1)。 此参数影响评分时,会设置相应的tipId值 | 内部参数 |
- - volume | int | 录音音量,范围(0~180dB) | 可供参考 |
- - tipId | int | 音频质量 详情请参考 tipId字段说明 | 建议字段 |
结果示例
- 注:返回结果中其它未在上面展示的字段是内部参数,产品层面不需要关注
评测结果展现建议
维度 | 说明 | 详细 |
---|---|---|
overall | 总分 | 评测总分 |
评测失败时的返回结果
如果返回的评测结果中result结构为空,说明评测失败。通过返回结果可以获取 errId 和 error,需要根据相应错误码进行后续判断和处理。
错误码
错误码参考:语音评测错误码