关于portaudio库加载失败(sounddevice.py初始化失败)导致的gui无法打开的解决方案/Gui open fail caused by portaudio(sounddevice.py)
Chinese:
表现:打开gui启动后卡在读取音频设备的流程/控制台无输出,在旧版(beta0717)上,还会表现为gui无响应
截图
懒人解决方案:下载下面的文件,解压后改名为libportaudio64bit.dll
然后,将下载的dll移动至你的整合包路径下的runtime\Lib\site-packages\_sounddevice_data\portaudio-binaries文件夹,并覆盖对应dll
自己动手丰衣足食版:
需要安装visual studio,另外,如果没有特殊提及,下述文件路径均为portaudio项目根目录下的路径
首先,下载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
Simple solution: download the following compressed file, rename it as libportaudio64bit.dll after extract it.
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:
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.