SpeechToTextHandler

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

Constructors

Link copied to clipboard
public void SpeechToTextHandler()

Properties

Link copied to clipboard
public final static DataKey<UiMessage> KEY_REQUEST_SPEECH_TO_TEXT
Link copied to clipboard
public final static DataKey<UiMessage> KEY_SET_SPEECH_TO_TEXT_VISIBLE
Link copied to clipboard
public final static DataKey<UiMessage> KEY_SPEECH_TO_TEXT_LISTENER
Link copied to clipboard
public final static String SPEECH_TO_TEXT_HIDDEN_STATE
Business-state identifier for hidden speech-to-text results.
Link copied to clipboard
public final static String SPEECH_TO_TEXT_LOADING_STATE
Business-state identifier for in-progress speech-to-text loading.

Functions

Link copied to clipboard
public void requestSpeechToTextForMessage(String messageUId)
Initiates a speech-to-text transcription request for a voice message.
Link copied to clipboard
public void setMessageSpeechToTextVisible(int messageId, boolean isVisible)
Sets the visibility of a speech-to-text transcription result.
Link copied to clipboard
public void stop()