尝试在Google SignIn帮助器上调用“操作”时出现语音匹配错误 [英] Getting a Voice Match error when trying to call Actions on Google SignIn helper

查看:102
本文介绍了尝试在Google SignIn帮助器上调用“操作”时出现语音匹配错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要实现的是在调用默认的欢迎意图之前进行用户身份验证(帐户链接)。

What I'm trying to achieve is user authentication (account linking) before the default welcome intent is called.

(我知道在设计文档中建议不要要求用户进行身份验证,但这是我们的操作所必需的)。

(I'm aware that in the design documents it is recommended to not require users to authenticate, but it is required for our action)

我们在模拟器中测试了一个未部署的操作。对话流程为

We have an undeployed action that I have tested in the simulator. The conversation flow is


  1. 提示用户登录,即新的SignIn()

  2. 提示创建新项目

  3. 项目已保存,用户收到成功/失败响应并继续

在DialogFlow中,我有一个默认的欢迎意图(提示用户创建一个新项目),一种用于捕获该项目的意图。

In DialogFlow I have a Default Welcome Intent (prompts the user to create an new item), an intent to capture the item.

我们的实现意图

app.intent('ask_for_sign_in_detail', (conv) => {
    conv.ask(new SignIn());
});

app.intent('ask_for_sign_in_confirmation', (conv, params, signin) => {
    if (signin.status !== 'OK') {
        return conv.ask('You need to sign in before using the app.');
    }
    // const access = conv.user.access.token;
    // exchange access.token for jwt from backend
    return conv.ask('Great! Thanks for signing in.');
});

app.intent('Default Welcome Intent - fallback', (conv) => {
    createItem(conv);
});

在DialogFlow中,针对Google Assistant的集成下,我要求必须先登录,然后才能使用默认欢迎意图

In DialogFlow under integrations for the Google Assistant I have required that Sign In is required before the Default Welcome Intent.

当我在模拟器中进行测试时,我可以看到在帐户链接下没有任何信息(即没有帐户链接),并且有一条消息指出否帐户已链接到Google。开始进行帐户链接的测试对话。'

When I go to test in the simulator I can see that under account linking there is no information (ie, no accounts linked) and there is a message stating 'No account is linked to Google. Start a test conversation for account linking.'

开始对话我会遇到以下错误:

Starting a conversation I get the following error:


您的声音无法识别,所以我无法将您连接到Talkatoo。
检查Google Home应用中的语音匹配设置。

Your voice wasn't recognized, so I can't connect you to Talkatoo. Check the Voice Match settings in the Google Home app.

我不确定我在尝试验证用户身份的过程中误入了哪里他们的Google帐户。

I am not sure where I have strayed trying to authenticate users with their Google accounts.

推荐答案

此问题已由Google于PDT 2019-07-19 02:57修复。收到了AoG小组的回应,并在模拟器中进行了测试。这是Google的错误。

This has been fixed by Google as of 2019-07-19 02:57 PDT. Received a response from the AoG team, and tested it in the simulator. It was a Google bug.

这篇关于尝试在Google SignIn帮助器上调用“操作”时出现语音匹配错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆