A Fundamental End-to-End Speech Recognition Toolkit and Open Source SOTA Pretrained Models, Supporting Speech Recognition, Voice Activity Detection, Text Post-processing etc.
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "conda_env/FunASR/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "conda_env/FunASR/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
return await self.app(scope, receive, send)
File "conda_env/FunASR/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "conda_env/FunASR/lib/python3.10/site-packages/gradio/route_utils.py", line 760, in __call__
await self.app(scope, receive, send)
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/routing.py", line 754, in __call__
await self.middleware_stack(scope, receive, send)
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/routing.py", line 774, in app
await route.handle(scope, receive, send)
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/routing.py", line 295, in handle
await self.app(scope, receive, send)
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/routing.py", line 75, in app
await response(scope, receive, send)
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/responses.py", line 348, in __call__
await send(
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/_exception_handler.py", line 50, in sender
await send(message)
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/_exception_handler.py", line 50, in sender
await send(message)
File "conda_env/FunASR/lib/python3.10/site-packages/starlette/middleware/errors.py", line 161, in _send
await send(message)
File "conda_env/FunASR/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 510, in send
output = self.conn.send(event=h11.EndOfMessage())
File "conda_env/FunASR/lib/python3.10/site-packages/h11/_connection.py", line 512, in send
data_list = self.send_with_data_passthrough(event)
File "conda_env/FunASR/lib/python3.10/site-packages/h11/_connection.py", line 545, in send_with_data_passthrough
writer(event, data_list.append)
File "conda_env/FunASR/lib/python3.10/site-packages/h11/_writers.py", line 67, in __call__
self.send_eom(event.headers, write)
File "conda_env/FunASR/lib/python3.10/site-packages/h11/_writers.py", line 96, in send_eom
raise LocalProtocolError("Too little data for declared Content-Length")
h11._util.LocalProtocolError: Too little data for declared Content-Length
识别音频文件报错
但是可以运行完程序流程,结果正确。
🐛 Bug
环境
pip
, source):代码