diff --git a/.gitignore b/.gitignore index 19a66fc..c69ef32 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/config/pre_process_map.yaml b/config/pre_process_map.yaml new file mode 100644 index 0000000..bb206c5 --- /dev/null +++ b/config/pre_process_map.yaml @@ -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. +#- - '[\*=+-]+' +# - ' ' diff --git a/pre_process_map.default.yaml b/pre_process_map.default.yaml index 90f0620..5e85545 100644 --- a/pre_process_map.default.yaml +++ b/pre_process_map.default.yaml @@ -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. #- - '[\*=+-]+' # - ' '