如何在阿拉伯语中使用 Android TTS [英] How to use Android TTS in Arabic

查看:34
本文介绍了如何在阿拉伯语中使用 Android TTS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序实现了 TextToSpeech.OnInitListener 接口,我试图让它说阿拉伯语字母,但它似乎不支持阿拉伯语.

My application implements the TextToSpeech.OnInitListener interface, and I'm trying to let it speak Arabic letters, but it seems that it doesn't support Arabic.

我该怎么办?

这是设置语言的代码,但不支持阿拉伯语:

Here is the code that sets the language, but Arabic is not supported:

mTts = new TextToSpeech (this, this); 
mTts.setLanguage(Locale.US);

推荐答案

接受的答案显然已经过时了.截至 2021 年 2 月,当前版本的 Google TTS 支持阿拉伯语.

The accepted answer is clearly outdated. The current version of Google TTS, as of Feb 2021, supports Arabic language.

这篇关于如何在阿拉伯语中使用 Android TTS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆