是所有Android手机的谷歌TTS引擎,我在哪里可以得到它? [英] Is the Google TTS Engine on all Android Phones, and where can I get it?

查看:3057
本文介绍了是所有Android手机的谷歌TTS引擎,我在哪里可以得到它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出是否随我的Andr​​oid手机中谷歌TTS引擎自带安装为出厂默认与支持所有Android手机?我不知道要看什么样的参考数字了这一点,所以我的计划是去软银,零售商,并要求。我觉得这是一个问题,他们将不能够回答,但。

I'm trying to find out if the Google TTS Engine that came with my Android phone comes installed as factory default with all Android phones that support it? I'm not sure what kind of reference to look at to figure this out, so my plan is to go to Softbank, a retailer, and ask. I feel it's a question they won't be able to answer, though.

我已经告诉星系不来与谷歌TTS,特别是;所以,任何人只要有一个银河至少可以让我直说......

I've been told that Galaxies don't come with Google TTS, specifically; so, anyone with a Galaxy can at least set me straight on that....

我也想知道,我怎么能得到谷歌TTS引擎的封装版本?我无法找到它的Play商店。尽我所能找到被发现通过查看许可证(这些可爱的小东西总是有开发商名称和站点)。因此,它的高温超导发动机,采用了HMM模型,对吧?但我没能找到一个包为Android在其网站上。我的下一步有联系开发商,和我目前有我的翻译电子邮件校对(希望,我能找到我自己的答案,并张贴了)。

I'm also wondering, how can I get a packaged version of the Google TTS Engine? I'm not able to find it on The Play Store. The best I could find was found by looking at the license (those sweet little things always have developer names and sites). So, it's the HTS engine, using HMM, right? But I'm not able to find a package for Android on their website. My next step there is to contact the developer, and I'm currently having my translated e-mail proof read (hopefully, I can find my own answer and post it up).

任何信息将大大AP preciated。

Any information would be greatly appreciated.

推荐答案

我不认为接受的答案是真正正确的。这code不检查是否安装了谷歌TTS引擎。它只是推出一个意图TTS引擎一般响应询问是否安装了TTS数据他们。

I don't think the accepted answer is really correct. This code doesn't check if the google TTS engine is installed. It just launch an intent that TTS engines in general respond to ask if the TTS data for them is installed.

如果没有安装TTS引擎,你可能会造成异常的类型ActivityNotFoundException的FC。如果你有其他TTS引擎(如微微),它会回应,并检查它的数据。如果你有一个以上的TTS引擎,它会问你你想要的意图工作,其中TTS引擎。

If there is no TTS engine installed, you may get an FC caused by an exception of the type ActivityNotFoundException. If you have other TTS engine (like pico) it will respond and check it's data. If you have more than one TTS engine, it will ask you which TTS engine you want the intent to work.

您应该为您在包管理器,而不是包的名字。这code检查SVOX微微TTS:

You should check for the package name in the package manager instead. This code checks for SVOX Pico TTS:

public void onCreate(Bundle savedInstanceState){
    super.onCreate(savedInstanceState);
    if(isPackageInstalled(getPackageManager(), "com.svox.pico")){
        ttsInstalled = true; // This would be good to have it as a static member
    }
}


public static boolean isPackageInstalled(PackageManager pm, String packageName) {
        try {
            pm.getPackageInfo(packageName, 0);
        } catch (NameNotFoundException e) {
            return false;
        }
        return true;
}

这篇关于是所有Android手机的谷歌TTS引擎,我在哪里可以得到它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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