-
Notifications
You must be signed in to change notification settings - Fork 30
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
Voice Activation #25
Labels
enhancement
New feature or request
Comments
Hi, thank you for sharing! :) I'll see if it can be integrated into the plugin, maybe as a separate function 👍 |
gtreshchev
added
bug
Something isn't working
enhancement
New feature or request
and removed
bug
Something isn't working
labels
Apr 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
I saw you had voice activation planned for this tool. I ended up implementing a basic solution on my end and wanted to share it with you.
In my use case, I really needed an open mic where the player spoke when they wanted. So I implemented voice detection through changes in the intensity of the audio (not perfect but it kinda works). I leave the code below if you want to try it out.
In essence, I pick up the data points from the CapturableSoundWave and create an average over time. If for a given time frame, the values deviate enough from the average, then I activate the voice recording. The recording stops after a second if the data points return to the average (the player stopped speaking).
Header
Code
The text was updated successfully, but these errors were encountered: