convertVoiceToText method

  1. @override
Future<V2TimValueCallback<String>> convertVoiceToText({
  1. required String msgID,
  2. required String language,
})
override

Implementation

@override
Future<V2TimValueCallback<String>> convertVoiceToText({
  required String msgID,
  required String language, // "zh (cmn-Hans-CN)" "yue-Hant-HK" "en-US" "ja-JP"
}) async {
  return V2TimValueCallback<String>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        'convertVoiceToText',
        buildMessageMangerParam(
          {
            "msgID": msgID,
            "language": language,
          },
        ),
      ),
    ),
  );
}