question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

StartContinuousRecognitionAsync Not Working on Windows 7 x86

See original GitHub issue

Describe the bug While using StartContinuousRecognitionAsync on Windows 7, the connection to the Cognitive server suddenly dies during start.

Was able to trace the error using SDK 1.4+:

(893): 5203ms SPX_TRACE_ERROR: AZ_LOG_ERROR: WS open operation failed with result=8(WS_OPEN_ERROR_INVALID_BYTES_RECEIVED_ARGUMENTS), code=998[0x000003e6] (893): 5204ms SPX_TRACE_ERROR: Error: File:D:\a\1\s\source\core\usp\transport.cpp Func:?OnWSOpened@@YAXPAXU_WS_OPEN_RESULT_DETAILED@@@Z Line:422 (893): 5204ms SPX_TRACE_INFO: AZ_LOG_INFO: TS:1223, TransportError: connection:0x6304a8, reason=2, code=8 [0x00000008], string=998 (893): 5204ms SPX_DBG_TRACE_VERBOSE: Response: On Error: Code:5, Message: Connection failed (no connection to the remote host). Internal error: 8. Error details: 998. Please check network connection, firewall setting, and the region name used to create speech factory

To Reproduce Steps to reproduce the behavior:

  1. Start a new Console project targeting 4.6.2 Framework

  2. Add a Nuget reference to Microsoft.CognitiveServices.Speech v1.3.1. (Newer releases throws a CreateFile2 entrypoint missing on Kernel32"

SpeechConfig speechConfig = SpeechConfig.FromSubscription(
                ConfigurationManager.AppSettings["Microsoft.SubscriptionKey"],
                ConfigurationManager.AppSettings["Microsoft.ServiceRegion"]);

speechConfig.SpeechRecognitionLanguage = "pt-BR";

SpeechRecognizer speechRecognizer = new SpeechRecognizer(speechConfig);

speechRecognizer.Recognized += (sender, recognitionResult) =>
{
                Console.WriteLine($"{recognitionResult.Result.Text}");
};

await speechRecognizer.StartContinuousRecognitionAsync().ConfigureAwait(false);
  1. Target platform: x86

Expected behavior Sentences being recognized as it does while running on Windows 10

Version of the Cognitive Services Speech SDK 1.0.0~1.5.0

Platform, Operating System, and Programming Language

  • OS: Windows 7 Enterprise x68 7601 SP1
  • Hardware - Core i7-7700HQ
  • Programming language: C#

Exactly same code works flawlessly on Windows 10 build 1903

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
mahilleb-msftcommented, May 7, 2019

I’m sorry, @RodrigoRVieira – Windows 7 is not a supported platform for the Speech SDK. Please checkout https://docs.microsoft.com/azure/cognitive-services/speech-service/ for the platform support matrix.

Best, Mark

3reactions
chrisbasoglucommented, May 10, 2019

we do have plans to open-source this component. in ~2-3 months.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure cognitive method is not returning anything
I have a button, that calls a method, to transcribe a WAV into text, the method works and I can see all the...
Read more >
Speech - Azure Cognitive Services Succinctly Ebook
Learn about quick intro, speech project and creating the speech service in the chapter "Speech" of Syncfusion Azure Cognitive Services free ...
Read more >
Azure cognitive stops immediately after I start
The idea is to complete the TaskCompletionSource not before the ... StartContinuousRecognitionAsync(); // Wait for the 'SpeechRecognizer.
Read more >
Installing new Text-To-Speech languages on Windows 7 ...
I've been hoping to install a Spanish Text-To-Speech voice for use with a vb.Net program I'm creating. I've downloaded MSSpeech_TTS_es-ES_Helena ...
Read more >
RStudio Desktop fails to start after updating to v.1.2.1335 ...
On startup, I'm receiving the following Windows error message: "RStudio has stopped working". Description of issue - RStudio Desktop cannot ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found