Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InputDevice ¶
func GetInputDevices ¶
func GetInputDevices() ([]InputDevice, error)
type Microphone ¶
type Microphone interface {
beep.Streamer
Start(ctx context.Context) error
Close() error
Format() beep.Format
DeviceInfo() portaudio.DeviceInfo
SetSampleRate(rate beep.SampleRate)
}
func NewDefaultMicrophone ¶
func NewDefaultMicrophone() (Microphone, error)
func NewMicrophone ¶
func NewMicrophone(name string) (Microphone, error)
type SpectrumSample ¶
type Visualizer ¶
Allows us to visualize audio power specra in bins.
func NewVisualizer ¶
func NewVisualizer(lowerBound, upperBound float64, bins int) Visualizer
Click to show internal directories.
Click to hide internal directories.
