【问题标题】:Voice Command Checklist - GDK语音命令清单 - GDK
【发布时间】:2014-01-27 11:08:33
【问题描述】:

我看过Voice Command Checklist documentation

我使用“走捷径”语音命令启动我的玻璃器皿。

在 string.xml 我有:

<string name="takeshortcut_text">take a shortcut</string>

在 AndroidManifest.xml 我有:

<activity
    android:name="com.shortcut.activity.MainActivity"
    android:label="@string/takeshortcut_text">
    <intent-filter >
        <action android:name="com.google.android.glass.action.VOICE_TRIGGER" />
    </intent-filter>

当我部署到 Glass 并在看到“OK Glass”时点按,我看到它在卡片菜单列表中显示为“使用快捷方式”。

如果我让 takeshortcut_text “运行计时器”,菜单卡会显示“运行计时器”,如果我让它“开始运行”,它会显示“开始运行”。

我希望我的玻璃器皿具有类似的行为。我怎样才能让它显示“走捷径”?

【问题讨论】:

    标签: google-glass google-gdk


    【解决方案1】:

    听起来您在问如何使语音菜单中显示的文本与触摸菜单中显示的文本不同。这仅受官方批准的语音命令支持;开发过程中使用的自定义语音命令将在两个菜单中显示相同的字符串。

    如果您计划在未来推出 Glassware 并使用我们的表单,请继续使用我们的表单 submit your voice command requests

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-06-07
      • 1970-01-01
      • 2014-03-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-25
      • 1970-01-01
      相关资源
      最近更新 更多