remote voice receiving and talking
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
//go:build !cgo
|
||||
|
||||
package audio
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
)
|
||||
|
||||
type Session struct{}
|
||||
|
||||
func ProbeCapabilities() Capabilities {
|
||||
return Capabilities{
|
||||
Available: false,
|
||||
RequiresCGO: true,
|
||||
Sources: []string{"default"},
|
||||
DefaultSource: "default",
|
||||
Detail: "native voice support requires a CGO-enabled build",
|
||||
}
|
||||
}
|
||||
|
||||
func StartVoiceSession(_ context.Context, _ string, _ func([]byte)) (*Session, error) {
|
||||
return nil, errors.New("native voice support requires a CGO-enabled build")
|
||||
}
|
||||
|
||||
func (s *Session) WritePlayback(_ []byte) error {
|
||||
return errors.New("voice session is unavailable")
|
||||
}
|
||||
|
||||
func (s *Session) Close() error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user