Audio
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user