Android应用开发中我们如何获得语音输出?
我正在开发一个Android应用程序,它需要以语音形式输出的地图中的路线指导。所以基本上,我需要使用语音作为输出(就像 GPS)引导乘客从一个位置到另一个位置。我看过 android 资源中的文本到语音文章。我还有其他方法可以实现这一目标吗?
提前致谢
I am developing an android app which requires route guidance in a map in the form of speech as output. So basically, I need to guide a passenger from one location to another location using speech as output(just as a GPS). I have looked at text to speech article in the android resources. Is there any other way I can achieve this?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能有一些第三方语音引擎可用,但 Android 框架中内置的引擎确实非常好。参考文档并没有很好地展示如何开始,但其中一位工程师写了 Android 开发者博客上的指南值得一看。
您还可以查看 AccessibilityService在“ApiDemos”应用中,当用户单击 ListView 中的项目时,该应用使用内置的文本转语音引擎与用户对话。
There are probably some third party speech engines available, but the one built into the Android framework is really quite good. The reference docs aren't great on showing how to get started, but one of the engineers wrote a guide on the Android Developer Blog that's worth a look.
You can also look at the AccessibilityService in the "ApiDemos" app, which uses the built-in text-to-speech engine to speak to the user when they click on items in a ListView.