-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from mohan43u/master
re-factored tamil-tts-install
- Loading branch information
Showing
4 changed files
with
212 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,93 +2,38 @@ | |
|
||
Author : T Shrinivasan <[email protected]> | ||
|
||
|
||
This is a script to install the Tamil text to Speech System provided by IIT Madras and SSN College of Engineering at | ||
https://www.iitm.ac.in/donlab/tts/voices.php | ||
|
||
## System requirements: | ||
Ubuntu 16.04 | ||
1. Ubuntu 16.04 | ||
2. Ubuntu 18.04 | ||
|
||
## Will it work on Windows? | ||
|
||
No. | ||
|
||
|
||
## How to execute: | ||
|
||
|
||
## How to Install | ||
``` | ||
git clone https://github.com/tshrinivasan/tamil-tts-install.git | ||
cd tamil-tts-install | ||
./tamil-tts.sh --clean --setup | ||
``` | ||
|
||
Edit the file, install-tamil-tts.sh | ||
|
||
Fill the following details. | ||
|
||
DOWNLOAD_PATH=/home/ubuntu/tts/packages #to download the required packages | ||
|
||
COMPILE_PATH=/home/ubuntu/tts/compiled # to place the compiled files and folders | ||
|
||
|
||
Register here http://htk.eng.cam.ac.uk/download.shtml and get a username and password | ||
|
||
HTKUSER=htkuserchennai | ||
|
||
HTKPASSWORD=sgqY=t=M | ||
|
||
|
||
Then, execute the file as | ||
|
||
bash install-tamil-tts.sh | ||
|
||
|
||
|
||
## How to convert a text to audio? | ||
|
||
## How to convert tamil text to .wav | ||
``` | ||
export FESTDIR=/usr | ||
cd COMPILE_PATH | ||
ssn_hts_demo/scripts/complete “தமிழ் வாழ்க” linux | ||
cd tamil-tts-install | ||
./tamil-tts.sh --run --source tamil-text.txt | ||
``` | ||
This will generate 'tamil-text.wav' file | ||
|
||
|
||
This will convert the text and store as wav in | ||
|
||
ssn_hts_demo/wav/1.wav | ||
|
||
you can play it with any audio player. | ||
|
||
|
||
The full details of what is on the compile process is explained here. | ||
https://goinggnu.wordpress.com/2017/09/20/how-to-compile-tamil-tts-engine-from-source/ | ||
|
||
To hear a demo on how the tamil TTS system sounds, click here | ||
https://soundcloud.com/shrinivasan/tamil-tts-demo | ||
|
||
|
||
|
||
|
||
## How to convert a full text file to audio? | ||
|
||
Prepare the tamil text content as a text file. Save it as ".txt" extension. | ||
|
||
open the file convert-file-to-audio.py, with any text editor and replace the following two parapeters with suitable folders. | ||
|
||
ssn_demo_path = "/home/shrini/Downloads/ssn_hts_demo" | ||
|
||
mp3_out_path = "/home/shrini/test" | ||
|
||
|
||
Then execute the below command | ||
|
||
## How to convert tamil text to .mp3 | ||
``` | ||
python convert-file-to-audio.py <filename.txt> | ||
cd tamil-tts-install | ||
./tamil-tts.sh --run --gen-mp3 --source tamil-text.txt | ||
``` | ||
This will generate 'tamil-text.mp3' file | ||
|
||
This will make mp3 file and store in the folder mp3_out_path/filename-timestamp | ||
## howto set your own HTKUSER and HTKPASSWORD in tamil-tts.sh | ||
Register here http://htk.eng.cam.ac.uk/download.shtml and get a username and password, replace your | ||
own username and passward in HTKUSER and HTKPASSWORD |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.