Gregg's MOTD

Tips & Tricks that I've Encountered Over the Years...

Install mimic Text-To-Speech on Slackware 15

June 13, 2023 — Gregg Szumowski

Per the manpage: Mimic is a command line tool for synthesizing speech from text. If outfile.wav is omitted mimic will output the utterance using the computer sound card.

Mimic is based on flite and strives to extend functionality and add more languages while keeping the application fast and light.

Mandatory arguments to long options are mandatory for short options too.

$ git clone https://github.com/MycroftAI/mimic1.git
$ cd mimic1/
$ ./dependencies.sh --prefix="/usr/local"
$ ./autogen.sh
$ ./configure --prefix="/usr/local"
$ make
$ make check
$ su -c "make install"

You can list the default voices that are installed with mimic by passing it the -lv command line parameter.

$ mimic -lv
Voices available: ap slt slt_hts kal awb kal16 rms awb_time

Which tells you that there are 8 voices available.

You should now be able to do some testing at the command line:

$ mimic -t "Hello world"
$ mimic -t "Hello world"
$ mimic -t 'Hello, this is a test of the emergency broadcasting system'
$ mimic -t 'Hello, this is a test of the emergency broadcasting system' -voice slt

See the manpage for more info and options.

Tags: text-to-speech, mimic, slackware, motd