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

Voice list disappears on android devices #110

Open
juanqui66 opened this issue Dec 10, 2023 · 0 comments
Open

Voice list disappears on android devices #110

juanqui66 opened this issue Dec 10, 2023 · 0 comments

Comments

@juanqui66
Copy link

Plugin version:
"@capacitor-community/text-to-speech": "^3.0.1"

Platform(s):
Ionic:

Ionic CLI : 7.1.1
Ionic Framework : @ionic/angular 7.4.1
@angular-devkit/build-angular : 16.2.3
@angular-devkit/schematics : 16.2.3
@angular/cli : 16.2.3
@ionic/angular-toolkit : 9.0.0

Capacitor:

Capacitor CLI : 5.4.1
@capacitor/android : 5.4.1
@capacitor/core : 5.4.1
@capacitor/ios : not installed

Utility:

cordova-res : 0.15.4
native-run : 1.7.3

System:

NodeJS : v18.17.0
npm : 10.2.4
OS : Windows 10

Current behavior:
Normally on Android devices, the TTS library has worked correctly for me, but in some cases, after an error occurs, textToSpeech.getSupportedVoices() no longer returns any voices (it returns an empty list). This has already happened to me on more than one Android device, where the app I developed correctly accessed the list of voices and the reading of texts worked correctly and, suddenly, after an error (normally produced after canceling a reading), the voice list always arrives empty.

Do you know why this situation can occur and how to prevent it? Do you know how to recover the list of voices on these devices?

Thanks in advance.

Capacitor doctor:

Latest Dependencies:

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

Installed Dependencies:

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

[success] Android looking great! 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant