dtmf

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Keypad = []rune{
		'1', '2', '3', 'A',
		'4', '5', '6', 'B',
		'7', '8', '9', 'C',
		'*', '0', '#', 'D',
	}
	StdLowFreq  = []uint64{697, 770, 852, 941}
	StdHighFreq = []uint64{1209, 1336, 1477, 1633}
)

Functions

This section is empty.

Types

type DTMF

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

func New

func New(lowFreq, highFreq []uint64, sampleRate, blockSize int, windowFunc func([]float32)) *DTMF

func NewStandard

func NewStandard(sampleRate, blockSize int) *DTMF

func (*DTMF) Feed

func (d *DTMF) Feed(samples []float32) (int, float32)

Return key number (lowFreqIndex * numHighFreq + highFreqIndex) and minimum magnitude

Jump to

Keyboard shortcuts

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