vad

package
v0.0.0-...-b3bab2c Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package vad implements voice activated detection. This is achieved through reading the data with a buffer of 0.2 seconds. That means you cannot Read greater than 0.2 seconds worth of samples. If you need to be able to read more, then use a RealtimeStream on top of the VAD stream.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilter

func NewFilter(threshold float64) audio.Filter

NewFilter creates a new VAD filter with a threshold between 0 and 1.

Types

type Filter

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

Filter represents a VAD filter.

func (*Filter) Filter

func (f *Filter) Filter(stream audio.Stream) audio.Stream

Filter implements the Filter method for filters.

Jump to

Keyboard shortcuts

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