Gentoo overlay assets for installing the SuoPuhe Finnish Festival voices.
The app-accessibility/festvox-suopuhe ebuild pulls the Debian/Ubuntu .deb
archives, unpacks them, and installs both the common Finnish model and the
hy_fi_mv_diphone voice data under /usr/share/festival/voices/finnish/.
-
Add this repository to your overlays (e.g. create
/etc/portage/repos.conf/suopuhe.confpointing to this directory and runemaint sync suopuhe, or add it to a local overlay). -
Install Festival from the Gentoo tree:
emerge -av app-accessibility/festival
-
Install the SuoPuhe voice data:
emerge -av app-accessibility/festvox-suopuhe
-
After emerging, copy the bundled Festival config so
/etc/festival.scmloadshy_fi_mv_diphone:sudo cp /usr/share/doc/festvox-suopuhe-common/festival.scm /etc/festival.scm
-
Optional helper script for converting UTF-8 to ISO-8859-1 and speaking text is now installed directly as
/usr/bin/sanovia the ebuild. Run:sano Hyvää päivää
The script pipelines Festival through
iconvbecause SuoPuhe expects Latin‑1 input. -
A companion
sano-tiedostoonhelper dumps the converted bytes into the file you pass as the first argument, which makes it easy to stage text for Festival batch jobs:sano-tiedostoon exports/message.txt Hyvää päivää
The Festival tools produce .wav files that can be routed into your video editor:
iconv -f UTF-8 -t ISO-8859-1 exports/transcript-intro.proofread.fi.txt \
| text2wave -eval '(voice_hy_fi_mv_diphone)' -o exports/intro.wav
iconv -f UTF-8 -t ISO-8859-1 exports/transcript-lesson.proofread.fi.txt \
| text2wave -eval '(voice_hy_fi_mv_diphone)' -o exports/lesson.wavIf text2wave is missing you can still use Festival batch mode:
iconv -f UTF-8 -t ISO-8859-1 exports/transcript-intro.proofread.fi.txt | festival --ttsOr save waves via Scheme:
festival -b '(voice_hy_fi_mv_diphone)' \
'(Parameter.set \'Wavefiletype \'wav)' \
'(utt.save.wave (SayText "…") "exports/intro.wav")'app-accessibility/speech-dispatcherfor desktop integration if you want hotkey playback.media-video/ffmpegfor resampling:ffmpeg -y -i exports/intro.wav -ar 48000 -ac 1 exports/intro-48k.wav
- The ebuild installs documentation from both Debian packages under
/usr/share/doc/. - The build pulls
festvox-suopuhe-common_1.0g-20051204-5_all.debandfestvox-suopuhe-mv_20041119-3_all.debdirectly from the Ubuntu mirrors and simply copies the relevant voice data into place; there is no compilation step.