Skip to content

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

Closed

Description

@AlexRadch

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

Activity

  1. ghost added
    untriaged
    on Sep 21, 2021
  2. 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
  3. danmoseley commented on Sep 22, 2021

    @danmoseley
    Contributor

    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.

  4. added this to the Future milestone on Sep 22, 2021
  5. removed
    untriaged
    on Sep 22, 2021
  6. AlexRadch commented on Sep 23, 2021

    @AlexRadch
    ContributorAuthor

    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.

  7. ghost added
    in-pr
    on Sep 23, 2021
  8. ghost removed
    in-pr
    on Sep 27, 2021
  9. ghost locked as resolved and limited conversation to collaborators on Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions