stt

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package stt turns voice notes into text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToWav

func ToWav(ctx context.Context, ffmpeg, in, out string) error

ToWav converts any audio ffmpeg understands to 16 kHz mono WAV.

Types

type Transcriber

type Transcriber interface {
	// Transcribe reads an audio file (Telegram voice notes are OGG/Opus).
	Transcribe(ctx context.Context, path string) (string, error)
}

func New

New returns nil when transcription is disabled.

Jump to

Keyboard shortcuts

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