情感识别
请求参数
名称 | 类型 | 示例 | 描述 |
---|---|---|---|
Url | string | https://api.aicisl.org.cn/asr/emotion | 访问地址 |
body | form-data | 上传的音频文件 | |
audio | bytes | 音频文件 |
请求示例
curl --location 'https://api.aicisl.org.cn/asr/emotion' \
--form 'audio=@"/path/to/file"' \
返回参数
名称 | 类型 | 描述 |
---|---|---|
labels | list | 情感标签 |
scores | list | 每个情感标签的近似度 |
返回示例
{
"labels": [
"生气/angry",
"厌恶/disgusted",
"恐惧/fearful",
"开心/happy",
"中立/neutral",
"其他/other",
"难过/sad",
"吃惊/surprised",
"<unk>"
],
"scores": [
1.1069461152146687e-6, 1.0287870281899814e-5, 2.371733899053652e-6,
3.2346375519409776e-5, 0.9998834133148193, 3.6782930692424998e-6,
6.476685666712001e-5, 2.6674450737118605e-7, 1.7624388419790193e-6
]
}