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

如何在启动录音后的录音过程中有效监测用户语音结束? #241

Open
DemacL opened this issue Aug 29, 2024 · 2 comments
Open

Comments

@DemacL
Copy link

DemacL commented Aug 29, 2024

  1. 已经开始录音。
  2. 根据监测用户说话停顿时间某一段连续时间音量低于音量阈值。如果达成这个条件则自动终止录音

请问这种方案可以吗?还是库里面有内置方法可以做到这个功能了? 谢谢

@xiangyuecn
Copy link
Owner

简单实现是可以通过onProcess里面的音量来判断,持续几秒音量很低就判定为停止说话了,不过准确度一般

库里面没有提供代码,得自己实现一下,高级点的可以找找相关的关键词 VAD 静音检测

@DemacL
Copy link
Author

DemacL commented Aug 29, 2024

好的 谢谢了 明白了

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