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

Closed
opened 2026-10-20 10:07:34 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @kcn3388 on GitHub (Mar 19, 2024).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1893

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.

Originally created by @kcn3388 on GitHub (Mar 19, 2024). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1893 Chinese: 表现:打开gui启动后卡在读取音频设备的流程/控制台无输出,在旧版(beta0717)上,还会表现为gui无响应 <details> <summary>截图</summary> ![44df24cbfbb3342f0d1ee7c5c4ed6503](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/25716090/ecde9d20-cf7c-45c3-8b1f-75620b06a4c8) ![3f7d5ebe56ff9dd421f73448a3e532a6](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/25716090/efe4709a-f19a-4a8c-b7aa-0c2ae4534706) ![4dbbc3f7cd7cf8a7e1b88462a3489578](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/25716090/59eb1d8d-7d7e-410e-94cd-7e75192c8387) </details> 懒人解决方案:下载下面的文件,解压后改名为`libportaudio64bit.dll` 然后,将下载的dll移动至你的整合包路径下的`runtime\Lib\site-packages\_sounddevice_data\portaudio-binaries`文件夹,并覆盖对应dll [portaudio_x64.zip](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/files/14644197/portaudio_x64.zip) 自己动手丰衣足食版: **需要安装visual studio,另外,如果没有特殊提及,下述文件路径均为portaudio项目根目录下的路径** 首先,下载portaudio的源代码与ASIOSDK,链接如下: [portaudio](https://github.com/PortAudio/portaudio) [ASIOSDK](https://www.steinberg.net/developers/) 将下载好的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. <details> <summary>Screencuts</summary> ![44df24cbfbb3342f0d1ee7c5c4ed6503](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/25716090/ecde9d20-cf7c-45c3-8b1f-75620b06a4c8) ![3f7d5ebe56ff9dd421f73448a3e532a6](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/25716090/efe4709a-f19a-4a8c-b7aa-0c2ae4534706) ![4dbbc3f7cd7cf8a7e1b88462a3489578](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/25716090/59eb1d8d-7d7e-410e-94cd-7e75192c8387) </details> Simple solution: download the following compressed file, rename it as `libportaudio64bit.dll` after extract it. [portaudio_x64.zip](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/files/14644197/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](https://github.com/PortAudio/portaudio) [ASIOSDK](https://www.steinberg.net/developers/) 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.
bsakaguchi 2026-10-20 10:07:34 +00:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@github-actions[bot] commented on GitHub (May 3, 2024):

This issue was closed because it has been inactive for 15 days since being marked as stale.

<!-- gh-comment-id:2092084201 --> @github-actions[bot] commented on GitHub (May 3, 2024): This issue was closed because it has been inactive for 15 days since being marked as stale.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion-WebUI#1270
No description provided.