Help us shape the future of Go! Take the 2026 Go Developer Survey

console

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 (a *AudioIO) OutputPaused() bool

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 (a *AudioIO) SetDevices(inputDevice, outputDevice string)

func (*AudioIO) SetInputAttached added in v0.0.15

func (a *AudioIO) SetInputAttached(attached bool)

func (*AudioIO) SetOutputPaused added in v0.0.15

func (a *AudioIO) SetOutputPaused(paused bool)

func (*AudioIO) Start

func (a *AudioIO) Start(ctx context.Context) error

func (*AudioIO) Stop

func (a *AudioIO) Stop() error

func (*AudioIO) Write

func (a *AudioIO) Write(frame *model.AudioFrame) error

Write for pipe integration

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) Update

func (m *ConsoleModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ConsoleModel) View

func (m *ConsoleModel) View() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL