Git Product home page Git Product logo

jymnils2 / glados-tts-voice-wizard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vrcwizard/glados-tts-voice-wizard

0.0 0.0 0.0 170.26 MB

A GLaDOS TTS, using Forward Tacotron and HiFiGAN. Inference is fast and stable, even on the CPU. A low quality vocoder model is included for mobile use. Rudimentary TTS script included. Works perfectly on Linux, partially on Maybe someone smarter than me can make a GUI.

License: MIT License

Python 99.78% Batchfile 0.22%

glados-tts-voice-wizard's Introduction

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. For Torch/Cuda support refer here for supported versions of python 3.9 is confirmed to work

    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 in the 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

Troubleshooting

  • If you get an import error for something related to pydantics do pip install pydantic==1.10.11

glados-tts-voice-wizard's People

Contributors

vrcwizard avatar nerdaxic avatar eternalliving avatar r2d2fish avatar diekatzchen avatar klb2 avatar docteh avatar salleq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.