Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func NewMonitor ¶
func NewMonitor(cfg MonitorConfig, cb VoiceCB) (*Monitor, error)
func (*Monitor) PushAudioLevel ¶
type MonitorConfig ¶
type MonitorConfig struct { VoiceLevelsSampleSize int ActivationDuration time.Duration VoiceActivationThreshold int VoiceDeactivationThreshold int }
func (MonitorConfig) IsValid ¶
func (c MonitorConfig) IsValid() error
func (MonitorConfig) SetDefaults ¶
func (c MonitorConfig) SetDefaults() MonitorConfig
Click to show internal directories.
Click to hide internal directories.