Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
marytts [2016/02/22 16:02] mai grammaire, orthographe |
marytts [2019/04/25 14:08] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Mary Text-To-Speech ====== | ||
| + | {{tag> software poppy project poppy-kine}} | ||
| - | text to speech: http://mary.dfki.de/ and http://mary.dfki.de:59125/ and https://github.com/marytts/marytts | + | MaryTTS is an open-source text to speech system: http://mary.dfki.de/ and http://mary.dfki.de:59125/ and https://github.com/marytts/marytts |
| - | **Utilisation de MaryTTS et téléchargement de nouvelles voix** | + | The main output of this project is a java program PGI_I15.jar. We have developed an API so for Poppy in the [[poppy-kine:poppy-kine-2015-s5]] project. The API is available in Java and python. The report of the project his available at {{report:rapport_mgp320-i15_josselin_fayard_tom_veillard.pdf|}} |
| + | |||
| + | ===== Utilisation de MaryTTS et téléchargement de nouvelles voix ===== | ||
| Trois programmes pour linux et windows sont fournis directement après le téléchargement de MaryTTS dans le dossier « bin » : | Trois programmes pour linux et windows sont fournis directement après le téléchargement de MaryTTS dans le dossier « bin » : | ||
| Line 26: | Line 30: | ||
| Les voix que nous avons utilisées sont : | Les voix que nous avons utilisées sont : | ||
| FR : //enst-dennys-hsmm// | FR : //enst-dennys-hsmm// | ||
| - | EN : //cmu-rms-hsmm// | + | EN-US : //cmu-rms-hsmm// |
| + | |||
| + | ===== Utilisation via Java ===== | ||
| - | **Utilisation via Java** | ||
| Pour utiliser MaryTTS via un programme en Java, deux méthode sont possible : | Pour utiliser MaryTTS via un programme en Java, deux méthode sont possible : | ||
| Line 40: | Line 45: | ||
| Ci-dessous, quelques exemple de méthode de l’interface MaryInterface : | Ci-dessous, quelques exemple de méthode de l’interface MaryInterface : | ||
| - | ---- | + | <code java> |
| /* création de l'interface vers le serveur MaryTT local */ | /* création de l'interface vers le serveur MaryTT local */ | ||
| String host="localhost"; | String host="localhost"; | ||
| Line 65: | Line 70: | ||
| player.start(); | player.start(); | ||
| player.join(); | player.join(); | ||
| - | ---- | + | </code> |
| - | **Utilisation de l'API du projet:** | + | ===== Utilisation de l'API du projet: ===== |
| + | |||
| + | ==== The Java API ==== | ||
| Usage: | Usage: | ||
| Line 83: | Line 91: | ||
| -p string country : Use your personal TTS string | -p string country : Use your personal TTS string | ||
| + | ==== The python API==== | ||
| + | |||
| + | python client-mary.py [country part side position] | ||
| + | |||
| + | ARGUMENTS : | ||
| + | country : en | fr (natively supported) | ||
| + | part : arm | hand | elbow | shoulder | leg | foot | knee | hip | ||
| + | side : left | right | 0 | ||
| + | position : up | down | front | back | left | right | ||
| + | |||
| + | ==== How to install ==== | ||
| + | |||
| + | * You need to have the .jar and the python program from {{:software:mgp_i15_jar_py.zip|}}. You will also want to have {{:software:mgp_i15.rar|}} which contains the java HRI for [[poppy-kine:poppy-kine-2015-s5]] project. | ||
| + | * Download MaryTTS from https://github.com/marytts/marytts. Follow the readme to install MaryTTS. More precisely: | ||
| + | * install Maven from http://maven.apache.org/install.html | ||
| + | * Compile the MARY system itself from the folder mary-master where you downloaded the MaryTTS code, with command <code>mvn install</code> | ||
| + | |||
| + | |||
| + | |||
| + | ==== Step to step : running the python program ==== | ||
| + | - In folder marytts-master/target/marytts-5.2-SNAPSHOT/bin where you downloaded MaryTTS), launch marytts server <code> ./marytts-server </code> | ||
| + | - In the folder where you downloaded {{:software:mgp_i15_jar_py.zip|MGP_I15.jar}}, <code>java -jar MGP_I15.jar</code> | ||
| + | - in folder where you downloaded {{:software:mgp_i15_jar_py.zip|client-mary.py}} , launch the python script with for instance the command <code> python client-mary.py fr arm left up</code> | ||