Retrieval-based-Voice-Conversion-WebUI icon indicating copy to clipboard operation
Retrieval-based-Voice-Conversion-WebUI copied to clipboard

关于portaudio库加载失败(sounddevice.py初始化失败)导致的gui无法打开的解决方案/Gui open fail caused by portaudio(sounddevice.py)

Open kcn3388 opened this issue 1 year ago • 0 comments

Chinese:

表现:打开gui启动后卡在读取音频设备的流程/控制台无输出,在旧版(beta0717)上,还会表现为gui无响应

截图

44df24cbfbb3342f0d1ee7c5c4ed6503

3f7d5ebe56ff9dd421f73448a3e532a6

4dbbc3f7cd7cf8a7e1b88462a3489578

懒人解决方案:下载下面的文件,解压后改名为libportaudio64bit.dll 然后,将下载的dll移动至你的整合包路径下的runtime\Lib\site-packages\_sounddevice_data\portaudio-binaries文件夹,并覆盖对应dll

portaudio_x64.zip

自己动手丰衣足食版:

需要安装visual studio,另外,如果没有特殊提及,下述文件路径均为portaudio项目根目录下的路径

首先,下载portaudio的源代码与ASIOSDK,链接如下:

portaudio

ASIOSDK

将下载好的ASIOSDK全部文件放置于portaudio项目下的src\hostapi\asio\ASIOSDK文件夹内 之后进入msvc文件夹,双击sln打开解决方案,配置修改为Release x64,然后重新生成项目 生成项目以后,进入msvc\x64\Release,找到portaudio_x64.dll,按上述懒人解决方案所述替换即可


English:

Appearance: After starting the GUI, the console keeps loading audio devices, but the console does not output anything.

Screencuts

44df24cbfbb3342f0d1ee7c5c4ed6503

3f7d5ebe56ff9dd421f73448a3e532a6

4dbbc3f7cd7cf8a7e1b88462a3489578

Simple solution: download the following compressed file, rename it as libportaudio64bit.dll after extract it.

portaudio_x64.zip

Then, move it to this folder under your project: runtime\Lib\site-packages\_sounddevice_data\portaudio-binaries, and overwrite the exact file.

Detail solution:

Important: Visual Studio required. All the paths mentioned below are based on the root path of the portaudio project.

First, download the source code of portaudio and SDK file from ASIOSDK:

portaudio

ASIOSDK

Second, place all of the files of ASIOSDK to this folder: src\hostapi\asio\ASIOSDK Third, open the sln file in msvc folder, switch the config to Release x64, then build it. After finish it, move portaudio_x64.dll file in msvc\x64\Release just like what is mentioned above in Simple solution part.

kcn3388 avatar Mar 19 '24 02:03 kcn3388