Git Product home page Git Product logo

androidthings-googleassistant's People

Contributors

fleker avatar proppy 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

Watchers

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

androidthings-googleassistant's Issues

Accessing pre-defined traits on Android Things

https://codelabs.developers.google.com/codelabs/androidthings-assistant/index.html?index=..%2F..%2Fio2017#5

Running into some weird issues with step 5. Enabled traits in the console, ran through the terminal commands listed and authenticated, but any time I tell the device "turn on", it says power controls is not yet supported. Normal assistant commands (like 'what time is it') work as expected, and not seeing the traits in the list command, either, though I see them on the actions console page.

(env) ➜ MachineLearningDemo git:(master) ✗ googlesamples-assistant-devicetool --project-id ptr-machine-learning-demo list --model
Device Model ID: ptr-machine-learning-demo-machinelearningdemo-dvuzw4
Project ID: ptr-machine-learning-demo
Device Type: action.devices.types.LIGHT
No traits

After a while I created a new project because I messed up some stuff trying to work via the terminal, but managed to connect a device to the assistant with one model, then updated it via this command to enable traits.

googlesamples-assistant-devicetool --project-id project_id register --model model_id --product-name demolight --device instance_id --client-type SERVICE --type LIGHT --manufacturer test --trait OnOff

Kind of wonky, and not in the code lab, but it was the only way I could get things to work.

Audio glitches and low volume

Hi guys, got this working but I think there's a problem with audio.

After asking a question, the speaker pops loudly (as if it's powering on) and the response voice is very quiet. This is running the 'step2-volume-control' code. I've recorded a video to demonstrate.

Video

The same hardware running the Raspbian-based Python code has no issues. I've also attached a full log of one question/response, there are some audio-related errors in there, but I couldn't say for sure that they're related.

Thanks,
Joe

No "REGISTER MODEL"

I do not see a REGISTER MODEL link at all in the actions page, does it still exist?

Google Assistant not responding

I am using VoiceHat + Pico Pro iMX7.d and changed all the pins to correctly correspond the ones in th Pico Pro. Everything is correct as far as I know, but Google Assistant does not respond.
When I disable any Activity Control (such as Device Control) it answers: "Give me permission to help you". But as soon as I enable it again and try with any phrase it won't respond.

error compiling

I get this error compiling
when I run this command

./gradlew assembleDebug

Here's the error. credentials.json exist

Task :step1-start-here:compileDebugJavaWithJavac
/Users/Ron/Downloads/androidthings-googleassistant/step1-start-here/src/main/java/com/example/androidthings/assistant/AssistantActivity.java:337: error: cannot access UserCredentials
.withCallCredentials(MoreCallCredentials.from(
^
class file for com.google.auth.oauth2.UserCredentials not found
1 error

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':step1-start-here:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Documentation link

I tried to follow the documentation and got stuck in the point

  1. Open a terminal and follow the instructions to configure a new Python virtual environment and install the `google-assistant-library.

The link in this point redirects to a general page (Introduction to the Google Assistant Library) rather than the instructions.
I think it misses the explanation what it means to open the terminal and exact steps to be followed.
Is the link really correct?

Compile error (lots of 'cannot find symbol' and 'package does not exist')

On a fresh download of the repo, opening in Android Studio and pressing build, I got a lot of errors, seemingly of missing dependencies.

Executing tasks: [:step1-start-here:assembleDebug]
<snip...>
:step1-start-here:compileDebugJavaWithJavac
/Users/joerick/Downloads/androidthings-googleassistant-master/step1-start-here/src/main/java/com/example/androidthings/assistant/AssistantActivity.java:36: error: cannot find symbol
import com.google.android.things.contrib.driver.button.Button;
^
symbol: class Button
location: package com.google.android.things.contrib.driver.button
/Users/joerick/Downloads/androidthings-googleassistant-master/step1-start-here/src/main/java/com/example/androidthings/assistant/AssistantActivity.java:45: error: cannot find symbol
import com.google.protobuf.ByteString;
^
symbol: class ByteString
location: package com.google.protobuf
/Users/joerick/Downloads/androidthings-googleassistant-master/step1-start-here/src/main/java/com/example/androidthings/assistant/AssistantActivity.java:46: error: package io.grpc does not exist
import io.grpc.ManagedChannel;
^

etc....

Full log here

It appears the build is not finding dependencies declared in the :shared build.gradle. Indeed, my current workaround is to paste the :shared dependencies into step's build.gradle dependencies section.

e.g. step1-start-here/build.gradle

...

dependencies {
    compileOnly 'com.google.android.things:androidthings:0.6-devpreview'
    implementation 'com.google.android.things.contrib:driver-button:0.4'

    implementation 'io.grpc:grpc-okhttp:1.2.0'
    implementation 'io.grpc:grpc-protobuf-lite:1.2.0'
    implementation 'io.grpc:grpc-stub:1.2.0'
    implementation 'io.grpc:grpc-auth:1.2.0'

    implementation 'javax.annotation:javax.annotation-api:1.2'

    implementation('com.google.auth:google-auth-library-oauth2-http:0.6.0') {
        exclude group: 'org.apache.httpcomponents', module: 'httpclient'
    }
    implementation project(':shared')
    compileOnly 'com.google.android.things:androidthings:0.6-devpreview'
}

Any idea why my project isn't finding the shared dependencies by default?

androidthings-peripherals: Broken link in documentation

First: It seems like issue submission is disabled for the androidthings-peripherals and androidthings-weatherstation repositories. Is this intended?

I found a broken link in the androidthings-peripherals codelab:
Step 10.: Link to the Simple PIO Blink project is broken. I think the right one is https://github.com/androidthings/sample-simplepio/tree/master/java/blink instead of https://github.com/androidthings/sample-simplepio/tree/master/blink

Uploading actions.json command uses 'test' instead of 'update'

Tried using the gaction command provided by the code lab for uploading the blinky LED actions sample, but it wasn't being recognized by the Android Things device.

MachineLearningDemo git:(master) ✗ /Users/paul/Downloads/gactions test --action_package actions.json --project machine-learning-demo-cddf4
Pushing the app for the Assistant for testing...
Your app for the Assistant for project machine-learning-demo-cddf4 is now ready for testing on Actions on Google enabled devices or the Actions Web Simulator at https://console.actions.google.com/project/machine-learning-demo-cddf4/simulator/ 

Switched the word 'test' to 'update' after some digging in the documentation, and it allowed my device to use the action.

(env) ➜  MachineLearningDemo git:(master) ✗ /Users/paul/Downloads/gactions update --action_package actions.json --project machine-learning-demo-cddf4
Your app for the Assistant for project machine-learning-demo-cddf4 was successfully updated with your actions. Visit the Actions on Google console to finish registering your app and submit it for review at https://console.actions.google.com/project/machine-learning-demo-cddf4/overview

Requesting for code execution guidance.

Hello,

I have couple of questions regarding running the repo on Raspberry Pi 3.

Aim:
To run androidthings-googleassistant apk on Raspberry Pi 3 by dumping the apk file from Android Studio installed on Windows 7.

So far:
I have installed Android Studio on Windows 7 and cloned the repo. I was following the steps provided in readme to run the app on Raspberry pi.

  1. pip install google-auth-oauthlib[tool]
    google-oauthlib-tool --client-secrets client_secret_NNNN.json
    --credentials app/src/main/res/raw/credentials.json
    --scope https://www.googleapis.com/auth/assistant-sdk-prototype
    --save
    Worked in windows 7 terminal. After running this command, I did check the credentials.json file. All the fields in json file had been updated. After this, I did click on run in Android Studio, I got the following error.

error_info

  1. adb fails in Android studio but works fine in terminal. I receive the following error in Android Studio. I tried to resolve this error by killing the adb process in task manager and restarting Android studio. Which didn't help my cause.

adb_error_info

Please, provide some information that would help me to solve this problem. Currently, I'm running this app sample-button on Raspberry Pi 3 without any issues.

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.