Package io.rong.imkit.handler

## Class SpeechToTextHandler

- All Implemented Interfaces:

      public class SpeechToTextHandler

  语音转文字处理器

  负责处理语音消息转文字的数据请求和回调，包括：

  - 发起语音转文字请求
  - 设置转文字结果的可见性
  - 监听转文字结果回调
  - 管理转文字操作的错误状态
  Since:

    5.22.0

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public final static DataKey<UiMessage>` | `KEY_SPEECH_TO_TEXT_LISTENER` |
    `public final static DataKey<UiMessage>` | `KEY_REQUEST_SPEECH_TO_TEXT` |
    `public final static DataKey<UiMessage>` | `KEY_SET_SPEECH_TO_TEXT_VISIBLE` |
    `public final static String` | `SPEECH_TO_TEXT_HIDDEN_STATE` |
    `public final static String` | `SPEECH_TO_TEXT_LOADING_STATE` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SpeechToTextHandler()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `requestSpeechToTextForMessage(String messageUId)` |
    `void` | `setMessageSpeechToTextVisible(int messageId, boolean isVisible)` |
    `void` | `stop()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SpeechToTextHandler

          SpeechToTextHandler()

  - ### Method Detail

    - #### requestSpeechToTextForMessage

           void requestSpeechToTextForMessage(String messageUId)

    - #### setMessageSpeechToTextVisible

           void setMessageSpeechToTextVisible(int messageId, boolean isVisible)

    - #### stop

           void stop()