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.
Click to show internal directories.
Click to hide internal directories.