capacitor-community/text-to-speech

bug: The text is still heard when changing the url

Marius-Romanus opened this issue · 1 comments

Plugin version:
1.1.2

Platform(s):
Chrome and Edge browsers

Current behavior:
Hello, in Chrome and Edge (Chromium browsers), when you are listening to a text, and you change the url to a completely different one, the text continues to be heard. I have tried to put await TextToSpeech.stop(); on a lot of sites but there is no way to make it not speak.

Expected behavior:
That the text is not heard when you change the url of the page.

Steps to reproduce:
Run the example from https://github.com/robingenz/capacitor-plugin-demo in Chrome, and go to the text-to-speech tab, put a long text, and change the url to one that doesn't have nothing to do with the project.

Capacitor doctor:

Latest Dependencies:

  @capacitor/cli: 3.4.3
  @capacitor/core: 3.4.3
  @capacitor/android: 3.4.3
  @capacitor/ios: 3.4.3

Installed Dependencies:

  @capacitor/ios: not installed
  @capacitor/core: 3.4.3
  @capacitor/cli: 3.4.3
  @capacitor/android: 3.4.3

Regards!

Thank you for your request! I will fix this.