stt

package
v0.0.0-...-a2dff6b Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssemblyAISTT

type AssemblyAISTT struct {
	OnTranscript func(string)
	// contains filtered or unexported fields
}

func NewAssemblyAISTT

func NewAssemblyAISTT(onTranscript ...func(string)) (*AssemblyAISTT, error)

func (*AssemblyAISTT) IsSpeechDetected

func (a *AssemblyAISTT) IsSpeechDetected() bool

func (*AssemblyAISTT) SendAudio

func (a *AssemblyAISTT) SendAudio(ctx context.Context, audio []byte) error

func (*AssemblyAISTT) StartListening

func (a *AssemblyAISTT) StartListening(ctx context.Context) error

func (*AssemblyAISTT) StopListening

func (a *AssemblyAISTT) StopListening(ctx context.Context) error

type STT

type STT interface {
	StartListening(ctx context.Context) error
	StopListening(ctx context.Context) error
	SendAudio(ctx context.Context, audio []byte) error
	IsSpeechDetected() bool
}

func NewProvider

func NewProvider() (STT, error)

Jump to

Keyboard shortcuts

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