recognizer

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

package recognizer recognizes text from speech

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recognizer

type Recognizer interface {
	// Recognize takes PCMF32LE audio data and returns any recognized text.
	Recognize(ctx context.Context, pcm []float32, enableTranscriptionLogging bool) (string, error)
}

Recognizer recognizes text from speech.

func NewWhisperRecognizer

func NewWhisperRecognizer(model *whisper.Model, callsign string) Recognizer

NewWhisperRecognizer creates a new recognizer using OpenAI Whisper.

Jump to

Keyboard shortcuts

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