MycroftAI / mimic1

Mycroft's TTS engine, based on CMU's Flite (Festival Lite)
https://mimic.mycroft.ai
Other
826 stars 153 forks source link

Problem with speaking. #210

Open Achaean opened 4 years ago

Achaean commented 4 years ago

Hi! :-)

I compiled locally and installed the latest mimic1 version (1.3.0.1), according the official guidelines (and disabling non-English languages), at MX Linux (19.2) x64.

Sometimes Mimic speaks the words loud and clear (eg. with "mimic -t "hello world""), while most of the time only produces some distorted sound. (A kind of a noise). At my other system, I didn't have this problem.

forslund commented 4 years ago

Hi!

Can you check which audio driver it was compiled with? in config.log check the AUDIODRIVER value.

Also does it work ok when generating wav-files?

Achaean commented 4 years ago

Hi!

Can you check which audio driver it was compiled with? in config.log check the AUDIODRIVER value.

AUDIODRIVER='alsa'

Also does it work ok when generating wav-files?

Generated WAVs are flawless. I played them with vlc and they're perfectly normal.

forslund commented 4 years ago

Ok cool so then it's likely in the alsa audiodriver. You can try to workaround it by switching to portaudio as playback driver: --with-audio=portaudio

This issue is vaguely familiar, but I can't quite remember where/when it was...

forslund commented 4 years ago

Do you know the alsa version on the system?

Achaean commented 4 years ago

Alsa package: 1.1.7-1.

Achaean commented 4 years ago

Ok cool so then it's likely in the alsa audiodriver. You can try to workaround it by switching to portaudio as playback driver: --with-audio=portaudio

Indeed! This worked out! :-) Give me some time to test it and I'll be back ASAP.

Achaean commented 4 years ago

OK! Everything seems to be fine. Only 2 glitches during compilation:

1) Make fails (although configure completed successfully)), reporting that misses Portaudio headers. Installing portaudio19-dev, solves the problem.

2) "make -j4" fails. Probably something fails, because something other, isn't ready at the time. A simple "make" (only one compilation, at a time), solves this too.