Getting “Sorry, I didn't get any response.” message when I tried Hand-off feature

痴心易碎 提交于 2019-12-09 18:34:11

问题


When I tried Multi-surface conversations (Hand-off from Google Home to Android Google Assistant), I'm getting "Sorry, I didn't get any response." I'm using Action SDK and locale is "ja".

Here is my response:

{
    "conversationToken": "(token)",
    "expectUserResponse": true,
    "isInSandbox": true,
    "expectedInputs": [
        {
            "possibleIntents": [
                {
                    "intent": "actions.intent.NEW_SURFACE",
                    "inputValueData": {
                        "@type": "type.googleapis.com/google.actions.v2.NewSurfaceValueSpec",
                        "context": "Sure, I have some sample images for you.",
                        "notificationTitle": "Sample Images",
                        "capabilities": [
                            "actions.capability.SCREEN_OUTPUT"
                        ]
                    }
                }
            ],
            "inputPrompt": {
                "richInitialPrompt": {
                    "items": {
                        "simpleResponse": {
                            "textToSpeech": "PLACEHOLDER_FOR_NEW_SURFACE"
                        }
                    }
                }
            }
        }
    ]
}

Does anyone know why?


回答1:


Turns out that this is not a bug in a certain locale, but that askForNewSurface is currently supported for english locales only. This is what I got from AoG support:

Hi Jan,

Thank you for your interest in Actions on Google. askForNewSurface is indeed only available for English locales. We are in the process of changing the documentation to reflect those restrictions. Sorry for the confusion. We do not have any set det for the release of this feature in other locales.

Kind Regards,

Jean-Charles, Actions on Google Support Team.




回答2:


It seems to be available only in english but i find no clear statement about this on any documentation.

I tried the exact same code in english and in french, it works in english, not in french.



来源:https://stackoverflow.com/questions/47403159/getting-sorry-i-didnt-get-any-response-message-when-i-tried-hand-off-featur

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!