utils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanText

func CleanText(s string, opts *Options) string

func HasSpeakableContent added in v1.2.0

func HasSpeakableContent(s string) bool

HasSpeakableContent reports whether text contains letters, digits, or CJK characters.

func SanitizeForSpeech added in v1.2.0

func SanitizeForSpeech(s string) string

SanitizeForSpeech prepares LLM or ASR text for cloud TTS (strip markdown/emoji, etc.).

Types

type Options

type Options struct {
	Lowercase            bool
	StripMarkdown        bool
	StripSymbols         bool
	DedupLines           bool
	DropBoilerplateLines bool
}

Jump to

Keyboard shortcuts

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