语音转文字 Android

发布于 2024-11-17 07:33:51 字数 234 浏览 1 评论 0原文

编写一个应用程序,在收到的短信到达时自动读出它们。也许对允许接收者说出响应的语音命令感兴趣 - 无需触摸手机,手机会将此字符串作为回复短信发送。

我做了一些搜索并看到了一些示例,但不确定将此功能集成到我的应用程序中的复杂性。我将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小…楫夜泊 2024-11-24 07:33:51

从这个项目开始:

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文