Code Monkey home page Code Monkey logo

ttsmyvoice's Introduction

ttsmyvoice

Minimalist Python TTS using custom vocabulary.

Quick-start (Linux only but with small changes should work on Win and Mac)

First install Python pydub and mpg123

$ sudo pip install pydub
$ sudo apt-get install -y mpg123
git clone https://github.com/francescosalvadore/ttsmyvoice.git
cd ttsmyvoice/src
python prepare_voice.py
python talk.py

To change the read text modify talk.py

To use your own word:

cd ../voices
mkdir -p <your_name>/in

and edit prepare_voice.py and talk.py to use your vocabulary (voice_name variable).

Put a list of words in a .dat file (only letters and numbers in the name of file please) with a word per line, an example is in francesco/in folder, comuni1174.dat.

Then record (e.g. using Audacity and a decent microphone) an interval of words to a .mp3 file, e.g. comuni1174_1_10.mp3

Then run again prepare_voice.py

Suggestion: let at least half a second among the words, and, in case you encounter problems, tune the prepare_voice.py silence time min_silence_len and silence threshold silence_thresh.

For a very good list of italian words look at: https://github.com/napolux/paroleitaliane

ttsmyvoice's People

Contributors

francescosalvadore avatar

Watchers

James Cloos avatar  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.