Skip to content

Commit

Permalink
Merge pull request #5 from mohan43u/master
Browse files Browse the repository at this point in the history
re-factored tamil-tts-install
  • Loading branch information
tshrinivasan authored May 15, 2018
2 parents 6df3e46 + 316898a commit 48a46d0
Show file tree
Hide file tree
Showing 4 changed files with 212 additions and 208 deletions.
85 changes: 15 additions & 70 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
41 changes: 0 additions & 41 deletions convert-file-to-audio.py

This file was deleted.

97 changes: 0 additions & 97 deletions install-tamil-tts.sh

This file was deleted.

Loading

0 comments on commit 48a46d0

Please sign in to comment.