jasperproject / jasper-client

Client code for Jasper voice computing platform
MIT License
4.53k stars 1.01k forks source link

flite and festival tts too fast when transcribing tts #454

Open affordablewindurbines opened 8 years ago

affordablewindurbines commented 8 years ago

flite and festival tts too fast when transcribing tts , does anybody know why changing tts jasper transcribes voice too fast ? i am using ubuntu 14.04 lts , i have tried several different tts engines the result is the same the only one that works properly is espeak

affordablewindurbines commented 8 years ago

with other programs the tts voices sound fine ,so i know it is just a tts module problem

affordablewindurbines commented 8 years ago

ive tried things like below to ry and slow it down in profile.yml

tts_engine: flite-tts flite-tts: voice: 'rms' words_per_minute: 60 speech_rate: 'slow'

develuxe commented 8 years ago

I can't speak for flite or festival tts but I find the google tts quite good. Give it a try if you don't mind the privacy "problems".

CoolSaet commented 8 years ago

I had the same problem, however it was with all tts engines except espeak. Strangely enough when I used flite directly to create a .wav file and play it using aplay, everything seemed OK.

So I changed the following line (line 109) in JASPERFOLDER/client/tts.py:

cmd = ['aplay', '-D', 'plughw:1,0', str(filename)]

to

cmd = ['aplay', str(filename)]

Now they all work.

I think you also need to make sure that your usb soundcard is the default in alsa.