dlutton / flutter_tts

Flutter Text to Speech package
MIT License
617 stars 258 forks source link

在vivo,oppo,honor,huawei等机型上设置语言香港(粤语)无效,依旧播放为普通话 #546

Open tangwenyun opened 5 days ago

tangwenyun commented 5 days ago

🐛 Bug Report

Expected behavior

Reproduction steps

  var languages = await flutterTts.getLanguages;
  print("Supported languages: $languages");
  if (languages.contains('zh-HK')) {
    await flutterTts.setLanguage('zh-HK');
  } else if (languages.contains('yue')) {
    await flutterTts.setLanguage('yue');
  }else if (languages.contains('yue-HK')) {
    await flutterTts.setLanguage('yue-HK');
  } else {
    print("设备不支持粤语语言");
    await flutterTts.setEngine("com.google.android.tts");
    await flutterTts.setLanguage('zh-HK');
  }

在真机上获取的Languages列表有包含相应语言代码,且isLanguageAvailable 都是true,但仍旧播放为普通话(简体中文)

Configuration

Version: 0.1.x

Platform: