engineCreate method
创建引擎
Implementation
@override
Future<void> engineCreate(String cfg) async {
Map<String, dynamic> cfgMap = jsonDecode(cfg);
String appId = cfgMap["appId"]??"";
String appSecret = cfgMap["appSecret"]??"";
String sampleRate = cfgMap["sampleRate"]??"16000";
String en = cfgMap["en"]??"None";
String zh = cfgMap["zh"]??"None";
String i18n = cfgMap["i18n"]??"None";
String serverUrl = cfgMap["serverUrl"]??"";
String userId = cfgMap["userId"]??"";
List<dynamic> params = [appId, appSecret, sampleRate.toString(),en.toString(),zh.toString(),i18n.toString(),serverUrl,userId];
await methodChannel.invokeMethod<void>('engineCreate', params);
return;
}