Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrVADUnsupported = errors.New("VAD unsupported")
)
Functions ¶
This section is empty.
Types ¶
type EnhancedVAD ¶ added in v0.0.5
type EnhancedVAD struct {
Options EnhancedVADOptions
}
func NewEnhancedVAD ¶ added in v0.0.5
func NewEnhancedVAD(opts EnhancedVADOptions) *EnhancedVAD
type EnhancedVADOptions ¶ added in v0.0.5
type SimpleVAD ¶
type SimpleVAD struct {
Threshold float64
// contains filtered or unexported fields
}
func NewSimpleVAD ¶
func NewSimpleVAD(threshold float64, opts ...SimpleVADOption) *SimpleVAD
type SimpleVADOption ¶ added in v0.0.9
type SimpleVADOption func(*SimpleVAD)
func WithMinSilenceDuration ¶ added in v0.0.9
func WithMinSilenceDuration(d float64) SimpleVADOption
func WithMinSpeechDuration ¶ added in v0.0.9
func WithMinSpeechDuration(d float64) SimpleVADOption
type VADEventType ¶
type VADEventType string
const ( VADEventStartOfSpeech VADEventType = "start_of_speech" VADEventInferenceDone VADEventType = "inference_done" VADEventEndOfSpeech VADEventType = "end_of_speech" )
Click to show internal directories.
Click to hide internal directories.