英语口语音频评测技能,通过调用远程评测服务对英语口语音频进行自动评分。提供标准文本和音频文件,返回总得分及单词/音素级别的详细评分信息。
正式环境地址: https://api.yingyutingshuo.com/open/api/v1/score/evaluate
请求方式: POST (multipart/form-data)
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| ------ | ------ | ------ | ------ |
| target_text | string | 是 | 标准文本,评测的参考文本 |
| audio_url | string | 否 | 音频文件网络地址(与 audio_file 二选一) |
| audio_file | file | 否 | 音频文件二进制上传(与 audio_url 二选一) |
| mode | string | 否 | 评测模式,默认 A |
| Mode | 说明 |
|---|---|
| ------ | ------ |
A - 单词和句子,默认
D - 含音素详情
C - 篇章
{
"ret": 0,
"msg": "success",
"data": {
"score": 88.66,
"lines": [
{
"sample": "hello world",
"usertext": "hello world",
"score": 88.66, # 总得分
"fluency": 91.87, # 流利度得分
"integrity": 100, # 完整度得分
"pronunciation": 88.56, # 发音得分
"words": [
{
"text": "hello",
"score": 9.0,
"subwords": [
{"subtext": "h", "score": 8.5},
{"subtext": "ə", "score": 9.2},
{"subtext": "l", "score": 9.0},
{"subtext": "oʊ", "score": 8.8}
]
},
{
"text": "world",
"score": 8.5,
"subwords": [
{"subtext": "w", "score": 8.0},
{"subtext": "ɜː", "score": 8.7},
{"subtext": "l", "score": 8.5},
{"subtext": "d", "score": 8.3}
]
}
]
}
],
"session_id": "xxx"
}
}
curl -X POST https://api.yingyutingshuo.com/open/api/v1/score/evaluate \
-F "target_text=hello world" \
-F "audio_url=https://example.com/audio.mp3"
curl -X POST https://api.yingyutingshuo.com/open/api/v1/score/evaluate \
-F "target_text=hello world" \
-F "audio_file=@./test.mp3"
curl -X POST https://api.yingyutingshuo.com/open/api/v1/score/evaluate \
-F "target_text=hello world" \
-F "mode=D" \
-F "audio_file=@./test.mp3"
共 2 个版本