Azure-Samples / cognitive-services-speech-sdk

Sample code for the Microsoft Cognitive Services Speech SDK
MIT License
2.95k stars 1.86k forks source link

Connection error to speech service | Connection failed (no connection to the remote host). Internal error: 1 #2149

Closed havu95 closed 11 months ago

havu95 commented 11 months ago

Hello all,

Speech SDK log taken from the run: speechlog (1).txt

Describe the bug

I am trying to run the above the script, but I get an error (see below). I am using a proxy and also tried set it up based on https://learn.microsoft.com/en-us/azure/developer/python/sdk/azure-sdk-configure-proxy?tabs=bash

Speech service is open for all networks and also tried to reinstall the SDK. Based on the logs the proxy is not used properly?

Version of the Cognitive Services Speech SDK

1.32.1

Platform, Operating System, and Programming Language

pankopon commented 11 months ago

Hi, Speech SDK for Python is not the same as "Azure SDK for Python". You need to use the set_proxy method, like

speech_config.set_proxy("YourProxyHostname", YourProxyPortNumber, "YourProxyUsername", "YourProxyPassword")
havu95 commented 11 months ago

Hi, this was the solution. Now it works :)

pankopon commented 11 months ago

Closed as resolved.