TextToSpeechFactory

Factory class to create a Text-to-Speech instance. Use defaultEngine to set the package name of the default engine. Setting this to TextToSpeechEngine.Google is recommended.

Factory class to create a Text-to-Speech instance.

Factory class to create a Text-to-Speech instance.

Constructors

Link copied to clipboard
constructor(context: Context, defaultSpeechEngine: String? = null)

Factory class to create a Text-to-Speech instance. Use defaultSpeechEngine to set the package name of the default engine. Setting this to TextToSpeechEngine.Google.androidPackage is recommended.

constructor(context: Context, defaultEngine: TextToSpeechEngine = TextToSpeechEngine.SystemDefault)
constructor()
constructor()
constructor(context: Window = window)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
actual val canChangeVolume: Boolean = false
actual val canChangeVolume: Boolean = true
actual val canChangeVolume: Boolean = true
Link copied to clipboard
actual val isSupported: Boolean = true
expect val isSupported: Boolean
actual val isSupported: Boolean = true
actual val isSupported: Boolean

Functions

Link copied to clipboard
actual suspend fun create(): Result<TextToSpeechInstance>
actual suspend fun create(): Result<TextToSpeechInstance>
expect suspend fun create(): Result<TextToSpeechInstance>
actual suspend fun create(): Result<TextToSpeechInstance>
actual suspend fun create(): Result<TextToSpeechInstance>
Link copied to clipboard
actual suspend fun createOrNull(): TextToSpeechInstance?
actual suspend fun createOrNull(): TextToSpeechInstance?
expect suspend fun createOrNull(): TextToSpeechInstance?
actual suspend fun createOrNull(): TextToSpeechInstance?
actual suspend fun createOrNull(): TextToSpeechInstance?
Link copied to clipboard
actual suspend fun createOrThrow(): TextToSpeechInstance
actual suspend fun createOrThrow(): TextToSpeechInstance
expect suspend fun createOrThrow(): TextToSpeechInstance
actual suspend fun createOrThrow(): TextToSpeechInstance
actual suspend fun createOrThrow(): TextToSpeechInstance