tts

package
v0.2.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 tts turns replies into voice notes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Speakable

func Speakable(md string) string

Speakable strips Markdown and code so the voice reads prose only.

Types

type Speaker

type Speaker interface {
	// Speak returns OGG/Opus audio, the format Telegram voice notes use.
	Speak(ctx context.Context, text string) ([]byte, error)
}

func New

func New(c config.TTS) (Speaker, error)

New returns nil when TTS is disabled.

Jump to

Keyboard shortcuts

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