voice: switch Bulgarian voice from espeak to Piper

...Should be much nicer.

Change-Id: Ie9afe5ace8a5fae4fa4e52f813be2e57626395ee
This commit is contained in:
Solomon Peachy 2025-11-02 00:06:43 -04:00
parent a3934f50fe
commit b9475d79a3
2 changed files with 6 additions and 3 deletions

View file

@ -117,6 +117,7 @@ my %gtts_lang_map = (
'svenska' => '-l sv',
'turkce' => '-l tr',
'ukrainian' => '-l uk',
'vietnamese' => '-l vi',
);
my %espeak_lang_map = (
@ -149,11 +150,12 @@ my %espeak_lang_map = (
'svenska' => '-vsv',
'turkce' => '-vtr',
'ukrainian' => '-vuk',
'vietnamese' => '-vvi',
);
my %piper_lang_map = (
'english' => 'en_GB-semaine-medium.onnx', # Always first, it's the golden master
# 'bulgarian' => '-vbg',
'bulgarian' => 'bg_BG-dimitar-medium.onnx',
'chinese-simp' => 'zh_CN-huayan-medium.onnx',
'czech' => 'cs_CZ-jirka-medium.onnx',
'dansk' => 'da_DK-talesyntese-medium.onnx',
@ -181,6 +183,7 @@ my %piper_lang_map = (
'svenska' => 'sv_SE-nst-medium.onnx',
'turkce' => 'tr_TR-fettah-medium.onnx',
'ukrainian' => 'uk_UA-ukrainian_tts-medium',
'vietnamese' => 'vi_VN-vais1000-medium.onnx',
);
my $trim_thresh = 250; # Trim silence if over this, in ms