silero

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 Plugin added in v0.0.15

type Plugin struct{}

func (Plugin) DownloadFiles added in v0.0.15

func (Plugin) DownloadFiles() error

type SileroVAD

type SileroVAD struct {
	// contains filtered or unexported fields
}

func NewSileroVAD

func NewSileroVAD(opts ...VADOption) *SileroVAD

func NewSileroVADWithOptions added in v0.0.15

func NewSileroVADWithOptions(opts ...VADOption) (*SileroVAD, error)

func (*SileroVAD) Capabilities added in v0.0.15

func (v *SileroVAD) Capabilities() vad.VADCapabilities

func (*SileroVAD) Label added in v0.0.15

func (v *SileroVAD) Label() string

func (*SileroVAD) Model added in v0.0.15

func (v *SileroVAD) Model() string

func (*SileroVAD) OnMetricsCollected added in v0.0.15

func (v *SileroVAD) OnMetricsCollected(handler vad.VADMetricsHandler) func()

func (*SileroVAD) Provider added in v0.0.15

func (v *SileroVAD) Provider() string

func (*SileroVAD) Stream

func (v *SileroVAD) Stream(ctx context.Context) (vad.VADStream, error)

func (*SileroVAD) UpdateOptions added in v0.0.15

func (v *SileroVAD) UpdateOptions(options VADOptions)

func (*SileroVAD) UpdateOptionsWith added in v0.0.15

func (v *SileroVAD) UpdateOptionsWith(opts ...VADOption)

type VADOption

type VADOption func(*VADOptions)

func WithActivationThreshold

func WithActivationThreshold(t float64) VADOption

func WithDeactivationThreshold added in v0.0.15

func WithDeactivationThreshold(t float64) VADOption

func WithMaxBufferedSpeech added in v0.0.15

func WithMaxBufferedSpeech(d float64) VADOption

func WithMinSilenceDuration

func WithMinSilenceDuration(d float64) VADOption

func WithMinSpeechDuration

func WithMinSpeechDuration(d float64) VADOption

func WithPaddingDuration added in v0.0.15

func WithPaddingDuration(d float64) VADOption

func WithPrefixPaddingDuration added in v0.0.15

func WithPrefixPaddingDuration(d float64) VADOption

func WithSampleRate

func WithSampleRate(r int) VADOption

func WithUpdateInterval added in v0.0.15

func WithUpdateInterval(d float64) VADOption

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL