audio

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeOggOpus

func DecodeOggOpus(r io.Reader, onFrame func([]byte) error) error

DecodeOggOpus reads an Ogg format stream and extracts individual Opus payloads. It calls onFrame for every complete Opus frame found in the stream.

func SplitSentences

func SplitSentences(text string) []string

SplitSentences splits text into sentence-sized chunks suitable for TTS synthesis. It splits on sentence-ending punctuation (.!?\n, as well as CJK 。, !, ?) while avoiding false splits on decimal numbers. Very short fragments are merged with the next sentence to prevent choppy playback.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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