voiceToText method Null safety

Future<NIMResult<String>> voiceToText(
  1. {required NIMMessage message,
  2. String? scene}
)

Convert audio to text.

Implementation

Future<NIMResult<String>> voiceToText(
    {required NIMMessage message, String? scene}) async {
  return _platform.voiceToText(message: message);
}