-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
生成音频时报错 #56
Comments
这个应该就是网络问题
|
通过 proxychains 解决了,thanks |
请问如何解决的?我mac电脑全局已经配置了VPN,可以翻墙,但是,这个项目还是报这个错 |
|
我的方法如下,具体可以问下gpt proxychains的使用方法: |
我的方法如下,具体可以问下gpt proxychains的使用方法: |
@lmx01 比如我的VPN,是类似这样的,设置就没问题了 或者你也可以试试 @jerryblues 的方法 |
我的在window上跑的,出现了下面的错误: generating audio2024-04-05 00:19:03 | INFO | "./app\services\voice.py:997": tts - start, voice name: , try: 1 |
搞不懂,已经在HK服务器上跑,也是这样 |
命令行执行
看看会不会报错 |
@JamesMonges 你这个是声音设置错了,你是用的API还是Web |
我在终端中访问,无响应。并且 ping 也是失败的。但是浏览器可以打开 google.com.hk |
对 音频合成得选语种一样的 |
+1 ,这个是导致这个问题的本质原因。如果你是使用中文,就需要选择中文的人声。 |
我curl可以正常请求https://www.google.com,但是还是报错2024-04-19 15:26:04 | INFO | "./app\services\voice.py:1042": azure_tts_v1 - start, voice name: , try: 1 |
合成声音设置错误,比如用 |
还是不行,我是windows,用的是api的形式,请求参数是{ |
我看你发的请求参数,voice_name 是空的 |
我更换了voice_name后确实可以了,现在出现新的问题2024-04-19 16:22:46 | INFO | "./app\services\material.py:51": search_videos - searching videos: https://api.pexels.com/videos/search?query=Naruto%27s+Life+Journey&per_page=20&orientation=portrait, with proxies: {'http': 'http://xxx.xxx.xxx.xxx:xxxx', 'https': 'http://xxx.xxx.xxx.xxx:xxxx'} |
这个是你的API KEY的问题,去 https://www.pexels.com/api/ 申请一个,免费的 |
申请完成后,填写在哪个地方? |
在界面上,点击基础设置,填写进去即可 |
我使用中文,选择zh-CN-XiaoxiaoNeural,少数情况可以生成语音,大部分时候出现: |
@lipeng1109 这个问题,一般还是网络原因,因为要连接微软的服务器(海外),网络不是特别好,建议你用VPN,就可以了 |
我的网络是畅通的,用的gemini的apikey和pexels的apikey, 请问生成到这步骤报错是哪里的问题? 非常感谢, 求指点 2024-10-20 00:41:00.295 | INFO | app.services.task:generate_audio:75 - generating audio2024-10-20 00:41:00.299 | INFO | app.services.voice:azure_tts_v1:1057 - start, voice name: zh-CN-XiaoxiaoNeural, try: 1 2024-10-20 00:41:01.732 | ERROR | app.services.voice:azure_tts_v1:1080 - failed, error: 403, message='Invalid response status', url=URL('wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=0d725972364d4128a03afdb8a6332bb5') 2024-10-20 00:41:01.740 | INFO | app.services.voice:azure_tts_v1:1057 - start, voice name: zh-CN-XiaoxiaoNeural, try: 2 2024-10-20 00:41:03.368 | ERROR | app.services.voice:azure_tts_v1:1080 - failed, error: 403, message='Invalid response status', url=URL('wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=9ab51e6a30b64dcea81dbfce3ba233f1') 2024-10-20 00:41:03.377 | INFO | app.services.voice:azure_tts_v1:1057 - start, voice name: zh-CN-XiaoxiaoNeural, try: 3 2024-10-20 00:41:04.804 | ERROR | app.services.voice:azure_tts_v1:1080 - failed, error: 403, message='Invalid response status', url=URL('wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=e79414d188c1457d84459b2eab4194c2') 2024-10-20 00:41:04.813 | ERROR | app.services.task:generate_audio:85 - failed to generate audio:
2024-10-20 00:41:04.821 | ERROR | main::790 - 视频生成失败 |
看起来链接gemini正常卡在音频这里了, 一直403, 求指点,感谢 报错内容分割线2024-10-20 00:40:56 | INFO | "./app\services\task.py:210": start - start task: b83dd9d3-0774-452a-9f53-ea5ef09e6536, stop_at: video generating video script2024-10-20 00:40:56 | INFO | "./app\services\llm.py:282": generate_script - subject: 去看星星 generating video terms2024-10-20 00:41:00 | DEBUG | "./app\services\task.py:52": generate_terms - video terms: [ generating audio2024-10-20 00:41:00 | INFO | "./app\services\voice.py:1057": azure_tts_v1 - start, voice name: zh-CN-XiaoxiaoNeural, try: 1
|
generating audio
2024-03-25 16:35:38.413 | INFO | app.services.voice:tts:12 - start, voice name: zh-CN-XiaoxiaoNeural
2024-03-25 16:40:39.370 | ERROR | app.services.voice:tts:29 - failed, error:
2024-03-25 16:40:39.371 | ERROR | app.services.task:start:77 - failed to generate audio, maybe the network is not available. if you are in China, please use a VPN.
经过测试,在linux服务器上,使用 edge-tts,也无法正常文字转语音,这是为啥,服务器上也已经配了代理服务器,linux上的服务器可以访问 google 和 microsoft azune
另外,配置文件中 subtitle_provider = "whisper" 或 "edge" 都测试过,是一样的报错
求指点~
The text was updated successfully, but these errors were encountered: