Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: TTS not triggered on iOS16 #84

Closed
winfieldblum opened this issue Sep 14, 2022 · 5 comments
Closed

bug: TTS not triggered on iOS16 #84

winfieldblum opened this issue Sep 14, 2022 · 5 comments
Labels
platform: ios iOS platform

Comments

@winfieldblum
Copy link

Plugin version:
v2.0.1

Platform(s):
iOS 16

Current behavior:
In iOS 15.5 when running

speak = async (msg) => {
    await TextToSpeech.speak({
      text: msg,
      lang: "en-AU",
      rate: 1.0,
      pitch: 1.0,
      volume: 1.0,
      category: "ambient",
    });
  }; 

or even

getSupportedLanguages()

The text is read fine in <16 but in iOS 16 (I did try en-US too) no longer does and we get errors in the console;

⚡️ To Native -> TextToSpeech getSupportedLanguages 125237587
⚡️ TO JS {"languages":[]}
⚡️ [log] - undefined
⚡️ To Native -> TextToSpeech speak 125237588
ERROR MESSAGE: {"errorMessage":"This language is not supported.","message":"This language is not supported."}
⚡️ [error] - {"errorMessage":"This language is not supported.","message":"This language is not supported."}
2022-09-14 10:02:10.029667+0930 App[78368:14819623] [asset] Failed to get sandbox extensions
2022-09-14 10:02:10.060227+0930 App[78368:14819623] [catalog] Unable to list voice folder
2022-09-14 10:02:10.075312+0930 App[78368:14819623] [catalog] Unable to list voice folder
2022-09-14 10:02:10.077749+0930 App[78368:14819623] [catalog] Unable to list voice folder
2022-09-14 10:02:10.086635+0930 App[78368:14819623] [catalog] Unable to list voice folder

Expected behavior:
Plays as normal in either <16 and 16

Steps to reproduce:
As abive

Related code:
As above

Capacitor doctor:

💊   Capacitor Doctor  💊

Latest Dependencies:

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

Installed Dependencies:

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

[success] iOS looking great! 👌
[success] Android looking great! 👌
@winfieldblum winfieldblum changed the title bug: TTS not triggered on iOS6 bug: TTS not triggered on iOS16 Sep 14, 2022
@robingenz
Copy link
Member

Thank you. I will have a look as soon as possible.

@sstorie
Copy link

sstorie commented Nov 5, 2022

Any updates on whether this is still an issue? I was just about to start using this for an app.

@robingenz robingenz added platform: ios iOS platform bug/fix Something isn't working labels Nov 5, 2022
@robingenz
Copy link
Member

I just tried it and was able to reproduce the issue in the simulator.
I don't have an iOS 16 device at the moment for testing.

@changefox Did you also experience the issue in the simulator or on the device?

According to this SO answer, the problem occurs only in the simulator: https://stackoverflow.com/a/74282321/6731412

@robingenz robingenz added needs: reply and removed bug/fix Something isn't working labels Nov 5, 2022
@winfieldblum
Copy link
Author

winfieldblum commented Nov 6, 2022 via email

@github-actions
Copy link

github-actions bot commented Dec 7, 2022

It looks like there hasn't been a reply in 30 days, so I'm closing this issue.

@github-actions github-actions bot closed this as completed Dec 7, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: ios iOS platform
Projects
None yet
Development

No branches or pull requests

3 participants