Documentation
¶
Index ¶
- type AudioIO
- func (a *AudioIO) ClearOutputBuffer()
- func (a *AudioIO) MicFrames() <-chan *model.AudioFrame
- func (a *AudioIO) OutputPaused() bool
- func (a *AudioIO) PushFrame(frame *model.AudioFrame)
- func (a *AudioIO) PushMicFrame(frame *model.AudioFrame) bool
- func (a *AudioIO) SetDevices(inputDevice, outputDevice string)
- func (a *AudioIO) SetInputAttached(attached bool)
- func (a *AudioIO) SetOutputPaused(paused bool)
- func (a *AudioIO) Start(ctx context.Context) error
- func (a *AudioIO) Stop() error
- func (a *AudioIO) Write(frame *model.AudioFrame) error
- type ConsoleModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioIO ¶
type AudioIO struct {
// contains filtered or unexported fields
}
AudioIO manages bidirectional audio interfacing with the host OS's microphone and speakers.
func NewAudioIO ¶
func NewAudioIO() *AudioIO
func (*AudioIO) ClearOutputBuffer ¶ added in v0.0.15
func (a *AudioIO) ClearOutputBuffer()
func (*AudioIO) MicFrames ¶
func (a *AudioIO) MicFrames() <-chan *model.AudioFrame
func (*AudioIO) OutputPaused ¶ added in v0.0.15
func (*AudioIO) PushFrame ¶
func (a *AudioIO) PushFrame(frame *model.AudioFrame)
PushFrame takes audio from the Agent and queues it for the speakers
func (*AudioIO) PushMicFrame ¶ added in v0.0.15
func (a *AudioIO) PushMicFrame(frame *model.AudioFrame) bool
func (*AudioIO) SetDevices ¶ added in v0.0.15
func (*AudioIO) SetInputAttached ¶ added in v0.0.15
func (*AudioIO) SetOutputPaused ¶ added in v0.0.15
type ConsoleModel ¶
type ConsoleModel struct {
// contains filtered or unexported fields
}
ConsoleModel drives the interactive terminal UI
func NewConsoleModel ¶
func NewConsoleModel(ctx context.Context, audioIO *AudioIO) *ConsoleModel
func (*ConsoleModel) Init ¶
func (m *ConsoleModel) Init() tea.Cmd
func (*ConsoleModel) View ¶
func (m *ConsoleModel) View() string
Click to show internal directories.
Click to hide internal directories.