Skip to content

Conversation

@coskunomer
Copy link

Solves the issue #5.

When the callback fires with SUCCESS, it probably only means the TTS service connected, not that voices/engines are loaded. On slow devices, synthesizer.engines and synthesizer.voices return empty collections even though status == SUCCESS.

Previous code is setting isInitialized = true and immediately trying to access synthesizer.engines, which is empty on slow devices due to the race condition.

This pull request solved the issue on my test device.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant