Hi, thanks for reaching out. We currently don't support confidence score for intermediate result, you can only get the confidence score for final result. Hope this helps!
Azure Speech To Text: How to get confidence for recognizing (intermediate) result ?
Kun Wu
146
Reputation points Microsoft Employee
Hello,
With Azure speech to text sdk, i can retrieve confidence for each recognized result in below way:
- config.setServiceProperty("format", "detailed", ServicePropertyChannel.UriQueryParameter);
- PropertyCollection properties = result.getProperties();
- String property = properties.getProperty(PropertyId.SpeechServiceResponse_JsonResult);
But how can i get the confidence for recognizing reco result, a.k.a. intermediate result ? So there is no confidence in intermediate reco json string:
{
"Duration":6000000,
"Id":"c135c330cb494b2f883cfe5ac47687aa",
"Offset":16300000,
"PrimaryLanguage":{
"Language":"en-US"
},
"Text":"flying map"
}
Thank you.