createSoundMessage method
创建语音消息(语音最大支持 28 MB)
参数
duration 语音时长,单位 s
Implementation
Future<String> createSoundMessage({
@required String soundPath,
@required int duration,
}) async {
return await _channel.invokeMethod(
"createSoundMessage",
_buildParam(
{
"soundPath": soundPath,
"duration": duration,
},
),
);
}