google-home

Is it possible to play audio file or stream?

前提是你 提交于 2019-12-18 05:18:13
问题 Is it possible to play audio file or stream using actions-on-google-nodejs library? 回答1: Using SSML you can return an audio clip up to 120s. <speak> <audio src="https://actions.google.com/sounds/v1/animals/cat_purr_close.ogg"> <desc>a cat purring</desc> PURR (sound didn't load) </audio> </speak> Edit If you want to play audio the mp3 file (over 120s), you need to use Media Responses if (!conv.surface.capabilities.has('actions.capability.MEDIA_RESPONSE_AUDIO')) { conv.ask('Sorry, this device

Sorry, this action is not available in simulation

给你一囗甜甜゛ 提交于 2019-12-18 02:41:18
问题 My test invocation name is "Mrs Tang", so i input "Talk to Mrs Tang", but it responds "Sorry, this action is not available in simulation"... Does anybody know How can I resolve this error? 回答1: According to the doc: Turn on the Web & App Activity, Device Information, and Voice & Audio Activity permissions on the Activity controls page for your Google account. You need to do this to use the Actions Simulator, which lets you test your actions on the web without a hardware device. And I had do

Got the “My test app isn't responding right now. Try again soon.” error message even a clean start from Google Assistant Simulator

狂风中的少年 提交于 2019-12-13 11:50:25
问题 I am still quite new to this topic, so sorry if I didn't provide enough information. For the first time, I copoed everything from https://developers.google.com/actions/dialogflow/first-app to learn about it, which works great. After, I tried to create my own one, then at the end, I got this message "My test app isn't responding right now. Try again soon." from https://console.actions.google.com/project/[[PROJECT-ID]]/simulator/. Therefore, I tried to delete everything and make a complete new

connecting a raspberry pi to a google home

坚强是说给别人听的谎言 提交于 2019-12-13 10:32:11
问题 I want to control my raspberry pi with my Google Home at college, but everything I find involves a server and opening a port which I can not do on my schools network. Is there another way I can do this? 回答1: The Google Home has no way to directly control other devices on the same network or through other wireless protocols. Everything goes through an Internet-based service and expects to communicate with devices via a server-based proxy. How that server communicates with the device is up to

google action package how to define custom slot types?

廉价感情. 提交于 2019-12-12 19:42:24
问题 Hi this is a question about: google home, action sdk, gactions.exe at https://developers.google.com/actions/reference/rest/Shared.Types/QueryPatterns Are so called query pattern with custom types but when I try to add them to my action.json and than update via gaction it always says customTypes is an unknown Parameter. Does someone have an working example with ApiVersion: 2 ? Is there somewhere in general an larger example of this json. To better see how all works together? After 2 hours

Play longer than 2 minutes audio with “Actions on Google”

隐身守侯 提交于 2019-12-12 04:43:39
问题 According to documentation, if you are using SSML for playing audio, you're limited to "120 seconds maximum duration". Is there other way to start playing longer media (audio) with "Actions on Google" SDK on Google Home? Example usage: Meditation sounds that can last longer than 2 minutes. 回答1: As responded by Leon Nicholls (Google Assistant Developer Programs Engineer), currently there is no way to play audio longer than 120 sec. However they are considering that in the future. 回答2: Please

Retrieving email with Google Sign In for Google Home

折月煮酒 提交于 2019-12-11 16:14:33
问题 so I've beentrying to retrieve the email associated with the current user using the google home. Documentation is kind of hard to find on the subject and from what I could gather, I should be able to use the SignIn class from actions-on-google. So here is my setup. DialogFlow -> Created two intent, one to start the sign in process, the other to follow up on the process. (The second one has the event 'actions_intent_SIGN_IN' to it.) Actions on google config : Account Linking. Selected - Yes,

Actions on Google - What is the relationship between commands/devices/executions in the Google Home EXEC input and response?

≯℡__Kan透↙ 提交于 2019-12-11 07:30:17
问题 This question concerns the Actions on Google Smart Home documentation Create a Smart Home App, specifically the action.devices.EXECUTE section. We are somewhat confused regarding the exact relationship between the list of 'Command' objects and their associated lists of Devices and Executions, especially regarding how these are translated to a response. Based on the documentation, we believe that the intent is for Commands to be processed in order: top to bottom. Per Command, each Execution is

How to answer a user in Home device and send a notification to user's phone

匆匆过客 提交于 2019-12-11 05:49:20
问题 Is there any way to answer a user question in the Home device and at the same time, send a notification to another device? For example, if the user ask for a direction, answer with the location (voice) and finish saying to the user:"I've sent you the location to your phone" and send him a map... I know there is a way to switch conversation to another device (say, for example, one with screen) but I don't want to finish it in Home device. Thanks in advance. 回答1: Not in a straightforward way,

Custom fallback intents when using confirmation helper

情到浓时终转凉″ 提交于 2019-12-11 03:07:08
问题 I'm trying to create custom fallbacks for intents that contain confirmations. Here is the code: const functions = require('firebase-functions'); const { dialogflow, Confirmation } = require('actions-on-google'); const app = dialogflow({ debug: true, }); app.intent('vitals-confirmation', (conv, input, confirmation) => { conv.ask(new Confirmation(`Great! Have you fainted recently?`)); }); app.intent('vitals-confirmation-fallback', (conv, input, confirmation) => { conv.ask(new Confirmation(