coSpeak

suspend fun coSpeak(text: String): IviTextToSpeech.ResultStatus

Plays the specified text using text-to-speech and returns the asynchronous job. If the job is canceled, the utterance will be stopped.

Return

The asynchronous job.

Throws

kotlinx.coroutines.CancellationException

when the coroutine was canceled.