init static method

dynamic init()

Implementation

static init() async {
  // 设置语言
  await _flutterTts.setLanguage("en");
  // 设置音量
  await _flutterTts.setVolume(1.0);
  // 设置语速
  await _flutterTts.setSpeechRate(0.55);
  // 音调
  await _flutterTts.setPitch(1.0);
}