speech

package
v0.0.0-...-d48bf00 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSpeechModel

func NewSpeechModel(promptConfig *service.PromptConfig) tea.Model

func SpeechToText

func SpeechToText(ctx context.Context, aiContext context.Context, config *SpeechConfig) (string, error)

func StartRecording

func StartRecording() tea.Msg

func StopRecording

func StopRecording() tea.Msg

Types

type SpeechConfig

type SpeechConfig struct {
	Duration time.Duration
	Lang     string
}

Jump to

Keyboard shortcuts

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