requestSpeechToText

public final Unit requestSpeechToText(ErrorHandler handler)

Requests speech-to-text conversion for a voice message.

After the conversion completes, the result is delivered via ai.nexconn.chat.handler.MessageHandler.onSpeechToTextCompleted.

message.requestSpeechToText { error ->
if (error == null) {
// Request sent; awaiting completion callback
}
}

Parameters

handler

Operation result callback; error is null on success