单词实时评测模式

最近更新时间:2024-05-30 17:12:13

我的收藏

评估模式描述

评测要求:支持多组汉字。音频时长最长60秒。
评测维度:支持返回单词精准度,单词流利度;支持返回音素精准度。
评测功能:支持实时评测,多组文本,指定发音。
主要作用是获取实时中间结果,实时展示评测内容。评测结果以最终结果为准。实现方式可参考语音输入模式 -- 流式评测

请求参数

主要请求参数说明:
参数名称
类型
描述
RefText
String
被评估文本。支持多组汉字。使用| 划分多组分支
EvalMode
Integer
评估模式。7:单词评测模式
ServerType
Integer
评估语言。1:中文
请求示例
{
"RefText":"你 | 我 | 他"
"EvalMode":7,
"ServerType":1,
"WorkMode":0,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"63ad-1669017110023-02800",
"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":96.161064,
"PronAccuracy":96.161064,
"PronFluency":0.8415231,
"PronCompletion":1,
"RequestId":"8e6829e9-81dd-45cf-9347-a70c5a0be2dd",
"Words":Array[4],
"SessionId":"63ad-1669017110023-02800",
"AudioUrl":"",
"SentenceInfoSet":[
{
"SuggestedScore":0,
"PronAccuracy":96.161064,
"PronFluency":0.8415231,
"PronCompletion":1,
"Words":[
{
"MemBeginTime":530,
"MemEndTime":1470,
"PronAccuracy":96.32606,
"PronFluency":0.80349606,
"ReferenceWord":"",
"Word":"你",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":530,
"MemEndTime":810,
"PronAccuracy":96.85235,
"DetectedStress":false,
"Phone":"n",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":810,
"MemEndTime":1470,
"PronAccuracy":95.79977,
"DetectedStress":false,
"Phone":"i3",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
},
{
"MemBeginTime":2620,
"MemEndTime":3790,
"PronAccuracy":94.70361,
"PronFluency":0.750587,
"ReferenceWord":"",
"Word":"你",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":2620,
"MemEndTime":2750,
"PronAccuracy":95.61461,
"DetectedStress":false,
"Phone":"n",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":2750,
"MemEndTime":3790,
"PronAccuracy":93.792625,
"DetectedStress":false,
"Phone":"i3",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
},
{
"MemBeginTime":3790,
"MemEndTime":4460,
"PronAccuracy":95.350296,
"PronFluency":0.9026487,
"ReferenceWord":"",
"Word":"他",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":3790,
"MemEndTime":3910,
"PronAccuracy":99.925354,
"DetectedStress":false,
"Phone":"t",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":3910,
"MemEndTime":4460,
"PronAccuracy":90.77524,
"DetectedStress":false,
"Phone":"a1",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
},
{
"MemBeginTime":4460,
"MemEndTime":5050,
"PronAccuracy":98.26432,
"PronFluency":0.90936065,
"ReferenceWord":"",
"Word":"我",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":4460,
"MemEndTime":4490,
"PronAccuracy":99.98201,
"DetectedStress":false,
"Phone":"w",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":4490,
"MemEndTime":5050,
"PronAccuracy":97.40547,
"DetectedStress":false,
"Phone":"o3",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
}
],
"SentenceId":-1,
}
],
"Status":"Finished",
}

指定发音

使用 汉字{::pron{p1,p2..},{p3,p4..}..} 指定发音,发音单元为 拼音

请求参数

主要请求参数说明
参数名称
类型
描述
RefText
String
被评估文本。使用| 划分多组分支
EvalMode
Integer
评估模式。7:单词实时评测模式
ServerType
Integer
评估语言。1:中文
TextMode
TextMode
输入文本模式。0:普通文本;1:音素结构
请求示例
{
"RefText":"你{::pron{ni2}} | 我 | 他"
"TextMode":0,
"EvalMode":7,
"ServerType":1,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"5716-1669017375212-07754",
"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":81.3698,
"PronAccuracy":81.3698,
"PronFluency":0.9065726,
"PronCompletion":1,
"RequestId":"6c6f8492-2560-46ed-9354-54ae84da8f65",
"Words":Array[3],
"SessionId":"5716-1669017375212-07754",
"AudioUrl":"",
"SentenceInfoSet":[
{
"SuggestedScore":0,
"PronAccuracy":81.3698,
"PronFluency":0.9065726,
"PronCompletion":1,
"Words":[
{
"MemBeginTime":1460,
"MemEndTime":2280,
"PronAccuracy":96.89722,
"PronFluency":0.88710386,
"ReferenceWord":"",
"Word":"我",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":1460,
"MemEndTime":1740,
"PronAccuracy":96.20584,
"DetectedStress":false,
"Phone":"w",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":1740,
"MemEndTime":2280,
"PronAccuracy":97.242905,
"DetectedStress":false,
"Phone":"o3",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
},
{
"MemBeginTime":2280,
"MemEndTime":2760,
"PronAccuracy":51.351707,
"PronFluency":0.91341424,
"ReferenceWord":"",
"Word":"你",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":2280,
"MemEndTime":2500,
"PronAccuracy":99.77607,
"DetectedStress":false,
"Phone":"n",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":2500,
"MemEndTime":2760,
"PronAccuracy":2.927343,
"DetectedStress":false,
"Phone":"i2",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
},
{
"MemBeginTime":3060,
"MemEndTime":3630,
"PronAccuracy":95.860466,
"PronFluency":0.9191997,
"ReferenceWord":"",
"Word":"他",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":3060,
"MemEndTime":3220,
"PronAccuracy":94.5224,
"DetectedStress":false,
"Phone":"t",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":3220,
"MemEndTime":3630,
"PronAccuracy":97.198524,
"DetectedStress":false,
"Phone":"a1",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
}
],
"SentenceId":-1,
}
],
"Status":"Finished",
}