google-assist-api

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

StatusCode.UNAUTHENTICATED Google assistant Windows 10

让人想犯罪 __ 提交于 2019-12-13 16:33:00
问题 I am trying to run google assistant on my windows computer and have been following this guide: XDA developers guide When I run: python -m googlesamples.assistant.grpc.pushtotalk and then hit enter so send a command I get the following error: Traceback (most recent call last): File "C:\Program Files\Python36\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Program Files\Python36\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Program Files

Google assistant - Identify audio clip and take an action based on that

元气小坏坏 提交于 2019-12-11 19:04:04
问题 I'm trying to build a Google Assistant app to identify an audio clip that's playing from another device (TV, Radio, etc..) and take an action based on that Audio clip to play another audio clip, YouTube video or open a website in a browser. It will be great to know the possibility of implementing this feature and if there is any available Google resource/ Article that I can use. Thanks, 回答1: I'm sorry to inform you that as of now, you do not get access to the raw recordings of interactions

Sending commands to google assistant using script instead of mic

雨燕双飞 提交于 2019-12-08 03:08:27
问题 I have configured Google Assistant SDK in Raspberry Pi 3 and demo application is working fine. Is there any way to send “OK Google, Example Command” to Google Assistant SDK using Python script? Or it will only take input from Mic? I am planning to write tiny mobile application which will send commands to my Raspberry Pi google assistant application. 回答1: UPDATE : even if it is an old question, here is the latest update. It is now possible using the v1alpha2 version. The gRPC message

How to provide content to be shown on Google-Now-On-Tap?

一个人想着一个人 提交于 2019-12-03 15:51:23
Background I work on an app that can answer to certain queries (phone number queries, and maybe others). Google introduced a new feature on Android 6 , called "Google Now On Tap" (AKA "Assist API") , which allows the user to query about things that are shown on the screen (triggered by long-click on home button or by saying something) without the need to type anything. Google provided a developers tutorial for it, here The problem I can't find any code snippet to show how to prepare the app for it. Only thing that I've noticed is that I can extend from Application class, and add

When installing Google Assistant, I an error “…googlesamples.assistant' is a package and cannot be directly executed…”

回眸只為那壹抹淺笑 提交于 2019-12-01 10:29:46
Alright, have been installing Google Assistant on my Windows 10 PC and have been met with multiple errors, the last of which I solved by going here: Google Assistant Installation on Python3.6 OSX Now, I have everything installed, and want to test my mic and then start using the assistant. However, when I put in the commands python -m googlesamples.assistant.audio_helpers and python -m googlesamples.assistant I get this error: C:\Users\robmak3>python -m googlesamples.assistant C:\Users\robmak3\AppData\Local\Programs\Python\Python36\python.exe: No module named googlesamples.assistant.__main__;

When installing Google Assistant, I an error “…googlesamples.assistant' is a package and cannot be directly executed…”

混江龙づ霸主 提交于 2019-12-01 09:44:07
问题 Alright, have been installing Google Assistant on my Windows 10 PC and have been met with multiple errors, the last of which I solved by going here: Google Assistant Installation on Python3.6 OSX Now, I have everything installed, and want to test my mic and then start using the assistant. However, when I put in the commands python -m googlesamples.assistant.audio_helpers and python -m googlesamples.assistant I get this error: C:\Users\robmak3>python -m googlesamples.assistant C:\Users\robmak3

How to start Google Assistant programmatically?

扶醉桌前 提交于 2019-11-29 14:12:01
I have tried every simple combo I have found but not sure how to do this. I even tried to simulate the home long press but you get google now voice, lookint at logcat it shows this com.google.android.googlequicksearchbox/com.google.android.apps.gsa.staticplugins.opa.OpaActivity but not sure if this is what I am looking for or how to replicate it. yausername This works: startActivity(new Intent(Intent.ACTION_VOICE_COMMAND).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); So I've been trying to do the same thing, and just discovered something when I'm trying to launch the Assistant with an Intent like

How to start Google Assistant programmatically?

时光怂恿深爱的人放手 提交于 2019-11-28 07:50:45
问题 I have tried every simple combo I have found but not sure how to do this. I even tried to simulate the home long press but you get google now voice, lookint at logcat it shows this com.google.android.googlequicksearchbox/com.google.android.apps.gsa.staticplugins.opa.OpaActivity but not sure if this is what I am looking for or how to replicate it. 回答1: This works: startActivity(new Intent(Intent.ACTION_VOICE_COMMAND).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); 回答2: So I've been trying to do the