Azure-Samples / Cognitive-Speech-STT-Windows

Windows SDK for the Microsoft Speech-to-Text API, part of Cognitive Services
https://www.microsoft.com/cognitive-services/en-us/speech-api
Other
112 stars 88 forks source link

Failed to create transport request #62

Open n00b007 opened 5 years ago

n00b007 commented 5 years ago

Hi, On running the python sample code, I get a run-time error which says Failed to create transport request.

Say something... SpeechRecognitionResult(result_id=348276b025f943b79b1df48b29acc7c3, text="", reason=ResultReason.Canceled) Speech Recognition canceled: CancellationReason.Error Error details: Runtime error: Failed to create transport request.

Any idea how to resolve this ?

softsan commented 5 years ago

same issue here @n00b007 any solution you found yet?

n00b007 commented 5 years ago

Nope, not yet. Easier option is to switch from Azure to GCP

ujjwaluttaray commented 5 years ago

Was facing the same issue. Fixed by filling the service region in SpeechConfig.FromSubscription with correct value. The value should be speech sdk parameter in https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/regions