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.
This commit is contained in:
russell@unturf.com 2026-06-05 18:03:31 -04:00
parent 468cd1dfc0
commit 221756e501
No known key found for this signature in database
3 changed files with 42 additions and 1 deletions

1
.gitignore vendored
View file

@ -2,7 +2,6 @@ voices/
.env .env
speech.env speech.env
vars.sh vars.sh
config/pre_process_map.yaml
config/voice_to_speaker.yaml config/voice_to_speaker.yaml
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files

View file

@ -0,0 +1,39 @@
# 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.
#- - '[\*=+-]+'
# - ' '

View file

@ -31,6 +31,9 @@
- ' F.Y. ' - ' F.Y. '
- - ([0-9]+)-([0-9]+) - - ([0-9]+)-([0-9]+)
- \1 to \2 - \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. # xtts has a lot of trouble with these, but piper is fine.
#- - '[\*=+-]+' #- - '[\*=+-]+'
# - ' ' # - ' '