跳到主要内容

情感识别

请求参数

名称类型示例描述
Urlstringhttps://api.aicisl.org.cn/asr/emotion访问地址
bodyform-data上传的音频文件
audiobytes音频文件

请求示例

curl --location 'https://api.aicisl.org.cn/asr/emotion' \
--form 'audio=@"/path/to/file"' \

返回参数

名称类型描述
labelslist情感标签
scoreslist每个情感标签的近似度

返回示例

{
"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
]
}