recognizer

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: MIT Imports: 13 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 NewGPT4oMiniRecognizer added in v1.3.0

func NewGPT4oMiniRecognizer(apiKey, callsign string) Recognizer

NewGPT4oMiniRecognizer creates a new recognizer using OpenAI Platform's GPT-4o Mini model.

func NewGPT4oRecognizer added in v1.3.0

func NewGPT4oRecognizer(apiKey, callsign string) Recognizer

NewGPT4oRecognizer creates a new recognizer using OpenAI Platform's GPT-4o model.

func NewOpenAIRecognizer deprecated added in v1.1.0

func NewOpenAIRecognizer(apiKey, callsign string) Recognizer

NewOpenAIRecognizer creates a new recognizer using OpenAI Platform.

Deprecated: Use NewWhisperAPIRecognizer, NewGPT4oRecognizer, or NewGPT4oMiniRecognizer instead.

func NewWhisperAPIRecognizer added in v1.3.0

func NewWhisperAPIRecognizer(apiKey, callsign string) Recognizer

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