TextToSpeech
Functions and properties that can be used to create new TTS instances and check for compatibility issues.
Functions
Link copied to clipboard
expect fun create(context: Context, callback: (Result<TextToSpeechInstance>) -> Unit)
Content copied to clipboard
Creates a new TextToSpeechInstance.
Link copied to clipboard
expect fun createOrNothing(context: Context, callback: (TextToSpeechInstance) -> Unit)
Content copied to clipboard
Creates a new TextToSpeechInstance. Will do nothing and will not execute callback when TTS is not supported.
Link copied to clipboard
Creates a new TextToSpeechInstance. Will return null if TTS is not supported.
expect fun createOrNull(context: Context, callback: (TextToSpeechInstance?) -> Unit)
Content copied to clipboard
Creates a new TextToSpeechInstance. Will call callback with null if TTS is not supported.
Link copied to clipboard
Creates a new TextToSpeechInstance.