Azure Speech JS SDK Returns Single Item in NBest Array

Tom D 20 Reputation points
2024-12-18T13:53:27.55+00:00

When using the Cognitive Services JavaScript Speech SDK with OutputFormat.Detailed and the recognizeOnceAsync approach, the NBest array consistently contains only a single object instead of the expected multiple alternatives.

For example, when pronouncing 'flour', it would be anticipated to receive multiple items in the array, such as 'flower', which is a likely alternative.

Is this a bug in the SDK, or do I need to provide a different setting when creating the recognizer?

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

Accepted answer
  1. navba-MSFT 27,340 Reputation points Microsoft Employee
    2025-01-07T06:20:22.5166667+00:00

    @Tom D Thanks for your reply. I am glad that disabling the pronunciation assessment resolved the issue.

    .

    To answer your question.

    1. This is not a bug. This is by design.
    2. Here is the document, which shows that the pronunciation assessment result only has single best result
    3. This is just by design. Pronunciation assessment is different from STT, which doesn't provide assessment on multiple items.

    And we don't have plan to support pronunciation assessment with nbest result.

    Hope this answers.

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.