Skip to content

部署了ChatTTS文本生语音模型,纯文本语音没问题,但是上传克隆音频就不行了 #3919

@xiongdingyuan

Description

@xiongdingyuan

System Info / 系統信息

linux

Running Xinference with Docker? / 是否使用 Docker 运行 Xinfernece?

  • docker / docker
  • pip install / 通过 pip install 安装
  • installation from source / 从源码安装

Version info / 版本信息

1.8.0

The command used to start Xinference / 用以启动 xinference 的命令

docker

Reproduction / 复现过程

Image Image

2025-08-05 20:31:58,997 xinference.core.model 768 ERROR [request e8bdaf16-7275-11f0-8690-1a82df1b3347] Leave speech, error: ChatTTSModel.speech() got an unexpected keyword argument 'prompt_speech', elapsed time: 0 s
Traceback (most recent call last):
File "/opt/inference/xinference/core/utils.py", line 93, in wrapped
ret = await func(*args, **kwargs)
File "/opt/inference/xinference/core/model.py", line 1028, in speech
return await self._call_wrapper_binary(
File "/opt/inference/xinference/core/model.py", line 670, in _call_wrapper_binary
return await self._call_wrapper("binary", fn, *args, **kwargs)
File "/opt/inference/xinference/core/model.py", line 146, in _async_wrapper
return await fn(self, *args, **kwargs)
File "/opt/inference/xinference/core/model.py", line 692, in _call_wrapper
ret = await asyncio.to_thread(fn, *args, **kwargs)
File "/usr/lib/python3.10/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
TypeError: ChatTTSModel.speech() got an unexpected keyword argument 'prompt_speech'
2025-08-05 20:31:59,001 xinference.api.restful_api 1 ERROR [address=0.0.0.0:44363, pid=768] ChatTTSModel.speech() got an unexpected keyword argument 'prompt_speech'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/xinference/api/restful_api.py", line 1649, in create_speech
out = await model.speech(
File "/usr/local/lib/python3.10/dist-packages/xoscar/backends/context.py", line 262, in send
return self._process_result_message(result)
File "/usr/local/lib/python3.10/dist-packages/xoscar/backends/context.py", line 111, in _process_result_message
raise message.as_instanceof_cause()
File "/usr/local/lib/python3.10/dist-packages/xoscar/backends/pool.py", line 689, in send
result = await self._run_coro(message.message_id, coro)
File "/usr/local/lib/python3.10/dist-packages/xoscar/backends/pool.py", line 389, in _run_coro
return await coro
File "/usr/local/lib/python3.10/dist-packages/xoscar/api.py", line 418, in on_receive
return await super().on_receive(message) # type: ignore
File "xoscar/core.pyx", line 564, in on_receive
raise ex
File "xoscar/core.pyx", line 526, in xoscar.core._BaseActor.on_receive
async with self._lock:
File "xoscar/core.pyx", line 527, in xoscar.core._BaseActor.on_receive
with debug_async_timeout('actor_lock_timeout',
File "xoscar/core.pyx", line 532, in xoscar.core._BaseActor.on_receive
result = await result
File "/opt/inference/xinference/core/model.py", line 111, in wrapped_func
ret = await fn(self, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/xoscar/api.py", line 496, in _wrapper
r = await func(self, *args, **kwargs)
File "/opt/inference/xinference/core/utils.py", line 93, in wrapped
ret = await func(*args, **kwargs)
File "/opt/inference/xinference/core/model.py", line 1028, in speech
return await self._call_wrapper_binary(
File "/opt/inference/xinference/core/model.py", line 670, in _call_wrapper_binary
return await self._call_wrapper("binary", fn, *args, **kwargs)
File "/opt/inference/xinference/core/model.py", line 146, in _async_wrapper
return await fn(self, *args, **kwargs)
File "/opt/inference/xinference/core/model.py", line 692, in _call_wrapper
ret = await asyncio.to_thread(fn, *args, **kwargs)
File "/usr/lib/python3.10/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
TypeError: [address=0.0.0.0:44363, pid=768] ChatTTSModel.speech() got an unexpected keyword argument 'prompt_speech'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 2103, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1650, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 967, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 890, in wrapper
response = f(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/xinference/core/media_interface.py", line 788, in tts_generate
response = model.speech(
File "/usr/local/lib/python3.10/dist-packages/xinference/client/restful/restful_client.py", line 865, in speech
raise RuntimeError(
RuntimeError: Failed to speech the text, detail: [address=0.0.0.0:44363, pid=768] ChatTTSModel.speech() got an unexpected keyword argument 'prompt_speech'

Expected behavior / 期待表现

纯文本语音没问题,但是上传克隆音频就不行了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions