ICS 中的兼容性 TTS 问题
如下所示,Google 为 TTS 创建了一组新的 API。因此,使用预览实现创建的应用程序将停止在 ICS 中工作:
http:// developer.android.com/reference/android/speech/tts/TextToSpeech.html
上面的链接表示我们应该寻找带有兼容层的博客文章,以防万一我们需要向后兼容。
有谁知道我们如何使用新指南实现 TTS 而不破坏向后兼容性?
任何帮助表示赞赏。
最好的问候,
卡洛斯
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用 Svox 并注意到在 ics 中唯一的默认引擎似乎是 google tts。
我跳回我的姜饼手机,默认 svox 工作正常,因为设置允许我选择 pico 或 svox 作为默认设置。
不幸的是,在 ics 中,虽然您可以设置“首选 tts 引擎”
相比之下,在姜饼中,设置/语音输入和输出/文本转语音设置可用于设置默认 tts 引擎。
因此,我最终得到了某些应用程序,例如使用 svox“首选 tts”的语音警报,但其他程序则不会,除非它是 google tts。
为什么要把这个复杂化以使其更适合 D. ?
如果我们愿意的话,为什么不直接将其设为默认值并让应用程序覆盖......首选是 vaque。他们在姜饼中就已经做到了……为什么要倒退呢?
I use Svox and have noticed that in ics the only default engine seems to be google tts.
I jump back to my gingerbread phone and have svox working fine as the default because the settings allow me to chose pico or svox as the default.
Unfortunately in ics , while you can set the 'preferred tts engine'
In gingerbread by contrast, the settings/voice input & output/text to speech settings can be used to set the default tts engine.
So I end up with certain apps like voice alerts using the svox 'preferred tts' but other programs wount unless it is google tts.
WHY COMPLICATE THIS TO MAKE IT P R E F F E R E D. ?
WHY NOT JUST MAKE IT D E F A U L T and have apps override if we want to....preferred is to vaque. they had it right in gingerbreat...why go backwards ?
我认为您的声明“因此,使用预览实现创建的应用程序将停止在 ICS 中工作:”(我猜您的意思是“先前”而不是“预览”)具有误导性。
我使用 Android 2.2 构建的应用程序在 API 15 模拟器上完美地合成了语音。我希望它在真实设备上也能正常工作。
有几个已弃用方法,但这仅意味着这些方法可能在未来版本中被删除,并不是说它们在当前版本中不起作用。这只是一个警告,表明现在有更新更好的方法可用。
I think your statement "So, apps created using previews implementantions will stop working in ICS:" ( I guess you meant 'previous' not 'previews') is misleading.
My app built with Android 2.2 synthesises speech perfectly well on an API 15 emulator. I would expect it to work just as well on a real device.
There are a couple of deprecated methods but this just means that these methods may be removed in a future version, not that they won't work in the current version. It's just a warning that there are newer and better methods now available.