audio

package
v0.0.0-...-c15ca31 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WavStream

type WavStream struct {
	SampleRate int
	Wav        *dspwav.Wav

	WordSampleC chan []float64
	// contains filtered or unexported fields
}

WavStream is a wav stream

func NewWavFileReader

func NewWavFileReader(filename string) (*WavStream, error)

NewWavFileReader opens a wavStream from a wav file

func (*WavStream) Close

func (ws *WavStream) Close()

Close closes the stream

func (*WavStream) WordSamples

func (ws *WavStream) WordSamples(avgAmplitudeThreshold float64) ([][]float64, error)

WordSamples returns samples of a word, call multiple time to get next word

Jump to

Keyboard shortcuts

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