Fallback language without country code in speech recognise

CodeKidz 25 Reputation points
2023-12-14T12:06:08.43+00:00

In some cases, languages do not have country codes, such as zh-CN can be written as simply "zh" for Chinese, or en-US can be written as "en" for English.

But speech recognise config does not support this, when I use zh for the language, the text recognised is empty.

I hope that Microsoft can update the speech recognition configuration to support languages without country codes, allowing for accurate text recognition.

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

2 answers

Sort by: Most helpful
  1. santoshkc 15,245 Reputation points Microsoft External Staff Moderator
    2023-12-14T12:46:58.14+00:00

    Hi @CodeKidz ,

    Thank you for reaching out to Microsoft Q&A forum!

    I understand that you are facing issues with speech recognition configuration when using languages without country codes. Currently, the Speech Recognition API requires a language-locale format string to recognize speech.

    We appreciate your suggestion to update the speech recognition configuration to support languages without country codes. I encourage you to submit a feature request through the Azure Feedback Forum. Here's the link to the Azure Feedback Forum: Post idea · Community (azure.com)

    I hope you understand. Thank you.


    Do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


  2. Sedat SALMAN 14,180 Reputation points MVP
    2023-12-14T12:47:32.8166667+00:00

    Hello

    but according to me

    the country code is important to distinguish different dialects or versions of a language like french

    there are differences between

    fr-FR and fr-CA (Canadian french and ordinary French)

    same is valid for chinese

    https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt

    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.