createOrNull

expect fun createOrNull(context: Context, callback: (TextToSpeechInstance?) -> Unit)

Creates a new TextToSpeechInstance. Will call callback with null if TTS is not supported.


expect suspend fun createOrNull(context: Context): TextToSpeechInstance?

Creates a new TextToSpeechInstance. Will return null if TTS is not supported.