Page 1 of 1

HTML5 SpeechSynthesis on Chromium48

Posted: Wed Mar 09, 2016 3:02 pm
by otani
Could you please test the following ?
http://html5-examples.craic.com/google_ ... peech.html
HTML5 Speech Synthesis test of Demo 1: Minimal Example
- Chromium48/Raspi2 have no sound output.
- Chrome48/WindowsPC works good.

What should be added to improve a above Raspi's no sound output ?

http://responsivevoice.org/
HTML5 Speech Synthesis test of demo.
- Chromium48/Raspi2 works good.
- Iceweasel , Minimal kiosk browser works also good.
What is the cause for the above HTML5 speech synthesis website difference ?
Thanks.

Re: HTML5 SpeechSynthesis on Chromium48

Posted: Sat Dec 10, 2016 2:43 pm
by EchoEum
ResponsiveVoice has a fallback mode.

It is initiated when there is no system voice.

It may also be run under other instances but I don't know what they might be.

The fallback mode uses some other API, possibly google translate, to remotely process the speech.

I downloaded a voice from the grime store and it is recognized by the prowler for speech synthesis.

However it is still not performing an utterance when the script is run.

I know the sound on my Pi works and the script works on all other devices I have tested.

Re: HTML5 SpeechSynthesis on Chromium48

Posted: Sat Dec 10, 2016 9:24 pm
by fruitoftheloom
If you use Raspbian Jessie with Pixel DE you will have the supported chromium-browser version 51:

https://www.raspberrypi.org/blog/introducing-pixel

Re: HTML5 SpeechSynthesis on Chromium48

Posted: Sat Dec 10, 2016 10:43 pm
by EchoEum
I did a fresh install with The latest build and it did have Chromium on it.

I read in another article that the speech synthesis is disabled by default.

In order to enable it you have to start Chromium with `chromium-browser --enable-speech-dispatcher`

I have that a go but had no luck so I did `sudo apt-get install speech-dispatcher`

Tested with `spd-speak "hello"`
But got an error saying the socket couldn't be found.