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

大佬,请问一下,本地的音频文件怎么写才能使用demo_avatar.py里的方式,应怎么修改代码,我不是通过麦克风获取的音频。 #59

Open
hjj-lmx opened this issue Oct 21, 2024 · 1 comment

Comments

@hjj-lmx
Copy link

hjj-lmx commented Oct 21, 2024

No description provided.

@tmige
Copy link

tmige commented Oct 23, 2024

简单,直接用播放器直接播放音频文件。再修demo_avatar.py文件,修改with sd.InputStream(
channels=1,device=9,dtype="float32", samplerate=sample_rate
) as s:
device指向声卡播放通道。我的电脑是9,你根据你的实际情况调整。

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

2 participants