Synthèse vocale locale

Visiteur
Visiteur
J'ai trouvé un moteur de synthèse vocale de bonne qualité pour Linux.
https://github.com/MycroftAI/mimic3
https://github.com/MycroftAI/mimic3/issues/30
Installation :
A partir de deb ou avec pip.
Utilisation :
Code :
mimic3 --help
mimic3 --voices
mimic3 --play-program aplay --speaker 0 --voice fr_FR/m-ailabs_low "Bonjour"
mimic3 --speaker 0 --voice fr_FR/m-ailabs_low "Bonjour" > output.wav
cat input.txt | mimic3 --speaker 0 --voice fr_FR/m-ailabs_low > output.wav
GUI (yad-gtk3) :
urpmi yad-gtk3
https://forum.altlinux.org/index.php?topic=48339.15
ui.sh :
Code :
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "start wo 2 args"
cd /tmp
rm says*.txt
rm says*.wav
rnd=$RANDOM
rfnt="/tmp/saysf$rnd.txt"
rfns="/tmp/saysf$rnd.wav"
if /usr/bin/yad-gtk3 --text-info --editable --file-op --wrap \
--title="Сейчас скажу!" \
--text="Введите текст:" \
--entry-text "" \
--width=600 --height=240 > $rfnt
then
echo "RUN $0 $rfnt $rfns"
$0 $rfnt $rfns
else
echo "EXIT"
exit 0
fi
else
echo "start with 2 args $1 $2"
for ((i=1; i<=3; i++)) {
echo "# $((i*33))%"
echo $i
#sleep 1
if [ "$i" -eq 1 ]; then
cat $1 | mimic3 --speaker 0 --voice fr_FR/m-ailabs_low > $2
fi
if [ "$i" -eq 2 ]; then
vlc $2
fi
} | /usr/bin/yad-gtk3 --progress \
--text="Прогресс..." \
--width=300 \
--auto-kill \
--enable-log="Прогресс" \
--log-expanded \
--auto-close
echo "start new scrip and exit"
$0 &
fi
exit 0
/usr/share/applications/ui.desktop :
Code :
[Desktop Entry]
Encoding=UTF-8
Name=Speech
Comment=Speech
Categories=Utility;
Exec=bash /home/user/ui/ui.sh
Icon=yad
Terminal=false
Type=Application
StartupNotify=false
Path=/tmp
Édité par Visiteur Le 27/12/2023 à 04h06

Visiteur
Visiteur
https://invidious.fdn.fr/watch?v=KVBAYkSxv2E
Bonnes fêtes !
Édité par Visiteur Le 27/12/2023 à 04h25

Ami age Membre non connecté
-
- Voir le profil du membre Ami age
- Inscrit le : 18/08/2012
- Site internet
- Groupes :
-
Modérateur
_______________________________________________________________________

___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.



___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.

Papoteur Membre non connecté
-
- Voir le profil du membre Papoteur
- Inscrit le : 03/10/2011
- Groupes :
-
Modérateur
-
Équipe Mageia
-
Administrateur
-
Forgeron
Le projet Mycroft semble arrêté et repris sous le nom piper : https://github.com/rhasspy/piper
Yves

Visiteur
Visiteur
Papoteur :
Le projet Mycroft semble arrêté et repris sous le nom piper
Merci. Le nouveau projet est meilleur et l'installation est plus facile.
Samples :
https://rhasspy.github.io/piper-samples/

Visiteur
Visiteur

Guygoye Membre non connecté
-
- Voir le profil du membre Guygoye
- Inscrit le : 25/10/2018
- Groupes :
-
Modérateur
-
Forgeron
Parfois c'est un peu rapide mais satisfaisant
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie