GOOD NEWS GoogleTTS Tiny - A faster TTS script

lzaf

Guru
Joined
Jan 12, 2012
Messages
13
Reaction score
2
Location
United Kingdom
Hello,

since PIAF is lately all about performance and small embedded systems I would like to make you aware of a few updates on the googletts script that you might find interesting. There is now a 'tiny' version of the script that uses the HTTP::Tiny perl module instead of LWP::UserAgent.

LWP::UserAgent is an amazingly powerful perl module but also huge and bloated, not really suited for CPU and I/O constrained environments like eg the Raspberry pi. HTTP::Tiny on the other hand offers all the functionality googletts needs with a lot less overhead.
On github you can now find a new TTS script suffixed with '-tiny' that you can use as an in-place replacement of the normal version script since it exposes the same interface/cli args. To use it just make sure you have HTTP::Tiny installed.
In debian or ubuntu based distros:
Code:
apt-get install libhttp-tiny-perl
In distros that don't have it in their repos:
Code:
cpan HTTP::Tiny
In my initial tests on a Raspberry pi with the CPU overclocked to 1000 MHz the runtime of the new 'tiny' script is about a second less. Have fun testing! ;)
 

Members online

No members online now.

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,581
Messages
138,982
Members
14,676
Latest member
BluePeter