2 #ifndef GRAMODS_SOUND_SOUNDBURSTDETECTOR
3 #define GRAMODS_SOUND_SOUNDBURSTDETECTOR
5 #include <gmSound/SoundDetector.hh>
44 std::vector<std::vector<float>>
detectSound()
override;
50 std::unique_ptr<Impl> _impl;
Sound detector search for samples over a specified threshold.
Definition: SoundBurstDetector.hh:13
void setCooldown(float t)
Sets the cooldown time for a detection, i.e.
Definition: SoundBurstDetector.cpp:34
std::vector< std::vector< float > > detectSound() override
Reads off new samples from the capture device, if such are available, then detect sound based over th...
Definition: SoundBurstDetector.cpp:41
void setThreshold(float r)
Sets the threshold used for detecting a sound event in the range 0-1.
Definition: SoundBurstDetector.cpp:27
The interface for an algorithm detecting sound in an audio stream.
Definition: SoundDetector.hh:17
Gramods, short for Graphics Modules, is a collection of weakly inter dependent and useful APIs for Vi...
Definition: config.hh:25
Definition: SoundBurstDetector.cpp:14