glados-tts/old
ben ba1a9b7438
ben/glados-tts/pipeline/head There was a failure building this commit Details
FastAPI, documentation, etc. (#5)
cleanup

flake8 fixes

cleanup

deal with relative path

working fastapi implementation with pydantic

functioning /docs again, ocker support, and better api endpoitns

regular jenkinsfile

empty tests dir

updating README

providing http endpoint thats compatible with MaryTTS

Co-authored-by: Ben Kristinsson <ben@sudo.is>
Reviewed-on: b/glados-tts#5
2023-05-21 12:32:12 +00:00
..
README.md FastAPI, documentation, etc. (#5) 2023-05-21 12:32:12 +00:00
engine-TTSVoiceWizard.py FastAPI, documentation, etc. (#5) 2023-05-21 12:32:12 +00:00
engine.py FastAPI, documentation, etc. (#5) 2023-05-21 12:32:12 +00:00
glados.py FastAPI, documentation, etc. (#5) 2023-05-21 12:32:12 +00:00

README.md

GLaDOS Text-to-speech (TTS) Voice Generator

Neural network based TTS Engine.

If you want to just play around with the TTS, this works as stand-alone.

python glados-tts/glados.py

the TTS Engine can also be used remotely on a machine more powerful then the Pi to process in house TTS: (executed from glados-tts directory

python engine-remote.py

Default port is 8124 Be sure to update settings.env variable in your main Glados-voice-assistant directory:

TTS_ENGINE_API			= http://192.168.1.3:8124/synthesize/

Description

The initial, regular Tacotron model was trained first on LJSpeech, and then on a heavily modified version of the Ellen McClain dataset (all non-Portal 2 voice lines removed, punctuation added).

  • The Forward Tacotron model was only trained on about 600 voice lines.
  • The HiFiGAN model was generated through transfer learning from the sample.
  • All models have been optimized and quantized.

Installation Instruction

If you want to install the TTS Engine on your machine, please follow the steps below.

  1. Install python 3.7.9. If you have to deal with multiple versions of python then you may find pyenv-win extremely helpful

    image (pytorch will not install correctly if using 32 bit version)

  2. Install the espeak synthesizer according to the installation instructions for your operating system.

  3. Using console (all commands will be typed into console)

    • open "terminal" or "command prompt" image

    • Change Directory or "cd" into the correct folder with engine-TTSVoiceWizard.py in it, here is an example:

cd C:\Users\<NAME>\Downloads\glados-tts-voice-wizard-main\glados-tts-voice-wizard-main
  1. type this command into console to see if the correct version of python is installed and working correctly.
python --version
  • if you get an error that mentions "app execution aliases", simily turn them off for python in the windows settings

image

  1. Install the required Python packages, e.g., by running pip install -r requirements.txt

  2. Set the required environment variables by running

setx PHONEMIZER_ESPEAK_LIBRARY 'C:\Program Files\eSpeak NG\libespeak-ng.dll'
setx PHONEMIZER_ESPEAK_PATH 'C:\Program Files\eSpeak NG\espeak-ng.exe'
  • If those commands don't work you may have to add the environment variables manually.
  • You can add them to system variables like this picture. If you are unsure how to do this... google "how to set environment variables"

image

TTS Voice Wizard Instructions

  • Follow the above installation instructions
  • To use glados TTS for TTS Voice Wizard run this (it will need to be running in the background for Glados TTS to work in TTS Voice Wizard)
  • open console
  • Change Directory or "cd" into the correct folder with engine-TTSVoiceWizard.py in it, here is an example:
cd C:\Users\<NAME>\Downloads\glados-tts-voice-wizard-main\glados-tts-voice-wizard-main
  • Run the python script
python engine-TTSVoiceWizard.py

Note you will have to have this script running background whenever you wanna use the glados voice. Becareful sharing screen for help, when the script is successfully run it will show your ip address with the port being used