Documentation
¶
Index ¶
- Constants
- type Plugin
- type SileroVAD
- func (v *SileroVAD) Capabilities() vad.VADCapabilities
- func (v *SileroVAD) Label() string
- func (v *SileroVAD) Model() string
- func (v *SileroVAD) OnMetricsCollected(handler vad.VADMetricsHandler) func()
- func (v *SileroVAD) Provider() string
- func (v *SileroVAD) Stream(ctx context.Context) (vad.VADStream, error)
- func (v *SileroVAD) UpdateOptions(options VADOptions)
- func (v *SileroVAD) UpdateOptionsWith(opts ...VADOption)
- type VADOption
- func WithActivationThreshold(t float64) VADOption
- func WithDeactivationThreshold(t float64) VADOption
- func WithMaxBufferedSpeech(d float64) VADOption
- func WithMinSilenceDuration(d float64) VADOption
- func WithMinSpeechDuration(d float64) VADOption
- func WithPaddingDuration(d float64) VADOption
- func WithPrefixPaddingDuration(d float64) VADOption
- func WithSampleRate(r int) VADOption
- func WithUpdateInterval(d float64) VADOption
- type VADOptions
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.silero" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.silero" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SileroVAD ¶
type SileroVAD struct {
// contains filtered or unexported fields
}
func NewSileroVAD ¶
func NewSileroVADWithOptions ¶ added in v0.0.15
func (*SileroVAD) Capabilities ¶ added in v0.0.15
func (v *SileroVAD) Capabilities() vad.VADCapabilities
func (*SileroVAD) OnMetricsCollected ¶ added in v0.0.15
func (v *SileroVAD) OnMetricsCollected(handler vad.VADMetricsHandler) func()
func (*SileroVAD) UpdateOptions ¶ added in v0.0.15
func (v *SileroVAD) UpdateOptions(options VADOptions)
func (*SileroVAD) UpdateOptionsWith ¶ added in v0.0.15
type VADOption ¶
type VADOption func(*VADOptions)
func WithActivationThreshold ¶
func WithDeactivationThreshold ¶ added in v0.0.15
func WithMaxBufferedSpeech ¶ added in v0.0.15
func WithMinSilenceDuration ¶
func WithMinSpeechDuration ¶
func WithPaddingDuration ¶ added in v0.0.15
func WithPrefixPaddingDuration ¶ added in v0.0.15
func WithSampleRate ¶
func WithUpdateInterval ¶ added in v0.0.15
type VADOptions ¶
type VADOptions struct {
MinSpeechDuration float64
MinSilenceDuration float64
PrefixPaddingDuration float64
MaxBufferedSpeech float64
ActivationThreshold float64
DeactivationThreshold float64
UpdateInterval float64
SampleRate int
// contains filtered or unexported fields
}
func DefaultVADOptions ¶
func DefaultVADOptions() VADOptions
Click to show internal directories.
Click to hide internal directories.