- Create a virtual environment using your favorite tool
- Using a Python >= 3.5
pip install PySide2 rasa deepspeech torch
or use the requirements file - Download the model from DeepSpeech's repo and unzip it
wget https://github.com/mozilla/DeepSpeech/releases/download/v0.5.1/deepspeech-0.5.1-models.tar.gz tar xvfz deepspeech-0.5.1-models.tar.gz
- To download and checkout to the correct branch of our TTS tool
git clone https://github.com/mozilla/TTS.git && cd TTS && git checkout db7f3d3
python setup.py develop
. This step may take a while because Mozilla TTS will install everything it needs to train a model, also, depending on your python version you might need to compile the dependencies.- Download from here these two files: "config.json" and "best_model.th.tar". They are the configuration that we're going to use for TTS and the best model available at the time this tutorial was first created. TTS is constantly improving and you can access new, better models here
- If you're still in the TTS directory we just created
cd ..
to the main directory. Create a directory inside of it calledtts_model
and put the files downloaded in step 6 there cd qt-rasa && rasa train
*
- On
qt-rasa
directory runrasa run --enable-api -p 5002 -vv
to start the NLP server - On the main directory run
python main.py
to open the GUI
- Create a virtual environment using your favorite tool
- Using a Python >= 3.5
pip install PySide2 rasa deepspeech torch
or use the requirements file - Download wget if you don't have it. To test it simply type
wget --version
in your terminal - Download the model from DeepSpeech's repo
wget https://github.com/mozilla/DeepSpeech/releases/download/v0.5.1/deepspeech-0.5.1-models.tar.gz
- If you have MinGW/MSYS or Cygwin installed, you can use the tar command to unpack the file
tar xvfz deepspeech-0.5.1-models.tar.gz
. If you prefer to use a GUI tool to unzip it try 7zip - To download and checkout to the correct branch of our TTS tool
git clone https://github.com/mozilla/TTS.git && cd TTS && git checkout db7f3d3
python setup.py develop
. This step may take a while because Mozilla TTS will install everything it needs to train a model, also, depending on your python version you might need to compile the dependencies.- Download from here these two files: "config.json" and "best_model.th.tar". They are the configuration that we're going to use for TTS and the best model available at the time this tutorial was first created. TTS is constantly improving and you can access new, better models here
- If you're still in the TTS directory we just created
cd ..
to the main directory. Create a directory inside of it calledtts_model
and put the files downloaded in step 8 there cd qt-rasa && rasa train
*
- On
qt-rasa
directory runrasa run --enable-api -p 5002 -vv
- On the main directory run
python main.py
to open the GUI
* Every time you change something in the .md files you'll have to retrain this