You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
System.Speech.Tests fail GrammarBuilder test on non-English OS #59400
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
Activity
ghost added
untriagedNew issue has not been triaged by the area owner
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[/+]on Sep 21, 2021
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.
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 added
in-prThere is an active PR which will close this issue when it is merged
Activity
[-]System.Speech.Tests fail SampleSynthesisTests.GrammarTests.GrammarBuilder test on non-English OS[/-][+]System.Speech.Tests fail GrammarBuilder test on non-English OS[/+]danmoseley commentedon Sep 22, 2021
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.
AlexRadch commentedon Sep 23, 2021
Hi @danmoseley,
Yes, all other tests pass on my computer.