Open tangwenyun opened 5 days ago
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,但仍旧播放为普通话(简体中文)
Version: 0.1.x
Platform:
🐛 Bug Report
Expected behavior
Reproduction steps
在真机上获取的Languages列表有包含相应语言代码,且isLanguageAvailable 都是true,但仍旧播放为普通话(简体中文)
Configuration
Version: 0.1.x
Platform: