This API can be used to pre-check audio quality, improving customization efficiency.
Supported audio quality metrics:
Signal-to-noise ratio: Being greater than or equal to 30 is acceptable.
Reverberation index: Being greater than or equal to 30 is acceptable.
Clipping index: Being less than or equal to 0 is acceptable.
Effective duration: Being greater than or equal to 10 minutes is acceptable.
Text accuracy: Being greater than or equal to 70% is acceptable (this metric is valid when "audio reference text" is provided).
Calling Protocol
HTTPS + JSON
POST /v2/ivh/algotaskserver/algotaskservice/audioevaluation
Header Content-Type: application/json;charset=utf-8
Request Parameters
|
| | | URL of the audio to be checked. Currently, the supported audio format is WAV. |
| | | Audio reference text (optional). When it is not provided, it means the "text accuracy" metric is not required. |
Response Parameter
|
| | | The ID of the created audio quality inspection task |
Request Sample
{
"Header": {},
"Payload": {
"AudioUrl": "xxx",
"ReferenceText": "Hello"
}
}
Response Sample
{
"Header": {
"Code": 0,
"Message": "",
"RequestID": "123"
},
"Payload": {
"TaskId": "xxx"
}
}
Was this page helpful?