评测模式描述
评测要求:支持不超过30个汉字。音频时长最长60秒。
评测维度:支持返回单词精准度,流利度,完整度;支持返回音素精准度。
评测功能:支持实时评测;指定发音,声调检测。
请求参数
主要请求参数说明:
参数名称 | 类型 | 描述 |
RefText | String | 被评估文本。不超过30个汉字。 |
EvalMode | Integer | 评估模式。1:句子评测模式 |
ServerType | Integer | 评估语言。1:中文 |
请求示例
{"RefText": "早上好","EvalMode": 1,"ServerType": 1"WorkMode":1,"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*","SeqId":1,"IsEnd":1,"VoiceFileType":3,"VoiceEncodeType":1,"SessionId":"5bc0-1669014734359-92195","ScoreCoeff":1.0}
返回结果
主要返回结果说明:
参数名称 | 类型 | 描述 |
SuggestedScore | Integer | 建议评分 |
PronAccuracy | Integer | 整体精准度 |
PronFluency | Integer | 整体流利度 |
PronCompletion | Integer | 整体完整度 |
Words.PronAccuracy | Integer | 单词精准度 |
Words.PronFluency | Integer | 单词流利度 |
Words.MatchTag | Integer | 当前词的音频与文本的匹配情况 |
Words.PhoneInfos.PronAccuracy | Integer | 音素精准度 |
Words.PhoneInfos.MatchTag | Integer | 当前音素的音频与文本的匹配情况 |
返回示例
{"SuggestedScore":95.46498,"PronAccuracy":95.46498,"PronFluency":0.9850345,"PronCompletion":1,"RequestId":"eecd633a-5322-42b3-b3c0-18489d20596b","Words":[{"MemBeginTime":520,"MemEndTime":800,"PronAccuracy":94.56439,"PronFluency":0.9841121,"ReferenceWord":"","Word":"早","MatchTag":0,"KeywordTag":0,"PhoneInfos":[{"MemBeginTime":520,"MemEndTime":650,"PronAccuracy":91.81637,"DetectedStress":false,"Phone":"z","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0},{"MemBeginTime":650,"MemEndTime":800,"PronAccuracy":95.9384,"DetectedStress":false,"Phone":"ao3","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0}]},{"MemBeginTime":800,"MemEndTime":1080,"PronAccuracy":95.91863,"PronFluency":0.98841476,"ReferenceWord":"","Word":"上","MatchTag":0,"KeywordTag":0,"PhoneInfos":[{"MemBeginTime":800,"MemEndTime":900,"PronAccuracy":96.1512,"DetectedStress":false,"Phone":"sh","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0},{"MemBeginTime":900,"MemEndTime":1080,"PronAccuracy":95.802345,"DetectedStress":false,"Phone":"ang4","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0}]},{"MemBeginTime":1080,"MemEndTime":1380,"PronAccuracy":95.91195,"PronFluency":0.9825769,"ReferenceWord":"","Word":"好","MatchTag":0,"KeywordTag":0,"PhoneInfos":[{"MemBeginTime":1080,"MemEndTime":1180,"PronAccuracy":95.76144,"DetectedStress":false,"Phone":"h","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0},{"MemBeginTime":1180,"MemEndTime":1380,"PronAccuracy":95.9872,"DetectedStress":false,"Phone":"ao3","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0}]}],"SessionId":"5bc0-1669014734359-92195","Status":"Finished",}
实时评测
主要作用是获取实时中间结果,实时展示评测内容。
请求参数
主要请求参数说明:
参数名称 | 类型 | 描述 |
RefText | String | 被评估文本。不超过30个汉字 |
EvalMode | Integer | 评估模式。1:句子评测模式 |
ServerType | Integer | 评估语言。1:中文 |
WorkMode | Integer | 语音输入模式。0:流式分片 |
SentenceInfoEnabled | Integer | 输出断句中间结果标识。1:输出 |
请求示例
{"RefText": "抽刀断水水更流","EvalMode": 1,"ServerType": 1,"WorkMode": 0,"SentenceInfoEnabled": 1,"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*","SeqId":1,"IsEnd":1,"VoiceFileType":3,"VoiceEncodeType":1,"SessionId":"2398-1669014978895-69180","ScoreCoeff":1.0}
返回结果
主要返回结果说明:
参数名称 | 类型 | 描述 |
SentenceInfoSet.Words.PronAccuracy | Integer | 单词精准度 |
SentenceInfoSet.Words.PronFluency | Integer | 单词流利度 |
SentenceInfoSet.Words.MatchTag | Integer | 当前词的音频与文本的匹配情况 |
SentenceInfoSet.Words.PhoneInfos.PronAccuracy | Integer | 音素精准度 |
SentenceInfoSet.Words.PhoneInfos.MatchTag | Integer | 当前音素的音频与文本的匹配情况 |
返回示例
{"SuggestedScore":34.43980511482674,"PronAccuracy":42.18876,"PronFluency":0.7654817,"PronCompletion":0.5714286,"RequestId":"4925ed9c-4635-44d3-82d2-95f5e0b7001e","Words":Array[4],"SessionId":"2398-1669014978895-69180","AudioUrl":"","SentenceInfoSet":[{"SuggestedScore":0,"PronAccuracy":42.18876,"PronFluency":0.7654817,"PronCompletion":0.5714286,"Words":[{"MemBeginTime":1190,"MemEndTime":1820,"PronAccuracy":11.160096,"PronFluency":0.918351,"ReferenceWord":"","Word":"抽","MatchTag":0,"KeywordTag":0,"PhoneInfos":[{"MemBeginTime":1190,"MemEndTime":1410,"PronAccuracy":7.614954,"DetectedStress":false,"Phone":"ch","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0},{"MemBeginTime":1410,"MemEndTime":1820,"PronAccuracy":12.932667,"DetectedStress":false,"Phone":"ou1","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0}]},{"MemBeginTime":1820,"MemEndTime":2280,"PronAccuracy":31.131311,"PronFluency":0.940562,"ReferenceWord":"","Word":"到","MatchTag":0,"KeywordTag":0,"PhoneInfos":[{"MemBeginTime":1820,"MemEndTime":1970,"PronAccuracy":21.366287,"DetectedStress":false,"Phone":"d","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0},{"MemBeginTime":1970,"MemEndTime":2280,"PronAccuracy":36.01383,"DetectedStress":false,"Phone":"ao4","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0}]},{"MemBeginTime":2280,"MemEndTime":2760,"PronAccuracy":72.99543,"PronFluency":0.9688432,"ReferenceWord":"","Word":"断","MatchTag":0,"KeywordTag":0,"PhoneInfos":[{"MemBeginTime":2280,"MemEndTime":2400,"PronAccuracy":64.7367,"DetectedStress":false,"Phone":"d","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0},{"MemBeginTime":2400,"MemEndTime":2490,"PronAccuracy":90.42746,"DetectedStress":false,"Phone":"u4","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0},{"MemBeginTime":2490,"MemEndTime":2760,"PronAccuracy":68.40878,"DetectedStress":false,"Phone":"an","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0}]},{"MemBeginTime":2760,"MemEndTime":3380,"PronAccuracy":42.946674,"PronFluency":0.95240074,"ReferenceWord":"","Word":"水","MatchTag":0,"KeywordTag":0,"PhoneInfos":[{"MemBeginTime":2760,"MemEndTime":2920,"PronAccuracy":21.995558,"DetectedStress":false,"Phone":"sh","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0},{"MemBeginTime":2920,"MemEndTime":3380,"PronAccuracy":49.93038,"DetectedStress":false,"Phone":"ui3","ReferencePhone":"","ReferenceLetter":"","Stress":false,"MatchTag":0}]}],"SentenceId":-1,}],"Status":"Evaluating",}
指定发音
请求参数
主要请求参数说明
参数名称 | 类型 | 描述 |
RefText | String | 被评估文本 |
EvalMode | Integer | 评估模式。1:句子评测模式 |
ServerType | Integer | 评估语言。1:中文 |
请求示例
{"RefText": "我今{::pron{jing1}}天","EvalMode": 1,"ServerType":1,"WorkMode":1,"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*","SeqId":1,"IsEnd":1,"VoiceFileType":3,"VoiceEncodeType":1,"SessionId":"144e-1669015382042-66392","ScoreCoeff":1.0}
返回结果
主要返回结果说明:
参数名称 | 类型 | 描述 |
SuggestedScore | Integer | 建议评分 |
PronAccuracy | Integer | 整体精准度 |
PronFluency | Integer | 整体流利度 |
Words.PronAccuracy | Integer | 单词精准度 |
Words.PronFluency | Integer | 单词流利度 |
Words.PhoneInfos.PronAccuracy | Integer | 音素精准度 |
返回示例
{"PronAccuracy": 97.60497,"PronFluency": 0.96334666,"PronCompletion": 1,"Words": [{"MemBeginTime": 100,"MemEndTime": 550,"PronAccuracy": 98.722694,"PronFluency": 0.95403194,"Word": "我","MatchTag": 0,"PhoneInfos": [{"MemBeginTime": 100,"MemEndTime": 330,"PronAccuracy": 98.37801,"DetectedStress": false,"Phone": "w","Stress": false,"ReferencePhone": "","MatchTag": 0,"ReferenceLetter": ""},{"MemBeginTime": 330,"MemEndTime": 550,"PronAccuracy": 98.895035,"DetectedStress": false,"Phone": "o3","Stress": false,"ReferencePhone": "","MatchTag": 0,"ReferenceLetter": ""}],"ReferenceWord": "","KeywordTag": 0,"Tone": {"Valid": false,"RefTone": -1,"HypothesisTone": -1}},{"MemBeginTime": 550,"MemEndTime": 910,"PronAccuracy": 97.91466,"PronFluency": 0.9723862,"Word": "今","MatchTag": 0,"PhoneInfos": [{"MemBeginTime": 550,"MemEndTime": 650,"PronAccuracy": 98.73343,"DetectedStress": false,"Phone": "j","Stress": false,"ReferencePhone": "","MatchTag": 0,"ReferenceLetter": ""},{"MemBeginTime": 650,"MemEndTime": 910,"PronAccuracy": 97.50527,"DetectedStress": false,"Phone": "ing1","Stress": false,"ReferencePhone": "","MatchTag": 0,"ReferenceLetter": ""}],"ReferenceWord": "","KeywordTag": 0,"Tone": {"Valid": false,"RefTone": -1,"HypothesisTone": -1}},{"MemBeginTime": 910,"MemEndTime": 1460,"PronAccuracy": 96.53442,"PronFluency": 0.963622,"Word": "天","MatchTag": 0,"PhoneInfos": [{"MemBeginTime": 910,"MemEndTime": 1030,"PronAccuracy": 88.60503,"DetectedStress": false,"Phone": "t","Stress": false,"ReferencePhone": "","MatchTag": 0,"ReferenceLetter": ""},{"MemBeginTime": 1030,"MemEndTime": 1130,"PronAccuracy": 99.204254,"DetectedStress": false,"Phone": "i1","Stress": false,"ReferencePhone": "","MatchTag": 0,"ReferenceLetter": ""},{"MemBeginTime": 1130,"MemEndTime": 1460,"PronAccuracy": 99.16419,"DetectedStress": false,"Phone": "an","Stress": false,"ReferencePhone": "","MatchTag": 0,"ReferenceLetter": ""}],"ReferenceWord": "","KeywordTag": 0,"Tone": {"Valid": false,"RefTone": -1,"HypothesisTone": -1}}],"SessionId": "0d35f394-2c2d-11ee-ab1c-acde48001122","AudioUrl": "","SentenceInfoSet": [],"Status": "Finished","SuggestedScore": 97.60497,"RefTextId": -1,"KeyWordHits": [],"UnKeyWordHits": [],"RequestId": "a7ab0fa5-b86d-4def-b4b7-ee167a7466b8"}
声调检测
句子模式可以支持声调检测,使用 {::cmd{F_TDET=true}} + 汉字 的方式进行评测。
请求参数
主要请求参数说明:
参数名称 | 类型 | 描述 |
RefText | String | 被评估文本 |
EvalMode | Integer | 评估模式。1:句子评测模式 |
ServerType | Integer | 评估语言。1:中文 |
请求示例
{"RefText": "{::cmd{F_TDET=true}}山","EvalMode": 1,"ServerType": 1,"WorkMode":1,"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*","SeqId":1,"IsEnd":1,"VoiceFileType":3,"VoiceEncodeType":1,"SessionId":"35d4ebe2-1ecd-11ee-86f5-acde48001122","ScoreCoeff":1.0}
返回结果
主要返回结果说明:
参数名称 | 类型 | 描述 |
Words.Valid | Boolean | 检测结果是否有效 注意:此字段可能返回 null,表示取不到有效值。 |
Words.RefTone | Integer | 文本标准声调,数值范围[-1,1,2,3,4] 注意:此字段可能返回 null,表示取不到有效值。 |
Words.HypothesisTone | Integer | 实际发音声调,数值范围[-1,1,2,3,4] 注意:此字段可能返回 null,表示取不到有效值。 |
返回示例
{"PronAccuracy":97.04167,"PronFluency":0.9405903,"PronCompletion":1,"Words":[{"MemBeginTime":60,"MemEndTime":630,"PronAccuracy":97.04167,"PronFluency":0.9405903,"Word":"山","MatchTag":0,"PhoneInfos":[{"MemBeginTime":60,"MemEndTime":310,"PronAccuracy":95.0883,"DetectedStress":false,"Phone":"sh","Stress":false,"ReferencePhone":"","MatchTag":0,"ReferenceLetter":""},{"MemBeginTime":310,"MemEndTime":630,"PronAccuracy":98.01835,"DetectedStress":false,"Phone":"an1","Stress":false,"ReferencePhone":"","MatchTag":0,"ReferenceLetter":""}],"ReferenceWord":"","KeywordTag":0,"Tone":{"Valid":true,"RefTone":1,"HypothesisTone":1}}],"SessionId":"35d4ebe2-1ecd-11ee-86f5-acde48001122","AudioUrl":"","SentenceInfoSet":Array[1],"Status":"Finished","SuggestedScore":97.04167,"RefTextId":-1,"KeyWordHits":[],"UnKeyWordHits":[],"RequestId":"90a10f5e-7928-4a94-bb60-403121d4729b"}