-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Silence detection #112
base: main
Are you sure you want to change the base?
Silence detection #112
Conversation
@ArturWyszomirski thank you so much for this! We do need the iOS implementation for this to be able to merge. Lets see if someone is willing to help out or I'll see if I can have a look myself :) |
I might have some time later this month if nobody else picks it up by then I think I will 👍 |
@FreakyAli that would be amazing, feel free to do so! |
Sorry for that... I just wanted to rename branch. Didn't know it will work that way:/ |
No worries! I was already sad you were closing it haha! @FreakyAli would you still have time to look at this? Else I might see if I can take some time to make an attempt |
Quite the opposite:) I have just fixed the conflict with the latest commit and working on making a sample of silence detection. |
Silence detection implementation for Windows and Android.
A
DetectSilenceAsync
should be fired after starting recording audio. TheDetectSilenceAsync
task is completed when silence is detected. A silence is when the recorded audio level is less or equal tosilenceTreshold
multiplied by noise* forsilenceDuration
period of time.The
SoundDetected
property is set to false after each start of recording. When a sound greater thansilenceTreshold
multiplied by noise is detected theSoundDetected
is set to true.Most of the code is shared. The only platform specific part is the
GetAudioChunk
method which is responsible for providing a stream of audio data samples to theDetectSilence
method.* noise is the lowest detected audio level detected during recording but not lower than 0.01 (the values are normalized)