Skip to content
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

🐛 GPT-SOVITS 报错 : "text_lang": dict_language[text_lang] #743

Closed
Ikaros-521 opened this issue Apr 1, 2024 · 2 comments
Closed

🐛 GPT-SOVITS 报错 : "text_lang": dict_language[text_lang] #743

Ikaros-521 opened this issue Apr 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Ikaros-521
Copy link
Owner

您使用的版本? | Your usage version?

main

您使用的python版本&系统环境? | Your usage python version & system?

python:3.10.11
系统:win11

您使用的场景? | Your usage scenarios?

您做了什么操作? | What did you do?

您遇到了什么问题? | What are your problems?

ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 408, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 69, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\fastapi\applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\applications.py", line 123, in __call__
    await self.middleware_stack(scope, receive, send)
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\middleware\errors.py", line 186, in __call__
    raise exc
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\middleware\cors.py", line 83, in __call__
    await self.app(scope, receive, send)
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\routing.py", line 758, in __call__
    await self.middleware_stack(scope, receive, send)
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\routing.py", line 778, in app
    await route.handle(scope, receive, send)
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\routing.py", line 299, in handle
    await self.app(scope, receive, send)
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\routing.py", line 79, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\starlette\routing.py", line 74, in app
    response = await func(request)
               ^^^^^^^^^^^^^^^^^^^
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\fastapi\routing.py", line 278, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\runtime\Lib\site-packages\fastapi\routing.py", line 191, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\api.py", line 505, in tts_endpoint
    return handle_new(
           ^^^^^^^^^^^
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\api.py", line 474, in handle_new
    sampling_rate, audio_data = next(gen)
                                ^^^^^^^^^
  File "E:\GPT-SoVITS-0322-liuyue\GPT-SoVITS-0310-liuyue\GPT_SoVITS\inference_webui.py", line 133, in inference
    "text_lang": dict_language[text_lang],
                 ~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: None

您期望的结果是怎样的? | What is your expected outcome?

@Ikaros-521 Ikaros-521 added the bug Something isn't working label Apr 1, 2024
@Ikaros-521
Copy link
Owner Author

刘悦佬新版本的整合包 对接口做了大改 没法兼容。

@Ikaros-521
Copy link
Owner Author

#747

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant