18 lines
344 B
Go
18 lines
344 B
Go
package mic
|
|||
|
|
|
||
|
|
import (
|
||
|
|
"errors"
|
||
|
|
)
|
||
|
|
|
||
|
|
var (
|
||
|
|
ErrDeviceNotFound = errors.New("microphone not found")
|
||
|
|
ErrAlreadyRecording = errors.New("already recording")
|
||
|
|
ErrNotRecording = errors.New("not recording")
|
||
|
|
ErrNoAudio = errors.New("no audio available")
|
||
|
|
)
|
||
|
|
|
||
|
|
type Device struct {
|
||
|
|
Index int `json:"index"`
|
||
|
|
Name string `json:"name"`
|
||
|
|
}
|