0

I am working on a small app using SpeechSynthesisUtterance API.

I try to launch a small function betweens words (when they are enunciated) :

I use boundary event : myWords.onboundary = function() { ... };

But it doesn't work...Maybe i don't understand how works boundaries effect.

Please, can you help me ?

Thank you,

Thomas

  • Are you catching the event itself? Try printing out the event by doing `myWords.onboundary = function(event) { console.log(event); };` – Zach Sadler Feb 26 '15 at 18:36
  • "doesn't work" is an insufficient description of your problem – gknicker Feb 26 '15 at 18:38
  • I already try you solution Zach but there is nothing printed in my javascript console. Actualy, no problems were detected. When i use another event as `onstart` or `onend` it works. I just want to lauch my fonction after each words. – Renaud Thomas Feb 26 '15 at 19:11

1 Answers1

1

This boiled-down sample illustrates the event not being fired. And this bug discusses this problem, but came to the conclusion to use the "native voice" which didn't work for me on Linux or Windows...

geekonaut
  • 5,714
  • 2
  • 28
  • 30