Google Text-to-Speech API: how to set the speech speed?

1k views Asked by At

I am using this Perl script for Google Text-to-Speech (TTS) on Debian

It works like a charm, except the Google voice talks really slowly. I want to change that and make it talk faster.

Lines 174-179 control the breaks between words and sentences, but the words themselves come at a specific speed from Google.

I guess it could be changed somewhere around line 366 where the TTS call happens.

There is also $sample_rate all over that script, which might have something to do with that, but I cannot figure it out.

Any ideas how to speed it up?

0

There are 0 answers