Tihu is an open source Persian text-to-speech engine. It's a cross-platform application and mostly is written in C++. Tihu uses Hazm for digesting Persian text and Tihu g2p-seq2seq for Grapheme-to-Phoneme conversion.
Make sure you have installed gcc (6.0 or higher). To check your gcc version run gcc --version
. Also you need python2.7 to run Tihu.
You can compile Tihu library by following these steps:
git clone https://github.com/tihu-nlp/tihu.git
cd tihu
apt install curl
apt install python2-pip
apt install libespeak-ng-dev
apt install libsamplerate0-dev
make ready
make release
Tihu console is a gui application that allows you to work with Tihu library. Before compiling Tihu console make sure you have installed qt framework. You can also find a pre-compiled version of Tihu console in release page for linux x64.
To compile Tihu console run:
qmake --version
make console
Make sure you have installed gRPC C++. Then type: make grpc
To create Tihu docker with the gRPC endpoint: type make docker
These command will be usefull while using docker:
- Run the docker:
docker run --name tihu -p 50051:50051 tihu
- Stop the docker:
docker stop tihu
- Start the docker:
docker start tihu
Check the wiki page to know how Tihu convert Persian text to speech. This document is in Persian and explain how Tihu works with an example.
Tihu is Persian name for Partridge.