语音转文字 Android
编写一个应用程序,在收到的短信到达时自动读出它们。也许对允许接收者说出响应的语音命令感兴趣 - 无需触摸手机,手机会将此字符串作为回复短信发送。
我做了一些搜索并看到了一些示例,但不确定将此功能集成到我的应用程序中的复杂性。我将 tts 阅读器代码(对于已经工作的阅读器)放置在侦听接收到的消息的类的 onreceive 方法中 - 效果很好。然而,不知道从哪里开始弄清楚如何在电话里顶嘴,将音频数据转换为字符串,并触发该字符串作为响应!
Have an app written that automatically reads out received text messages when they arrive. Interested in perhaps a voice command that allows the receiver to speak a response - without touching the phone, which sends this string as a reply SMS.
Iv'e done some searches and seen some examples, but unsure of the complexity of integrating this feature into my app. I placed the tts reader code (for the already working reader) in the onreceive method of the class that listens for received messages - which works well. However, have no idea where to start with figuring out howto talk back at the phone, convert that audio data into a string, and firing that string off as a response!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从这个项目开始:
https://github.com/gmilette/Say-the-Magic -Word-
了解该项目后,尝试以下功能以获取更多功能:
https://github.com/gast-lib/gast-lib
Start with this project:
https://github.com/gmilette/Say-the-Magic-Word-
After you understand that project, try this for more features:
https://github.com/gast-lib/gast-lib