features-voice-formatter

command
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: BSD-2-Clause Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command features-voice-formatter shows the VoiceFormatter bundle, which applies a chain of built-in text transforms before TTS synthesis so that currency amounts, phone numbers, dates, acronyms and other special text are spoken naturally.

Without voice formatting a TTS service might read:

"$42.50" as "dollar sign four two point five zero"
"API"    as a single word rather than "A P I"
"3/15"   as "three slash fifteen"

With the VoiceFormatter these are rewritten before the audio is synthesized:

"$42.50"  →  "forty-two dollars and fifty cents"
"API"     →  "A P I"
"3/15/25" →  "March 15th, two thousand and twenty-five"

CARTESIA_API_KEY=… ELEVENLABS_API_KEY=… ELEVENLABS_VOICE_ID=… \
OPENAI_API_KEY=… go run ./examples/features/features-voice-formatter

Then open http://localhost:7860 and connect.

Jump to

Keyboard shortcuts

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