生成了一个零秒音频,终端INFO: 127.0.0.1:5006 - "POST /tts HTTP/1.1" 200 OK
INFO: 127.0.0.1:5006 - "GET /tts HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 407, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().__call__(scope, receive, send)
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\starlette\applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\starlette\middleware\errors.py", line 186, in call
raise exc
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\starlette\middleware\errors.py", line 164, in call
await self.app(scope, receive, _send)
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\starlette\middleware\exceptions.py", line 65, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\starlette\_exception_handler.py", line 64, in wrapped_app
raise exc
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\starlette\routing.py", line 754, in call
await self.middleware_stack(scope, receive, send)
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\starlette\routing.py", line 774, in app
await route.handle(scope, receive, send)
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\starlette\routing.py", line 295, in handle
await self.app(scope, receive, send)
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\starlette\routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\starlette\_exception_handler.py", line 64, in wrapped_app
raise exc
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\starlette\routing.py", line 74, in app
response = await f(request)
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\fastapi\routing.py", line 278, in app
raw_response = await run_endpoint_function(
File "F:\ai\GPT-SoVITS-v2pro-20250604\runtime\lib\site-packages\fastapi\routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "F:\ai\GPT-SoVITS-v2pro-20250604\api_v2.py", line 484, in tts_get_endpoint
"text_lang": text_lang.lower(),
AttributeError: 'NoneType' object has no attribute 'lower'