streamer45 / silero-vad-go

A Golang (CGO) implementation of a Silero VAD powered speech detector
MIT License
23 stars 10 forks source link

Auto converting sample rate and channel of an audio file #14

Open fear-the-reaper opened 2 months ago

fear-the-reaper commented 2 months ago

Hey @streamer45 I was thinking if I could try out making a helper function in the Detector struct to auto convert the wav into correct sample rate and channel?

streamer45 commented 2 months ago

Personally, I see this sort of functionality as more helpful at a higher level (i.e. what's calling this library). I wouldn't necessarily want to couple audio processing (e.g., resampling) with the detecting logic.