uncloseai-speech/pre_process_map.default.yaml
russell@unturf.com d6cd1614ca
pre_process_map: stage Provenance + Providence fixes, commented for A/B
Both respellings present but disabled so you can hear before/after
without redeploying. Uncomment one or both lines on the live config
(preprocess() re-reads per request).
2026-06-05 19:21:39 -04:00

44 lines
811 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 mispronunciation A/B — uncomment to enable each fix.
# preprocess() re-reads this file per request, so toggles are live.
# Provenance — actual: "prov-uh-nuns"
#- - (?i)\bProvenance\b
# - Prov-uh-nuns
# Providence — actual: "prav-uh-dence" (per fox)
#- - (?i)\bProvidence\b
# - Prav-uh-dence
# xtts has a lot of trouble with these, but piper is fine.
#- - '[\*=+-]+'
# - ' '