leaonline/easy-speech

`boundary` event doesnt fire on Chrome.

Opened this issue · 2 comments

[x] I have read the FAQ section and have checked
that none of it describe the issue I'm about to report.

Describe the bug
The boundary event doesnt fire on Chrome whereas its working perfectly on Edge.

To Reproduce

EasySpeech.speak({
  text: myText,
  voice: myVoice, 
  pitch: 1,
  rate: 1,
  volume: 1,
  // there are more events, see the API for supported events
  boundary: event => {
    console.log(event);
  },
  end: event => {
    this.startIndex = null;
    this.endIndex = null;
  }
});

Expected behavior
It should work properly across the browers.

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version 122.0.6261.95

@naveedahmed1 thank you for reporting! From what I see this is a Chrome Bug that has not been fixed yet: https://issues.chromium.org/issues/40715888

Thanks @jankapunkt, yes you are right.