-
Notifications
You must be signed in to change notification settings - Fork 779
Description
System Info / 系統信息
2025-03-13 03:19:35,669 xinference.model.audio.chattts 62 INFO Speech by voice
2025-03-13 03:19:35,674 xinference.core.model 62 ERROR stream encountered an error.
Traceback (most recent call last):
File "/opt/conda/lib/python3.11/site-packages/xinference/core/model.py", line 625, in _handle_pending_requests
r = await asyncio.to_thread(_wrapper, gen)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/xinference/core/model.py", line 618, in _wrapper
return next(_gen)
^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/xinference/core/model.py", line 530, in _to_generator
for v in gen:
File "/opt/conda/lib/python3.11/site-packages/xinference/model/audio/chattts.py", line 115, in _generator
writer = torchaudio.io.StreamWriter(out, format=response_format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/torio/io/_streaming_media_encoder.py", line 197, in init
self._s = ffmpeg_ext.StreamingMediaEncoderFileObj(dst, format, buffer_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/torio/_extension/utils.py", line 25, in getattr
self._import_once()
File "/opt/conda/lib/python3.11/site-packages/torio/_extension/utils.py", line 39, in _import_once
self.module = self.import_func()
^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/torio/_extension/utils.py", line 143, in _init_ffmpeg
ext = _find_ffmpeg_extension(ffmpeg_vers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/torio/_extension/utils.py", line 122, in _find_ffmpeg_extension
raise ImportError(
ImportError: Failed to intialize FFmpeg extension. Tried versions: ['6', '5', '4', '']. Enable DEBUG logging to see more details about the error.
Running Xinference with Docker? / 是否使用 Docker 运行 Xinfernece?
- docker / docker
- pip install / 通过 pip install 安装
- installation from source / 从源码安装
Version info / 版本信息
latest-cpu
The command used to start Xinference / 用以启动 xinference 的命令
docker compose 启动
Reproduction / 复现过程
在Dify中调用xinference后出现报错
Expected behavior / 期待表现
无报错