oliverkirk-sudo / chat_voice

QChatGPT的插件,用于将输出内容转化为音频
30 stars 1 forks source link

关于Azure的报错 #7

Closed EricMeteorite closed 1 year ago

EricMeteorite commented 1 year ago

我在输入了密钥和地区之后,重新启动了机器人,他报错如下:

SpeechSynthesisResult(result_id=9e10364aa06142e08a7218c47c6920b9, reason=ResultReason.Canceled, audio_length=0) [2023-03-23 10:44:51.826] azure_text_to_speech.py (44) - [WARNING] : CancellationReason.Error [2023-03-23 10:44:51.826] azure_text_to_speech.py (47) - [ERROR] : Connection failed (no connection to the remote host). Internal error: 1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED wss://eastus.tts.speech.microsoft.com/cognitiveservices/websocket/v1 X-ConnectionId: d5f77533e26a4545a59a0b72f4799938 USP state: Sending. Received audio size: 0 bytes. [2023-03-23 10:44:51.827] azure_text_to_speech.py (48) - [WARNING] : Did you update the subscription info? [2023-03-23 10:44:51.827] main.py (24) - [ERROR] : wav生成失败 [2023-03-23 10:44:51.828] main.py (41) - [WARNING] : 未找到wav,pcm与silk文件

屏幕截图 2023-03-23 184638

按照这个报错的意思可能是配置文件的问题,但是配置文件确实没什么问题呀,就很奇怪 感谢!

oliverkirk-sudo commented 1 year ago

这是连到微软的服务器失败了

EricMeteorite commented 1 year ago

这是连到微软的服务器失败了

这是服务器问题嘛,我的服务器可以正常访问欸,难道说没法访问Azure?

oliverkirk-sudo commented 1 year ago

你把服务换到eastus以外的区域试试

EricMeteorite commented 1 year ago

你把服务换到eastus以外的区域试试

我搞了两个Azure的账号,东南亚,美东和美西这三个区域都试过了。然后我的VPS是美西的,三个区域都是一样的报错,Huggingface用起来没问题,就是Azure报这个错了

oliverkirk-sudo commented 1 year ago

配置文件里的地区改了没

EricMeteorite commented 1 year ago

配置文件里的地区改了没

嗯嗯都改过了,同步改的,Azure是什么配置文件就是什么

oliverkirk-sudo commented 1 year ago

我明天看看能不能复现

EricMeteorite commented 1 year ago

我明天看看能不能复现

好的麻烦了,感谢!

oliverkirk-sudo commented 1 year ago

我的机器人全被封掉了,现在登不上,你现在还是这个问题吗。

EricMeteorite commented 1 year ago

我的机器人全被封掉了,现在登不上,你现在还是这个问题吗。

嗯嗯,我现在还是这个情况,用不了Azure,没事,不着急

oliverkirk-sudo commented 1 year ago

应该是你的配置问题,我在网上看到差不多的错误了https://learn.microsoft.com/en-us/answers/questions/1046264/text-to-speech-failed-with-error-ws-open-error-und

EricMeteorite commented 1 year ago

应该是你的配置问题,我在网上看到差不多的错误了https://learn.microsoft.com/en-us/answers/questions/1046264/text-to-speech-failed-with-error-ws-open-error-und

好的我看一下,感谢

DefensiveSniper commented 1 year ago

所以应该怎么解决?