My App => Ok Glass => Next Page -6ren">
gpt4 book ai didi

android - 玻璃 GDk : Contextual voice commands without the "Ok Glass"

转载 作者:行者123 更新时间:2023-11-29 17:48:16 30 4
gpt4 key购买 nike

我有一个以 CardScrollView 作为 Activity 的应用程序。

Ok Glass => My App => Ok Glass => Next Page
Or OK Glass => Previous Page

是否可以跳过第二个“Ok Glass”?

最好的办法是让语音命令始终处于激活状态,但我不知道是否可行。

最佳答案

我实际上是为我的 Glass 应用程序做的。看这里:https://github.com/RIVeR-Lab/google_glass_driver/tree/master/android/RobotManager/src/com/riverlab/robotmanager

您会对 VoiceRecognitionThread、Vocabulary 和 MessageListActivity 感兴趣。

您描述的功能在 MessageListActivity 和 VoiceRecognitionThread 中实现。

词汇表只是支持多层命令。如果您计划使用可以分支到其他命令的语音命令,您只需要担心它。例如,在我的应用程序中,我正在控制一个机器人。命令可能看起来像“向前行驶”“快速向前行驶”“现在向前行驶”或“快速向前行驶延迟五”。您可以在此处查看 xml 文件中的示例:https://github.com/RIVeR-Lab/google_glass_driver/tree/master/test

希望这对您有所帮助!

关于android - 玻璃 GDk : Contextual voice commands without the "Ok Glass",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24869216/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com