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:
parent
468cd1dfc0
commit
221756e501
3 changed files with 42 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,7 +2,6 @@ voices/
|
|||
.env
|
||||
speech.env
|
||||
vars.sh
|
||||
config/pre_process_map.yaml
|
||||
config/voice_to_speaker.yaml
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
|
|
|
|||
39
config/pre_process_map.yaml
Normal file
39
config/pre_process_map.yaml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# regex pairs to clean the text before speaking
|
||||
- - ([^.])\.$
|
||||
- \1
|
||||
- - '&'
|
||||
- '&'
|
||||
- - '<'
|
||||
- <
|
||||
- - '>'
|
||||
- '>'
|
||||
- - '"'
|
||||
- '"'
|
||||
- - '''
|
||||
- ''''
|
||||
- - '©'
|
||||
- '©'
|
||||
- - '®'
|
||||
- '®'
|
||||
- - ' '
|
||||
- ' '
|
||||
- - '"'
|
||||
- ''
|
||||
- - ' 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.
|
||||
#- - '[\*=+-]+'
|
||||
# - ' '
|
||||
|
|
@ -31,6 +31,9 @@
|
|||
- ' 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.
|
||||
#- - '[\*=+-]+'
|
||||
# - ' '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue