generateTranscript

abstract suspend fun generateTranscript(imMessage: IMMessage, conversation: IRainbowConversation): RainbowResult<Unit>

Use this method to request a transcription for a voice memo associated to a message into a conversation.

Return

RainbowResult callback (onSuccess and onError)

Parameters

imMessage

IMMessage the message containing the voice memo

conversation

IRainbowConversation the conversation from where the message is coming from


abstract suspend fun generateTranscript(fileDescriptor: RainbowFileDescriptor?): RainbowResult<Unit>

Use this method to request a transcription for a voicemail.

Return

RainbowResult callback (onSuccess and onError)

Parameters

fileDescriptor

RainbowFileDescriptor the file descriptor from the voicemail