otani
Posts: 70
Joined: Fri Dec 13, 2013 4:18 am

HTML5 SpeechSynthesis on Chromium48

Wed Mar 09, 2016 3:02 pm

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.

EchoEum
Posts: 56
Joined: Mon Aug 01, 2016 1:01 pm

Re: HTML5 SpeechSynthesis on Chromium48

Sat Dec 10, 2016 2:43 pm

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.

fruitoftheloom
Posts: 25783
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: HTML5 SpeechSynthesis on Chromium48

Sat Dec 10, 2016 9:24 pm

If you use Raspbian Jessie with Pixel DE you will have the supported chromium-browser version 51:

https://www.raspberrypi.org/blog/introducing-pixel
The information is out there....you just have to let it in.

My other Linux machines are a ChromeBox & Intel CoreDuo Desktop

EchoEum
Posts: 56
Joined: Mon Aug 01, 2016 1:01 pm

Re: HTML5 SpeechSynthesis on Chromium48

Sat Dec 10, 2016 10:43 pm

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.

Return to “General discussion”