SpeechSynthesisUtterance

Ask questions or give tips about HTML and JavaScript.

SpeechSynthesisUtterance

Joined: May 2nd, 2018, 7:12 pm

May 11th, 2018, 5:18 pm #1

var u=new SpeechSynthesisUtterance() gives a speech synthesis object,
u.text="Hello, world!" gives something to say,
but speechSynthesis.speak(u) doesn't work.

How come?
Quote
Like
Share

Joined: July 10th, 2013, 9:11 am

May 12th, 2018, 11:16 am #2

Hi intrepid999

welcome to the forum.

Android's WebView instance does not support speech synthesis.
But the Crome Browser on Android does.

You can use the Basic's TTS-Commands parrallel to the HTML-Commands.
Look at the f37_html_demo.bas program for your first steps.

Gregor
Quote
Like
Share