Git Product home page Git Product logo

balena-google-assistant's People

Contributors

janvda avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

balena-google-assistant's Issues

starting the assistant takes a long time ... and doesn't answer anymore.

When asking any question, the assistant replies with "something went wrong, try again in a few seconds".

Here the log

22.06.19 10:50:58 (+0200) Starting service 'google_assistant sha256:1f510af2acf3b6b5c15a5a2e9a46eca062173b09981a8048afb673de137a2c78'
22.06.19 10:50:59 (+0200)  google_assistant  Creating the /root/.config/google-oauthlib-tool/credentials.json using device service variable GOOGLE_ASSISTANT_CREDENTIALS ...
22.06.19 10:50:59 (+0200)  google_assistant  Starting googlesamples-assistant-hotword ...
22.06.19 10:50:59 (+0200) Started service 'google_assistant sha256:1f510af2acf3b6b5c15a5a2e9a46eca062173b09981a8048afb673de137a2c78'
22.06.19 10:53:14 (+0200)  google_assistant  device_model_id: pi3three-balena-pi3three-balena-x3hx44
22.06.19 10:53:14 (+0200)  google_assistant  device_id: AEC9EB636CF0AB0ED212158FCDE7E682
22.06.19 10:53:14 (+0200)  google_assistant  
22.06.19 10:55:30 (+0200)  google_assistant  Registering...Done.
22.06.19 10:55:30 (+0200)  google_assistant  
22.06.19 10:55:30 (+0200)  google_assistant  ON_MUTED_CHANGED:
22.06.19 10:55:30 (+0200)  google_assistant    {"is_muted": false}
22.06.19 10:55:30 (+0200)  google_assistant  ON_MEDIA_STATE_IDLE
22.06.19 10:55:30 (+0200)  google_assistant  ON_START_FINISHED
22.06.19 10:55:30 (+0200)  google_assistant  

error in hotword.py when launching googlesamples-assistant-hotword

log

(env) root@f0bc010:/# googlesamples-assistant-hotword --project-id pi3three-balena --device-model-id pi3three-balena-pi3three-balena-x3hx44 --credentials /credentials.json
Traceback (most recent call last):
  File "/env/bin/googlesamples-assistant-hotword", line 10, in <module>
    sys.exit(main())
  File "/env/lib/python3.5/site-packages/googlesamples/assistant/library/hotword.py", line 106, in main
    **json.load(f))
TypeError: __init__() got an unexpected keyword argument 'installed'
(env) root@f0bc010:/# 

make it easier to create the credentials

The step to create the credentials is rather cumbersome.
It requires manual copy pasting the created credentials json string into the device variable.

The idea is to eliminate this manual copy paste step.

Instead the created credentials will be stored on a volume (so it persists between restarts)
and at start will be copied to the right location (if needed).

For backwards compatibility we will still support the device variable GOOGLE_ASSISTANT_CREDENTIALSwhich will overrule any credentials stored on shared volume.

Audio (via earphone) is silent.

The audio I hear is very silent.
It is still understandable but it would be nice if we could increase the volume.

Note that I have set sound level to maximum using alsamixer in service "GOOGLE_ASSISTANT" but this didn't make much different:

┌───────────────────────────────────────────────────────────────────────────────────────────────── AlsaMixer v1.1.3 ──────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Card: bcm2835 ALSA                                                                                                                                                                          F1:  Help               │
│ Chip: Broadcom Mixer                                                                                                                                                                        F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All                                                                                                                                                    F6:  Select sound card  │
│ Item: PCM [dB gain: 4.00]                                                                                                                                                                   Esc: Exit               │
│                                                                                                                                                                                                                     │
│                                                                                                                                                                                                                     │
│                                                                                                                                                                                                                     │
│                                                                                                                                                                                                                     │
│                                                                                                        ┌──┐                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        │▒▒│                                                                                                         │
│                                                                                                        ├──┤                                                                                                         │
│                                                                                                        │OO│                                                                                                         │
│                                                                                                        └──┘                                                                                                         │
│                                                                                                        100                                                                                                          │
│                                                                                                     <  PCM   >                                                                                                      │
│                                                                                                                                                                                                                     │

audio input setup issue

My USB mic is identified as HW:0 and my DAC as HW:1 when I create a file .asoundrc and asound.conf it i working fine to capture sound with arecord. But when I reboot the asoundrc id modified and the asound.conf is deleted.

Don't know why my config audio is reset at boot

thanks,
cheers.

Create Credential Error

Hello,

i'm trying to get this done but always having this issue:

`root@63e465d:/# /create_credentials.sh
Traceback (most recent call last):
File "/env/bin/google-oauthlib-tool", line 8, in
sys.exit(main())
File "/env/lib/python3.5/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/env/lib/python3.5/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/env/lib/python3.5/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/env/lib/python3.5/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/env/lib/python3.5/site-packages/google_auth_oauthlib/tool/main.py", line 100, in main
scopes=scope
File "/env/lib/python3.5/site-packages/google_auth_oauthlib/flow.py", line 197, in from_client_secrets_file
client_config = json.load(json_file)
File "/usr/local/lib/python3.5/json/init.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/local/lib/python3.5/json/init.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The credentials =
cat: /root/.config/google-oauthlib-tool/credentials.json: No such file or directory

You should now restart the google_assistant service !`

I can not find my fail.

Do you have any Idea?

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.