Skip to content

Voice list disappears on android devices #110

@juanqui66

Description

@juanqui66

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! 👌

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions