-
Notifications
You must be signed in to change notification settings - Fork 5k
GPT-SoVITS-v3-nvidia50-调用api-出错 #2294
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
Comments
作者更新api_v2.py错误就来了。例如下面的报错,手动给text没问题。一旦换成浏览器插件。和手动完全没差别的一段text,直接报错。 解决方案:回滚了API_V2.PY。使用这个版本替换到KAGGLE。 INFO: 13.229.250.233:0 - "GET /tts?text_lang=zh&ref_audio_path=/kaggle/input/cv-reference/MoBai1.wav&prompt_lang=zh&prompt_text=%25E4%25BD%25A0%25E8%25BF%2599%25E4%25B8%25AA%25E6%25B7%25B7%25E8%259B%258B%25EF%25BC%2581%25E8%25BF%2599%25E5%2588%25B0%25E5%25BA%2595%25E6%2598%25AF%25E6%2580%258E%25E4%25B9%2588%25E5%259B%259E%25E4%25BA%258B%25E5%2595%258A%25EF%25BC%259F&text_split_method=cut5&batch_size=1&media_type=wav&streaming_mode=true&text=%E9%97%BB%E7%9D%80%E6%88%BF%E9%97%B4%E9%87%8C%E9%82%A3%E4%BE%9D%E6%97%A7%E6%B5%93 HTTP/1.1" 200 OK
|
已经研究了好多天了,求好心人帮忙,调用api最后一步了
INFO: 未指定默认参考音频 INFO: 半精: True INFO: 编码格式: wav INFO: 数据类型: int16 INFO: Started server process [2464] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:9880 (Press CTRL+C to quit) INFO: 127.0.0.1:10448 - "GET /docs HTTP/1.1" 200 OK INFO: 127.0.0.1:10448 - "GET /openapi.json HTTP/1.1" 200 OK INFO: 127.0.0.1:10449 - "GET /?refer_wav_path=C%3A%5CUsers%5Cfengmaode%5CDesktop%5C1%E6%9C%80%E6%96%B0%E7%9A%84GPT-SoVITS-v3lora-20250228-nvidia50%5C123.wav&prompt_text=%E4%B8%AD%E6%96%87&prompt_language=%E4%B8%AD%E6%96%87&text=%E4%B8%AD%E6%96%87&text_language=%E4%B8%AD%E6%96%87&top_k=15&top_p=1&temperature=1&speed=1 HTTP/1.1" 200 OK ERROR: Exception in ASGI application Traceback (most recent call last): File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 407, in run_asgi result = await app( # type: ignore[func-returns-value] File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in __call__ return await self.app(scope, receive, send) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\applications.py", line 123, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\middleware\errors.py", line 186, in __call__ raise exc File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\middleware\errors.py", line 164, in __call__ await self.app(scope, receive, _send) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\middleware\exceptions.py", line 65, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\_exception_handler.py", line 64, in wrapped_app raise exc File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app await app(scope, receive, sender) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\routing.py", line 754, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\routing.py", line 774, in app await route.handle(scope, receive, send) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\routing.py", line 295, in handle await self.app(scope, receive, send) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\routing.py", line 77, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\_exception_handler.py", line 64, in wrapped_app raise exc File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app await app(scope, receive, sender) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\routing.py", line 75, in app await response(scope, receive, send) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\responses.py", line 265, in __call__ await wrap(partial(self.listen_for_disconnect, receive)) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\anyio\_backends\_asyncio.py", line 662, in __aexit__ raise exceptions[0] File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\responses.py", line 261, in wrap await func() File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\responses.py", line 250, in stream_response async for chunk in self.body_iterator: File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\concurrency.py", line 65, in iterate_in_threadpool yield await anyio.to_thread.run_sync(_next, as_iterator) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run result = context.run(func, *args) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\runtime\lib\site-packages\starlette\concurrency.py", line 54, in _next return next(iterator) File "C:\Users\fengmaode\Desktop\1最新的GPT-SoVITS-v3lora-20250228-nvidia50\api.py", line 560, in get_tts_wav infer_sovits = speaker_list[spk].sovits KeyError: 'default'
The text was updated successfully, but these errors were encountered: