Skip to main content
. 2022 Feb 22;22(5):1714. doi: 10.3390/s22051714
Algorithm 1 Voice Activity Detection (VAD)
  • input audio file

  • rms frame energy(input)

  • threshold0.05×max(rms)

  • fori in range(len(rms)) do

  •    if rms[i]threshold then

  •      frame i stored in speech

  •    else

  •      frame i stored in nonspeech

  •    end if

  • end forreturnspeech,nonspeech