文字对语音的阿拉伯语飘忽不定



我正在flutter中搜索文本到语音包,我发现了这个flutter_tts但它不支持阿拉伯语,有没有办法添加阿拉伯语或任何其他支持阿拉伯语的软件包?

使用Flutter speech_to_text包。

要更改语言,localeId=此设备上阿拉伯语的ID:

var locales = await speech.locales();
// Some UI or other code to select a locale from the list
// resulting in an index, selectedLocale
var selectedLocale = locales[selectedLocale];
speech.listen(
onResult: resultListener,
localeId: selectedLocale.localeId,
);

最新更新