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.