Azure Speech To Text: How to get confidence for recognizing (intermediate) result ?

Kun Wu 146 Reputation points Microsoft Employee
2021-07-19T12:02:24.22+00:00

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.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,728 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GiftA-MSFT 11,166 Reputation points
    2021-07-19T20:14:34.033+00:00

    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!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.