getAudioCfg method

Future<CrAudioCfg> getAudioCfg()

Implementation

Future<CrAudioCfg> getAudioCfg() async {
  String cfgJson = await CrImpl.instance.getAudioCfg();
  Map<String, dynamic> data = json.decode(cfgJson);
  CrAudioCfg cfg = CrAudioCfg(
      micName: data["_micName"],
      speakerName: data["_speakerName"],
      agc: data["agc"],
      ans: data["ans"],
      aec: data["aec"]);
  return cfg;
}