GithubHelp home page GithubHelp logo

mautini / google-assistant-java-demo Goto Github PK

View Code? Open in Web Editor NEW
63.0 63.0 31.0 333 KB

A simple Google Assistant Client in Java

License: GNU General Public License v3.0

Java 100.00%
assistant google google-assistant google-assistant-sdk grpc java oauth2-protocol protocol-buffers

google-assistant-java-demo's People

Contributors

dnaport22 avatar mautini avatar tomjohn9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

google-assistant-java-demo's Issues

configure silence timeout

Hi,
I want to broadcast voice message.
When I give audio byte array to audioRequestAssistant function, if there is silence, I don't send audio after silence.
How to configure silence timeout for audio command?

google.assistant.embedded.v1alpha2

Hi :
Google Assistant SDK Version is upgrade from v1alpha1 to v1alpha2 now.
Do you think about this demo to update to v1alpha2 ?

Thanks.

Not able to register the device

Hi,
I am not able to register the device, PFB logs:
Exception in thread "main" com.mautini.assistant.demo.exception.DeviceRegisterException: Unable to register the device model
at com.mautini.assistant.demo.device.DeviceRegister.lambda$1(DeviceRegister.java:65)
at java.util.Optional.orElseThrow(Unknown Source)
at com.mautini.assistant.demo.device.DeviceRegister.register(DeviceRegister.java:65)
at com.mautini.assistant.demo.GoogleAssistantClient.main(GoogleAssistantClient.java:53)

I followed the steps mentioned in readme.
Could you please support me?

Authorization Error Error 401

when I run the project this error appears in the browser, I'm not able to get authorization code. is there any other way to get it and paste in the console?

Thanks! Android?

Hi, thank you very much for the great work!! Any chance you can port it to Android? That would be truly awesome :)

LatLng Proto

Hi there,

I would like to setDeviceLocation in DialogStateIn.Builder, however I am unable to due to this project missing LatLng.java and LatLngOrBuilder.java.

I have tried manually compiling the LatLng protobuf to Java myself, but they do not work.

Is there a way to set the device location without these files? If not, how can I add LatLng and LatLngOrBuilder?

Any help would be much appreciated!

its not working ..

While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length

How do you run the app?

I updated src/main/resources/reference.conf with my clinetid, client secret

Built with:
mvn package

Tried to run using:
mvn exec:java

But i get this error:
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project google_assistant_sdk_test_java: The parameters 'mainClass' for goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java are missing or invalid -> [Help 1]
[ERROR]

Should i be passing some parameters?

No response from API

After saying something, it simply says "No response from API."

15:54:09.321 [main] INFO  com.mautini.assistant.demo.client.audio.AudioRecorder - Listening, tap enter to stop ...

15:54:24.634 [Thread-6] INFO  com.mautini.assistant.demo.client.audio.AudioRecorder - End of the capture
15:54:24.637 [main] INFO  com.mautini.assistant.demo.api.AssistantClient - Requesting the assistant
15:54:25.535 [grpc-default-executor-2] INFO  com.mautini.assistant.demo.api.AssistantClient - Event type : END_OF_UTTERANCE
15:54:26.553 [grpc-default-executor-2] INFO  com.mautini.assistant.demo.api.AssistantClient - End of the response
15:54:26.553 [main] INFO  com.mautini.assistant.demo.GoogleAssistantClient - No response from the API
15:54:26.568 [main] INFO  com.mautini.assistant.demo.client.audio.AudioRecorder - Listening, tap enter to stop ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.