Browse SDKs · Flutter
SDKsFlutterEnterprise

Save a local transcript

Use the Flutter SDK to save a transcript to an audio message on the current device.

Copy

Update SoundElem.text on the complete Message while preserving translation data and every other message field:

message.soundElem!.text = SoundText(text: transcript, translate: previousText?.translate);
await OpenIM.iMManager.messageManager.setMessageLocalContent(
  conversationID: conversationID,
  clientMsgID: message.clientMsgID!,
  message: message,
);

Future completion changes only the current device. It does not upload the transcript to the server, trigger a message listener, or synchronize it to other users or devices.