recognizer

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 12 Imported by: 2

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 NewOpenAIRecognizer added in v1.1.0

func NewOpenAIRecognizer(apiKey, callsign string) Recognizer

NewOpenAIRecognizer creates a new recognizer using OpenAI Platform.

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