leaonline / easy-speech

🔊 Cross browser Speech Synthesis also known as Text to speech or TTS; no dependencies; uses Web Speech API
https://leaonline.github.io/easy-speech/
170 stars 20 forks source link

`boundary` event doesnt fire on Chrome. #267

Open naveedahmed1 opened 4 months ago

naveedahmed1 commented 4 months ago

[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):

jankapunkt commented 3 months ago

@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

naveedahmed1 commented 3 months ago

Thanks @jankapunkt, yes you are right.