CapsWriter-Offline
CapsWriter-Offline copied to clipboard
想要在开始录音/结束录音的时候播放音效作为提示
尝试自己添加 playsound 库来播放音频,但是目前没能成功。
我现在是用 pip install playsound --target="[工具路径]\internal" 来安装依赖包,然后在 client_shortcut_handler 里去调用 playsound(xxx.wav) 来播放声音。
但是实际操作中发现,如果塞了我的代码,进程会直接卡住不运行了。
想请教一下是什么原因,是不是我需要用什么异步的方式去调用函数?