RVC-Project / RVC-Project/Retrieval-based-Voice-Conversion-WebUI

[解决方案] 关于运行go-realtime-gui.bat时无报错且返回Pause

Open
#2,641 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
38.4k
Forks
5.3k
PR merge metrics
No merged PRs in 30d

Description

  如果你在运行go-realtime-gui.bat时也遇到了无报错且返回Pause的情况,可以参考以下原因和解决方法。

  
  问题
  此错误是由于 sounddevice 库在尝试读取系统上所有音频设备(麦克风、扬声器、虚拟音频线等)的名称时发生的。
  如果其中某个设备的名称包含了非标准的 UTF-8 字符(例如特殊符号或乱码),Python 的解码函数就会失败,从而导致整个程序崩溃。

  解决方案
  最直接的解决方法是打开windows11的“Beta版:使用Unicode UTF-8提供全球语言支持”,但这样做会让一部分其他程序的GBK内容显示乱码
  所以我们可以修改 sounddevice.py 文件,使其能够跳过编码错误。

  找到 sounddevice.py 文件:
  该文件位于你环境的 runtime\lib\site-packages 文件夹中。

  定位代码行:
  用编辑器跳转到约 578 行(不同版本行号可能略有偏差),你会看到这行代码:

  name = name_bytes.decode('utf-8')

  修改代码:
  将这行代码修改为

    name=name_bytes.decode('utf-8', errors='ignore')

  保存并重启:
  保存文件修改,然后重新运行go-realtime-gui.bat,rvc的实时变声界面应该就正常出现了。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running go-realtime-gui.bat and checking whether it returns to Pause without an error. Inspect runtime\lib\site-packages\sounddevice.py around the mentioned decode call, then rerun the interface and confirm that the real-time voice-conversion window appears without changing the Windows UTF-8 system setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
audio-video-rtc
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.