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

[BUG:WebUI] 无法使用说话人种子生成语音 #105

Closed
3 tasks done
OrvilleQ opened this issue Jul 14, 2024 · 1 comment
Closed
3 tasks done

[BUG:WebUI] 无法使用说话人种子生成语音 #105

OrvilleQ opened this issue Jul 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@OrvilleQ
Copy link

阅读 README.md 和 dependencies.md

  • 我已经阅读过 README.md 和 dependencies.md 文件

检索 issue 和 discussion

  • 我已经确认之前没有 issue 或 discussion 涉及此 BUG

检查 Forge 版本

  • 我已经确认问题发生在最新代码或稳定版本中

Forge Commit 或者 Tag

f7312c1

Python 版本

3.10

PyTorch 版本

2.3.1

操作系统信息

Windows

浏览器信息

Edge

BUG 描述

当前提交 Commit 无法用说话人种子生成语音。

复现步骤

WebUI 使用说话人种子进行语音生成。

期望结果

能生。

实际结果

不能。

错误信息

Traceback (most recent call last):
  File "D:\WTEST\ChatTTS-Forge-2\environment\lib\site-packages\gradio\queueing.py", line 536, in process_events
    response = await route_utils.call_process_api(
  File "D:\WTEST\ChatTTS-Forge-2\environment\lib\site-packages\gradio\route_utils.py", line 276, in call_process_api
    output = await app.get_blocks().process_api(
  File "D:\WTEST\ChatTTS-Forge-2\environment\lib\site-packages\gradio\blocks.py", line 1897, in process_api
    result = await self.call_function(
  File "D:\WTEST\ChatTTS-Forge-2\environment\lib\site-packages\gradio\blocks.py", line 1483, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "D:\WTEST\ChatTTS-Forge-2\environment\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
  File "D:\WTEST\ChatTTS-Forge-2\environment\lib\site-packages\anyio\_backends\_asyncio.py", line 2177, in run_sync_in_worker_thread
    return await future
  File "D:\WTEST\ChatTTS-Forge-2\environment\lib\site-packages\anyio\_backends\_asyncio.py", line 859, in run
    result = context.run(func, *args)
  File "D:\WTEST\ChatTTS-Forge-2\environment\lib\site-packages\gradio\utils.py", line 816, in wrapper
    response = f(*args, **kwargs)
  File "D:\WTEST\ChatTTS-Forge-2\environment\lib\site-packages\gradio\utils.py", line 816, in wrapper
    response = f(*args, **kwargs)
  File "D:\WTEST\ChatTTS-Forge-2\ChatTTS-Forge\modules\webui\webui_utils.py", line 225, in tts_generate
    spk = TTSSpeaker.from_seed(spk)
AttributeError: type object 'TTSSpeaker' has no attribute 'from_seed'
@OrvilleQ OrvilleQ added the bug Something isn't working label Jul 14, 2024
@OrvilleQ OrvilleQ changed the title [BUG:WebUI] [BUG:WebUI] 无法使用说话人种子生成语音 Jul 14, 2024
zhzLuke96 added a commit that referenced this issue Jul 15, 2024
@zhzLuke96
Copy link
Member

感谢反馈

fixed 5c6b098

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

2 participants