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

How to get mic/system audio volume levels (show 1 bar/2 bar/3 bar) ? #908

Open
bliongosari1 opened this issue Sep 1, 2024 · 1 comment

Comments

@bliongosari1
Copy link

When recording/before recording, is there a way to get the volume of the mic so users know that audio is being picked up. Any examples of this would be great

@dheijl
Copy link
Contributor

dheijl commented Sep 1, 2024

You could compute the rms value of the samples you are capturing and visualize that.
I do something similar in swyh-rs.

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