asr

package
v0.9.55 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	Transcribe(ctx context.Context, req api.OpenAIAudioTranscriptionRequest) (*api.OpenAIAudioTranscriptionResponse, error)
	TranscribeStream(ctx context.Context, req api.OpenAIAudioTranscriptionRequest, onChunk func(api.OpenAIAudioTranscriptionResponse) error) error
	Close() error
	ModelName() string
}

Engine is the interface for local automatic speech recognition backends.

type PythonEngine

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

func NewPythonEngine

func NewPythonEngine(ctx context.Context, modelName, modelDir string, runtimeManager *imagegen.RuntimeManager) (*PythonEngine, error)

func (*PythonEngine) Close

func (e *PythonEngine) Close() error

func (*PythonEngine) ModelName

func (e *PythonEngine) ModelName() string

func (*PythonEngine) TranscribeStream

Jump to

Keyboard shortcuts

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