uncloseai-speech/config/pre_process_map.yaml
russell@unturf.com 221756e501
pre_process_map: track config file in repo; fix Providence pronunciation
F5-TTS mispronounces "Providence" — add hyphenation regex
(Prov-uh-dence). Promote config/pre_process_map.yaml from
gitignored generated file to tracked repo file so the regex
map ships via git pull instead of needing per-host manual edits.
.default.yaml retained as seed for fresh installs.
2026-06-05 18:03:39 -04:00

39 lines
619 B
YAML

# regex pairs to clean the text before speaking
- - ([^.])\.$
- \1
- - '&'
- '&'
- - '<'
- <
- - '&gt;'
- '>'
- - '&quot;'
- '"'
- - '&#x27;'
- ''''
- - '&copy;'
- '©'
- - '&reg;'
- '®'
- - '&nbsp;'
- ' '
- - '"'
- ''
- - ' biases '
- ' bias''s '
- - ex\.
- for example
- - e\.g\.
- for example
- - ' ESG '
- ' E.S.G. '
- - ' FY '
- ' F.Y. '
- - ([0-9]+)-([0-9]+)
- \1 to \2
# F5-TTS mispronounces "Providence" (RI city) — hyphenate to hint syllables
- - (?i)\bProvidence\b
- Prov-uh-dence
# xtts has a lot of trouble with these, but piper is fine.
#- - '[\*=+-]+'
# - ' '