简体   繁体   English

应用程序操作:使用测试工具但不使用语音

[英]app actions: work with test tool but not with voice

I am exploring the app actions.我正在探索应用程序操作。 I'd like to build a demo with three pages, and the user could navigate to different pages by giving the right instruction to google assistant.我想构建一个包含三个页面的演示,用户可以通过向谷歌助手提供正确的指令导航到不同的页面。 here is my actions.xml and AndroidManifest.xml:这是我的操作。xml 和 AndroidManifest.xml:

//actions.xml
<?xml version="1.0" encoding="utf-8"?>

<actions>
 <action intentName="actions.intent.OPEN_APP_FEATURE">
    <parameter name="feature">
      <entity-set-reference entitySetId="FeatureEntitySet" />
    </parameter>
    <fulfillment
        fulfillmentMode="actions.fulfillment.DEEPLINK"
        urlTemplate="http://example.com/open{?title}">
      <parameter-mapping
          intentParameter="feature"
          urlParameter="title"
          entityMatchRequired="true"/>
    </fulfillment>
  </action>

  <entity-set entitySetId="FeatureEntitySet">
    <entity name="game" identifier="game" />
    <entity name="navigation" identifier="navigation" />
    <entity name="ebook" identifier="ebook" />
  </entity-set>
</actions>

//AndroidManifest.xml

<activity android:name="com.appactiont.demo.MainActivity"
    android:exported="true">
  <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
  </intent-filter>

  <intent-filter>
    <action android:name="com.google.android.gms.actions.SEARCH_ACTION" />
    <category android:name="android.intent.category.DEFAULT" />
  </intent-filter>

  <intent-filter android:autoVerify="true" tools:targetApi="m">
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data
        android:host="example.com"
        android:scheme="http" />
  </intent-filter>
</activity>

It works with app actions test tool, but google assistant cannot correctly interpret "open demo game" or "open demo with feature game" (even I type it).它适用于应用程序操作测试工具,但谷歌助手无法正确解释“打开演示游戏”或“使用功能游戏打开演示”(即使我输入它)。 It just opens a search result.它只是打开一个搜索结果。 Not sure if I missed something in my code.不确定我是否遗漏了代码中的某些内容。 Appreciated if anyone can help!如果有人可以提供帮助,我们将不胜感激!

This should be fixed by now.现在应该解决这个问题。 Please try it and let me know if it's working or not.请尝试一下,让我知道它是否有效。 Thanks!谢谢!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 OPEN_APP_FEATURE 操作无法通过语音命令运行 [通过应用程序操作测试工具完美运行] - OPEN_APP_FEATURE action not working through voice command [Works perfactly via App Actions Test Tool] 在 Android 上,我无法让 actions.intent.OPEN_APP_FEATURE 在应用程序操作测试工具之外工作 - On Android, I cannot get actions.intent.OPEN_APP_FEATURE to work outside the App Actions Test Tool 应用操作未与应用操作测试工具一起运行 - App Action not running with App Actions Test Tool 为什么我的应用可以与应用操作测试工具一起使用,但在 Play 商店发布时却不行? - Why does my app work with app actions test tool, but not when it's published on the play store? 有没有办法在不使用测试工具的情况下测试 android 应用程序操作 - Is there a way to test android app actions without using the test tool App Action 适用于 App Actions 测试工具,但不适用于 Google Assistant - App Action Works on App Actions Test Tool But not On Google Assistant 为什么[App Actions Test Tool]不支持快捷方式xml文件? - Why [App Actions Test Tool] not support shortcuts xml file? 带有谷歌助手的 App Actions 测试工具显示“对不起,我找不到它” - App Actions test tool with google assistant shows "Sorry, I couldn't find it" 好的google,语音操作,通过应用数据搜索 - ok google, voice actions, search through app data 用于消息传递的Android语音操作 - Android Voice Actions for Messaging
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM