Class SpeechToTextHandler

  • All Implemented Interfaces:

    
    public class SpeechToTextHandler
    
                        

    Data handler for speech-to-text operations on voice messages.

    Manages:

    • Initiating speech-to-text requests
    • Setting the visibility of transcription results
    • Listening for transcription result callbacks
    • Managing error states for transcription operations
    Since:

    5.22.0

    • Constructor Detail

      • SpeechToTextHandler

        SpeechToTextHandler()
    • Method Detail

      • requestSpeechToTextForMessage

         void requestSpeechToTextForMessage(String messageUId)

        Initiates a speech-to-text transcription request for a voice message.

        Parameters:
        messageUId - the unique message ID of the voice message to transcribe
      • setMessageSpeechToTextVisible

         void setMessageSpeechToTextVisible(int messageId, boolean isVisible)

        Sets the visibility of a speech-to-text transcription result.

        Parameters:
        messageId - the client message ID
        isVisible - true to show the transcription; false to hide it