No audio was received. Please verify that your parameters are correct.
No audio was received. Please verify that your parameters are correct. Traceback (most recent call last): File "/home/ubuntu/assets/cmd_main/fun/tts.py", line 94, in tts async for chunk in communicate.stream(): File "/home/ubuntu/myenv/lib/python3.9/site-packages/edge_tts/communicate.py", line 566, in stream async for message in self.__stream(): File "/home/ubuntu/myenv/lib/python3.9/site-packages/edge_tts/communicate.py", line 541, in __stream raise NoAudioReceived( edge_tts.exceptions.NoAudioReceived: No audio was received. Please verify that your parameters are correct.
I use this on my VPS
I believe MSFT made a change. If you look closer, you'll likely notice a 401 error in the logs. It was previously working for me, but stopped sometime on Tuesday.
401, message='Invalid response status', url='wss://api.msedgeservices.com/tts/cognitiveservices/websocket/v1?Ocp-Apim-Subscription-Key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&ConnectionId=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&Sec-MS-GEC=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&Sec-MS-GEC-Version=1-140.0.3485.14'
i have same error today , i install the old 7.0.0 version, this error is disapper
I also meet this problem. installing the ”edge-tts 7.0.0“ will be solved.