google-assistant-sdk

Google Assistant Installation on Python3.6 OSX

[亡魂溺海] 提交于 2019-12-25 16:55:40
问题 I am trying to install Google Assistant on OSX with Python 3.6. I successfully ran this command: python3 -m pip install "google-assistant-sdk[samples]" But when I run this command with the path to the JSON file from the Google Cloud Platform: python3 -m googlesamples.assistant.auth_helpers --client-secrets /path-to/secret.json I get this error: /usr/local/opt/python3/bin/python3.6: No module named googlesamples.assistant.auth_helpers Also here's the python3.6/site-packages folder: Terminal

How to wire a button on Raspberry Pi for Google Assistant SDK

我只是一个虾纸丫 提交于 2019-12-25 13:00:07
问题 The Google Assistant SDK example requires the user to hit enter before speaking to the Google Assistant. I was wondering is there a way to wire a button to one of the RPI GPIO pins and have it trigger G.Assistant. while True: if wait_for_user_trigger: click.pause(info='Press Enter to send a new request...') continue_conversation = assistant.converse() # wait for user trigger if there is no follow-up turn in # the conversation. wait_for_user_trigger = not continue_conversation # If we only

How to wire a button on Raspberry Pi for Google Assistant SDK

纵饮孤独 提交于 2019-12-25 13:00:05
问题 The Google Assistant SDK example requires the user to hit enter before speaking to the Google Assistant. I was wondering is there a way to wire a button to one of the RPI GPIO pins and have it trigger G.Assistant. while True: if wait_for_user_trigger: click.pause(info='Press Enter to send a new request...') continue_conversation = assistant.converse() # wait for user trigger if there is no follow-up turn in # the conversation. wait_for_user_trigger = not continue_conversation # If we only

Raspberry Pi Google Assistant: googlesamples-assistant-pushtotalk command saying no config found

两盒软妹~` 提交于 2019-12-25 03:21:06
问题 I'm making a google assistant with my Raspberry Pi 3 and I'm just trying make an LED turn on and off like in the docs (https://developers.google.com/assistant/sdk/guides/service/python/extend/handle-device-commands) but when I run this command googlesamples-assistant-pushtotalk to test it, I get an error: (env) pi@raspberrypi:~ $ googlesamples-assistant-pushtotalk INFO:root:Connecting to embeddedassistant.googleapis.com WARNING:root:Device config not found: [Errno 2] No such file or directory

Access token undefined

别等时光非礼了梦想. 提交于 2019-12-25 01:51:02
问题 i am new to google actions and dialogflow. Here i want to send notification to google assistant. But i am getting TypeError: Cannot read property 'access_token' of undefined const { google } = require('googleapis'); const key = require('./myapp.json'); let jwtClient = new google.auth.JWT( key.client_email, null, key.private_key, ['https://www.googleapis.com/auth/actions.fulfillment.conversation'], null ); jwtClient.authorize((err, tokens) => { let notif = { userNotification: { title: "message

Actions on Google won't respond to explicit invocations

会有一股神秘感。 提交于 2019-12-25 00:22:14
问题 I'm developing an Action, let's call it "foo". It's a grocery list, so users should be able to explicitly invoke it like so: "ask foo to add milk" (fails) "ask foo add milk" (works, but grammatically awful) "tell foo add milk" (fails, even though it's basically identical to the above?) "talk to foo" ... "add milk" (works, but awkward) I've defined "add {item} to my foo list" and "add {item}" (as well as many others) as training phrases in Dialogflow. So it seems like everything should be

Using google assistant SDK with raw text as user input

随声附和 提交于 2019-12-24 19:23:15
问题 I am currently working on a project that uses the Google Assistant SDK with Python. I have it working with direct audio listening, but I want to know if there is a way to use it with raw text input instead of listening to audio. 回答1: This is, apparently, a common request - but there is no way to do it yet. (Given this is still an early Developer Preview, and there have been many requests for this, we can hope they'll deliver it as part of a forthcoming update.) 来源: https://stackoverflow.com

Google Assistant sdk GRPC authentication error : io.grpc.StatusRuntimeException: UNAUTHENTICATED:

妖精的绣舞 提交于 2019-12-24 11:18:57
问题 I successfully created EmbeddedAssistantStub using the below code. EmbeddedAssistantGrpc.EmbeddedAssistantStub mAssistantService = EmbeddedAssistantGrpc.newStub(channel) .withCallCredentials(MoreCallCredentials.from( Credentials.fromResource(mClientId,mRefreshToken,mAccessToken) )); After this i passed audio data to StreamObserver, At that time below exxception was occured. Line 3378: 12-07 12:59:25.099 1917 4286 E GASample: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request is missing

Is there a way to simply follow a URL in the Caroussel Selector?

怎甘沉沦 提交于 2019-12-24 06:07:53
问题 I am trying to figure out how I can embed Google Actions responses, such as the cards carousel, in a webhook response for DialogFlow. According to the documentation, the structure looks as following: "carouselSelect": { "items": [ { "optionInfo": { "key": "MATH_AND_PRIME", "synonyms": [ "math", "math and prime", "prime numbers", "prime" ] }, "title": "Math & prime numbers", "description": "42 is an abundant number because the sum of its proper divisors 54 is greater...", "image": { "url":

Unable to register Google Assistant Device Model

跟風遠走 提交于 2019-12-23 01:03:54
问题 I am trying ever so hard to get the Google Assistant on my Windows 10 PC. I am up to the "Register Device" part. Developers.google.com Says to run the following command to register your device. googlesamples-assistant-devicetool register-model --manufacturer "Assistant SDK developer" \ --product-name "Assistant SDK light" --type LIGHT --model my-model Which i conclude for Windows (and me) is: googlesamples-assistant-devicetool register-model --manufacturer "Assistant SDK developer" --product