Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想要在开始录音/结束录音的时候播放音效作为提示 #147

Open
Moyf opened this issue Jul 20, 2024 · 0 comments
Open

想要在开始录音/结束录音的时候播放音效作为提示 #147

Moyf opened this issue Jul 20, 2024 · 0 comments

Comments

@Moyf
Copy link

Moyf commented Jul 20, 2024

尝试自己添加 playsound 库来播放音频,但是目前没能成功。

我现在是用 pip install playsound --target="[工具路径]\internal" 来安装依赖包,然后在 client_shortcut_handler 里去调用 playsound(xxx.wav) 来播放声音。
但是实际操作中发现,如果塞了我的代码,进程会直接卡住不运行了。

image

想请教一下是什么原因,是不是我需要用什么异步的方式去调用函数?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant