Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Speech.Tests fail GrammarBuilder test on non-English OS #59400

Closed
AlexRadch opened this issue Sep 21, 2021 · 3 comments · Fixed by #59516
Closed

System.Speech.Tests fail GrammarBuilder test on non-English OS #59400

AlexRadch opened this issue Sep 21, 2021 · 3 comments · Fixed by #59516

Comments

@AlexRadch
Copy link
Contributor

Description

System.Speech.Tests fail SampleSynthesisTests.GrammarTests.GrammarBuilder test on non-English OS with next exception System.InvalidOperationException : The language for the grammar does not match the language of the speech recognizer.

Configuration

net7.0
Windows 10 (Russian)
x64

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Sep 21, 2021
@AlexRadch AlexRadch changed the title System.Speech.Tests fail SampleSynthesisTests.GrammarTests.GrammarBuilder test on non-English OS System.Speech.Tests fail GrammarBuilder test on non-English OS Sep 21, 2021
@danmoseley
Copy link
Member

thanks for the report @AlexRadch . Could you share a callstack?

Do you have any interest in investigating a little? If not we can probably just disable on non-English. This code is essentially identical to .NET Framework and it sounds like all the other tests pass for you.

@danmoseley danmoseley added this to the Future milestone Sep 22, 2021
@danmoseley danmoseley removed the untriaged New issue has not been triaged by the area owner label Sep 22, 2021
@AlexRadch
Copy link
Contributor Author

Hi @danmoseley,

thanks for the report @AlexRadch . Could you share a callstack?

      SampleSynthesisTests.GrammarTests.GrammarBuilder [FAIL]
        System.InvalidOperationException : The language for the grammar does not match the language of the speech recognizer.
        Stack Trace:
          D:\Code\runtime\src\libraries\System.Speech\src\Recognition\RecognizerBase.cs(2640,0): at System.Speech.Recognition.RecognizerBase.ThrowIfSapiErrorCode(SAPIErrorCodes errorCode)
          D:\Code\runtime\src\libraries\System.Speech\src\Recognition\RecognizerBase.cs(1630,0): at System.Speech.Recognition.RecognizerBase.LoadSapiGrammarFromCfg(SapiGrammar sapiGrammar, Grammar grammar, Uri baseUri, Boolean enabled, Single weight, Int32 priority)
          D:\Code\runtime\src\libraries\System.Speech\src\Recognition\RecognizerBase.cs(1426,0): at System.Speech.Recognition.RecognizerBase.LoadSapiGrammar(Grammar grammar, SapiGrammar sapiGrammar, Boolean enabled, Single weight, Int32 priority)
          D:\Code\runtime\src\libraries\System.Speech\src\Recognition\RecognizerBase.cs(64,0): at System.Speech.Recognition.RecognizerBase.LoadGrammar(Grammar grammar)
          D:\Code\runtime\src\libraries\System.Speech\src\Recognition\SpeechRecognitionEngine.cs(317,0): at System.Speech.Recognition.SpeechRecognitionEngine.LoadGrammar(Grammar grammar)
          D:\Code\runtime\src\libraries\System.Speech\tests\GrammarTests.cs(120,0): at SampleSynthesisTests.GrammarTests.GrammarBuilder()

Do you have any interest in investigating a little? If not we can probably just disable on non-English. This code is essentially identical to .NET Framework and it sounds like all the other tests pass for you.

Yes, all other tests pass on my computer.

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Sep 23, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Sep 27, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants