Documentation
¶
Overview ¶
Implementation of a microphone using portaudio
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize()
Initialize inits the library. This handles OS level init of the library.
Types ¶
type AudioConfig ¶
AudioConfig init config for library
type Microphone ¶
type Microphone struct {
// contains filtered or unexported fields
}
Microphone...
func New ¶
func New(cfg AudioConfig) (*Microphone, error)
New creates a new microphone using portaudio
func (*Microphone) Read ¶
func (m *Microphone) Read() ([]int16, error)
Read gets the raw bits generated by the mic
func (*Microphone) Start ¶
func (m *Microphone) Start() error
Start begins the listening on the microphone
Directories
¶
Path | Synopsis |
---|---|
Microphone defines a interface for a Microphone implementation
|
Microphone defines a interface for a Microphone implementation |
Click to show internal directories.
Click to hide internal directories.