microsoft / cognitive-services-speech-sdk-go

Go bindings for the Microsoft Cognitive Services Speech SDK
MIT License
88 stars 29 forks source link

ipv6 connect failure #119

Open shawnwey opened 9 months ago

shawnwey commented 9 months ago

Describe

Requesting the tts service in the same docker image environment can work on the ipv4 machine, but there will be the following error on the ipv6 machine:

[806998]: 194599ms SPX_TRACE_INFO:  thread_service.cpp:75 Started thread Background with ID [131141ll]
[806998]: 194599ms SPX_DBG_TRACE_VERBOSE:  named_properties.h:477 ISpxPropertyBagImpl::SetStringValue: this=0x0x007f86b8001d08; name='SPEECH-ConnectionUrl'; value='wss://chinanorth3.tts.spee
ch.azure.cn/cognitiveservices/websocket/v1'
[806998]: 194599ms SPX_DBG_TRACE_VERBOSE:  usp_tts_engine_adapter.cpp:363 speech.config {"context":{"system":{"version":"1.28.0","name":"SpeechSDK","build":"Linux-x64"},"os":{"platform":"Lin
ux","name":"Linux 5.4.143.bsk.8-amd64 #5.4.143.bsk.8 SMP Debian 5.4.143.bsk.8 Wed Jul 20 08:41:57 UTC  x86_64","version":"5.4.143.bsk.8-amd64"}}}
[131141]: 194599ms SPX_TRACE_INFO:  web_socket.cpp:800 DoWork: open transport.
[131141]: 194599ms SPX_TRACE_INFO:  web_socket.cpp:479 Start to open websocket. WebSocket: 0xb00024e0, wsio handle: 0xb00038f0
[131141]: 194599ms SPX_TRACE_SCOPE_ENTER:  uws_web_socket.cpp:149 Open
[131141]: 194599ms SPX_TRACE_INFO: AZ_LOG_INFO:  tlsio_openssl.c:1988 create_openssl_instance by TLSv1_2_method.
[806998]: 194599ms SPX_DBG_TRACE_VERBOSE:  usp_tts_engine_adapter.cpp:414 speech.config='{"context":{"system":{"version":"1.28.0","name":"SpeechSDK","build":"Linux-x64"},"os":{"platform":"Li
nux","name":"Linux 5.4.143.bsk.8-amd64 #5.4.143.bsk.8 SMP Debian 5.4.143.bsk.8 Wed Jul 20 08:41:57 UTC  x86_64","version":"5.4.143.bsk.8-amd64"}}}'
[806998]: 194599ms SPX_DBG_TRACE_VERBOSE:  usp_tts_engine_adapter.cpp:414 synthesis.context='{"synthesis":{"audio":{"outputFormat":"audio-16khz-128kbitrate-mono-mp3","metadataOptions":{"vise
meEnabled":false,"bookmarkEnabled":false,"wordBoundaryEnabled":false,"punctuationBoundaryEnabled":false,"sentenceBoundaryEnabled":false,"sessionEndEnabled":true}},"language":{"autoDetection"
:false}}}'
[806998]: 194599ms SPX_DBG_TRACE_VERBOSE:  usp_tts_engine_adapter.cpp:399 ssml <speak version='1.0' xmlns='http://www.w3.org/2001/10/synthesis' xmlns:mstts='http://www.w3.org/2001/mstts' xml
ns:emo='http://www.w3.org/2009/10/emotionml' xml:lang='en-US'><voice name='zh-CN-XiaochenNeural'>hello, 你好</voice></speak>
[806998]: 194599ms SPX_DBG_TRACE_VERBOSE:  usp_tts_engine_adapter.cpp:414 ssml='<speak version='1.0' xmlns='http://www.w3.org/2001/10/synthesis' xmlns:mstts='http://www.w3.org/2001/mstts' xm
lns:emo='http://www.w3.org/2009/10/emotionml' xml:lang='en-US'><voice name='zh-CN-XiaochenNeural'>hello, 你好</voice></speak>'
[131141]: 194599ms SPX_TRACE_INFO: AZ_LOG_INFO:  tlsio_openssl.c:1826 load_system_store not implemented on this platform
[131141]: 194599ms SPX_TRACE_INFO: AZ_LOG_INFO:  tlsio_openssl.c:1859 CRL check enabled.
[131141]: 194609ms SPX_TRACE_ERROR: AZ_LOG_ERROR:  socketio_berkeley.c:657 Failure: connect failure 101.
[131141]: 194609ms SPX_TRACE_ERROR: AZ_LOG_ERROR:  tlsio_openssl.c:780 Could not open underlying IO: 1
[131141]: 194609ms SPX_TRACE_SCOPE_ENTER:  uws_web_socket.cpp:247 OnWebSocketOpened
[131141]: 194609ms SPX_TRACE_ERROR:  web_socket.cpp:907 WS open operation failed with result=1(WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED), code=101[0x00000065], time=2024-01-31T12:58:19.564157
7Z
[131141]: 194609ms SPX_TRACE_INFO:  usp_connection.cpp:908 TS:11, TransportError: connection:0xb0001180, code=5, string=Connection failed (no connection to the remote host). Internal error: 
1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED
wss://chinanorth3.tts.speech.azure.cn/cognitiveservices/websocket/v1
X-ConnectionId: 1a793503d5f54a3b80fb1423f169d776
[131141]: 194609ms SPX_DBG_TRACE_VERBOSE:  usp_tts_engine_adapter.cpp:816 Response: On Error: Code:5, Message: Connection failed (no connection to the remote host). Internal error: 1. Error 
details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED

Info

ping chinanorth3.tts.speech.azure.cn
PING chinanorth3.tts.speech.azure.cn(64:ff9b::3483:1541 (64:ff9b::3483:1541)) 56 data bytes
64 bytes from 64:ff9b::3483:1541 (64:ff9b::3483:1541): icmp_seq=1 ttl=106 time=9.72 ms
64 bytes from 64:ff9b::3483:1541 (64:ff9b::3483:1541): icmp_seq=2 ttl=106 time=9.62 ms
64 bytes from 64:ff9b::3483:1541 (64:ff9b::3483:1541): icmp_seq=3 ttl=106 time=9.71 ms
^C
--- chinanorth3.tts.speech.azure.cn ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 9.625/9.690/9.728/0.092 ms
chschrae commented 9 months ago

Hello @shawnwey,

Thanks for reaching out to us.

Currently the SpeechSDK only supports IPv4.

I have created an internal work item to track this, and we will update this issue when there is progress. I cannot give a meaningful estimate of when it will be completed.

Internal work ID 6416685

victorvhpg commented 7 months ago

@chschrae any update ? support ipv6 on speech API