android:如何使用语音锁定设备

发布于 2025-01-06 22:12:20 字数 62 浏览 5 评论 0原文

我是安卓新手。我正在尝试使用语音锁定设备。我用媒体录音机录制了声音,但现在如何用这个声音锁定手机?请任何想法。

I am new to android. I am trying to lock the device using voice . I recorded the voice with media recorder but now How I lock the phone with this voice ? plz any idea.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

冬天旳寂寞 2025-01-13 22:12:20

有趣,但你可能需要做更多的工作,而不仅仅是在这里猜测。快速集思广益:

  • 您的应用程序必须是设备管理员才能锁定设备
  • 来锁定设备,可以通过路由到它的广播事件“告诉”该设备管理员
  • “锁定设备”事件可以由另一个/引发相同的应用程序,如果它可以从麦克风捕获,
    可能会将其转发到可以进行语音转文本的服务器(谷歌有一些东西),然后应用程序尝试识别响应文本是否符合“锁定”标准。如果是,则广播“锁定”事件。

这在很大程度上取决于语音到文本部分的完成程度,否则,请沿着这些思路进行探索。

Interesting, but u need to probably do more work that mere speculation here. A quick brainstorm:

  • your app must be a device admin to be able to lock the device
  • to lock the device, this device admin could be "told" via a broadcast event routed to it
  • the "lock device" event can be raised by another / same app if it can capture from the mic,
    probably forward this to a server that can do speech-to-text (Google has something), then yo app tries to recognize whether the response text matches the "lock" criteria. If it does, then broadcast the "lock" event.

This heavily depends on how good the speech-to-text part is done, otherwise, explore along those lines.

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