PDA

View Full Version : eSpeak speech synthesizer not working in qwebview



Javenne
4th June 2012, 02:42
I have a problem to make eSpeak speech syntesizer working in a qwebview window.

I tried the demo html page provided here (https://github.com/kripken/speak.js/) in mozilla and it works fine.
But when I try to open the html demo page in a qwebview window, the synthesizer doesn't work.

Anyone can give me an idea how to fix this?

I'm using Qt 4.7 in Ubuntu 11.10 with a HP mini 2101.

Thanks in advance.

ChrisW67
4th June 2012, 03:12
It "doesn't work" is a non-specific description of the problem. Could be anything. Not very useful.

I am going to guess that everything seemed to worked without throwing huge errors except that you expected to hear something and did not. Have a read here:
http://stackoverflow.com/questions/8653323/why-qtwebkit-4-8-0-webkit-2-2-dont-support-audio-video
https://bugreports.qt-project.org/browse/QTBUG-22883

Javenne
4th June 2012, 04:05
Thanks for the reply, Chris.
Sorry for not specifying the "doesn't work" part.
And yes, what I meant was it didn't produce the synthesized sound it supposed to produce.

I am using the webview to open a few html5 links.
After reading the links you've given, I tried to go html5test.com, and check whether the webkit supports html5 (including the audio and video).
And it turns out that the webkit supports html5 (all audio and video, excluding WebM audio support and video subtitle).

Doesn't this mean that the text-to-speech apps supposed to work?

ChrisW67
4th June 2012, 06:56
Webkit supports audio. QtWebkit reports the same ability however it cannot actually make a noise unless it has the libraries that allow it to make noise: QtMultimedia (part of QtMobility). They do not ship as part of the base Qt libraries.

There are also different formats of audio. On my Linux machine with QtMultimedia installed the demo here (http://moztw.org/demo/audioplayer/) works but I get no speech from demo you linked.