ixsans / text_to_speech

A Flutter plugin provides TTS (Text-To-Speech) Service
BSD 3-Clause "New" or "Revised" License
18 stars 24 forks source link

Bugfix: Check for null when listing available languages and voices on Android #11

Open arbu opened 2 years ago

arbu commented 2 years ago

When an error occurs while calling methods in android.speech.tts.TextToSpeech, null is returned. This might be the case e.g. when there is no TTS engine installed on the device. This PR adds additional checks for null values.