google-assistant-sdk

How to fix error “ERROR: Command errored out with exit status 1: python.” when trying to install py -m pip install google-assistant-sdk[samples]

岁酱吖の 提交于 2020-01-04 09:38:22
问题 This is what i got when i ran the command py -m pip install google-assistant-sdk[samples] in cmd with administrator rights. C:\WINDOWS\system32>py -m pip install google-assistant-sdk[samples] Collecting google-assistant-sdk[samples] Using cached https://files.pythonhosted.org/packages/47/26/b405a0236ea5dd128f4b9c00806f4c457904309e1a6c60ec590e46cc19c4/google_assistant_sdk-0.5.1-py2.py3-none-any.whl Requirement already satisfied: google-auth-oauthlib[tool]>=0.1.0 in c:\program files (x86)

SSL: CERTIFICATE_VERIFY_FAILED when trying to use the Google Assistant SDK

♀尐吖头ヾ 提交于 2020-01-04 05:49:05
问题 When trying to authorize access to the Google Assistant API from my Raspberry Pi, I get an error of “SSLError” type, stating that the certificate verification has failed. When I run: python -m googlesamples.assistant.auth_helpers --client-secrets <path-to-secrets-file> I get the following trace: Traceback (most recent call last): File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.4/runpy.py", line 85, in _run_code exec(code, run

SSL: CERTIFICATE_VERIFY_FAILED when trying to use the Google Assistant SDK

大城市里の小女人 提交于 2020-01-04 05:49:01
问题 When trying to authorize access to the Google Assistant API from my Raspberry Pi, I get an error of “SSLError” type, stating that the certificate verification has failed. When I run: python -m googlesamples.assistant.auth_helpers --client-secrets <path-to-secrets-file> I get the following trace: Traceback (most recent call last): File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.4/runpy.py", line 85, in _run_code exec(code, run

How to receive answer from Google Assistant as a String, not as an audio stream

社会主义新天地 提交于 2020-01-04 03:44:07
问题 I am using the python libraries from the Assistant SDK for speech recognition via gRPC. I have the speech recognized and returned as a string calling the method resp.result.spoken_request_text from \googlesamples\assistant\__main__.py and I have the answer as an audio stream from the assistant API with the method resp.audio_out.audio_data also from \googlesamples\assistant\__main__.py I would like to know if it is possible to have the answer from the service as a string as well (hoping it is

How do I change the language/locale in the Google Assistant SDK?

北城以北 提交于 2020-01-03 05:13:14
问题 As of the Google Assistant SDK 0.4.1, developers using it can change the language/locale using both the Google Assistant Library and the Google Assistant Service. This post will explain how developers can take advantage of this feature. 回答1: Google Assistant Service Using the gRPC API, developers can easily and programmatically change the locale in each API call. They can also change the locale as an argument to the pushtotalk.py sample. We can take a look at the Embedded Assistant protobuf

How to run a programme inside a virtual environment from a script

一个人想着一个人 提交于 2020-01-03 04:53:09
问题 I have set up the google assistant sdk on my Raspberry Pi as shown here: https://developers.google.com/assistant/sdk/prototype/getting-started-pi-python/run-sample Now in order to re-run the assistant I have worked out the two commands are $ source env/bin/activate and (env) $ google-assistant-demo however I want to automate this process into a script that I can call from rc.local (followed by an & ) in order to make the assistant boot from start up. However if I run a simple script #!/bin

How do I use Google assistant to trigger my application

ぃ、小莉子 提交于 2020-01-02 20:17:09
问题 I am trying to build a simple app which can be triggered by google assistant. Like if the users say, "Hey Google, Open TestApp" or "Hey Google, perform xyz from TestApp". What would be the best approach? Dialogflow? 回答1: Saying "Okay, Google - do [something] with [your app]" in order to open your app to fulfill a query is called a Google Voice Action and you can add these to your app quite easily. See the documentation here for full details. Keep in mind - for these to work, your app does

Actions on Google - handling carousel responses from dialogflow

蓝咒 提交于 2020-01-02 08:25:34
问题 I've created a simple Google Assistant interface using DialogFlow with several Carousels that I want to be able to chain together. Whenever I touch a carousel option though, it always goes to the first Intent that has the actions_intent_OPTION event specified. I can get to all of my screens using voice commands, but I'm not sure how to process the touch commands to send the user to right Intent. Current code in webhook: const party = 'party'; const cocktail = 'cocktail'; const SELECTED_ITEM

Dialogflow disable Google Assistant

杀马特。学长 韩版系。学妹 提交于 2019-12-31 05:35:09
问题 I am trying to enable webhook fulfillment in my Dialogflow agent. However, whenever I go to input the URL of my service, I get an error saying You can use only https:// in fulfillment url when "Google Assistant" integration enabled . I have no interest in using the Google Assistant integration. So how can I disable it so that I can send webhooks to my http:// service? Thanks 回答1: I just had the same issue, if you don't need a secure connection via HTTPS here is how to remove Google Assistant

Embed the Google assistant in a Windows computer - device instance ID not generated while running the sample code

心已入冬 提交于 2019-12-25 19:46:16
问题 I am trying to get Google Assistant installed on a Windows computer, following the instructions from Set Up Hardware and Network Access (Google Assistant SDK). I have been able to complete all but the last step. I am at the point of running the sample code. https://developers.google.com/assistant/sdk/guides/service/python/embed/run-sample?refresh=1. In this last step a 'device instance ID' should be generated, but that does not happen. See the screenshot: The error message states that the