voice

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAvailable

func IsAvailable() bool

IsAvailable checks if voice mode is available.

func Keyterms

func Keyterms() []string

Keyterms returns common voice command keyterms.

Types

type STTConfig

type STTConfig struct {
	Engine string `json:"engine"`
	Model  string `json:"model"`
	Lang   string `json:"lang"`
}

STTConfig holds speech-to-text configuration.

type Transcriber

type Transcriber struct {
	// contains filtered or unexported fields
}

Transcriber handles speech-to-text transcription.

func NewTranscriber

func NewTranscriber(config STTConfig) *Transcriber

NewTranscriber creates a new transcriber.

func (*Transcriber) Transcribe

func (t *Transcriber) Transcribe(audioData []byte) (string, error)

Transcribe transcribes audio data to text.

Jump to

Keyboard shortcuts

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