Code Monkey home page Code Monkey logo

alexachipdeprecated's People

Contributors

hkp avatar renekliment avatar sammachin avatar smiller171 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  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  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

alexachipdeprecated's Issues

Errors on running setup_gpio.sh

Hi Sam,

Thanks for taking this project on and devoting your time to it - it is much appreciated!

I ran though your setup guide and am stuck on trying to setup the gpio pins. Here are the errors I get:

409
tee:  /sys/class/gpio/export: Invalid argument
cat:  /sys/class/gpio/gpio409/direction: No such file or directory
cat:  /sys/class/gpio/gpio409/value: No such file or directory

If I run the main.py skipping the gpio setup, I receive this error:

Traceback (most recent call last):
    File "main.py", line 12, in <module>
        from memcache import Client
ImportError: No module named memcache

Running apt-get install memcached tells me that I already have the latest version.

Do you have any ideas on how I could proceed?

Support for wake word?

Are you guys going to add support for the wake word "Alexa"? On the official amazon instructions, it says that the wake word is now added.

AVS response time

Hi Sam, like so many others I really appreciate your project. I've built it twice now on different gen RPIs. For my use case I have alexa respond to the push of an IoT button. Unfortunately response time is 5-10 sec, sometimes longer. I asked a question on the dev forum (https://forums.developer.amazon.com/questions/30086/streaming-audio-to-avs-to-improve-unacceptable-res.html), and amazon replied with help on how to do this, but it will probably take me weeks to figure it out. I was wondering if you might consider modifying your alexa function in main.py to enable chunked streaming vs file input to AVS. It would benefit so many of us hobbyists out there. I will be trying to figure it out, but my python skills are at a beginner level. Thanks again for your project!

Main.py never printing ready

Alexa says "hello" but then it never prints ready to the console and pressing the button and saying commands doesn't work either, and when i cancel the script it says:

Traceback (most recent call last):
File "main.py", line 112, in
val = f.read().strip('\n')
KeyboardInterrupt

main.py resource busy, failing line 126

Hey guys,

I've been working on getting together the chip ECHO setup courtesy of the following post:

http://www.instructables.com/id/An-Echo-Device-Using-the-CHIP-9-Computer/?ALLSTEPS

It's been pretty smooth sailing so far but I've run into an issue. I am getting the following error upon running "sudo python3 main.py". Alexa says "Hello" and then she crashes when I press a button to record, the following error pops up:

ALSA lib pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable
Traceback (most recent call last):
**File "main.py", line 126, in **
inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NORMAL)
alsaaudio.ALSAAudioError: Invalid argument [default]

I've replaced the main.py file with jitto's edits as instructed and tested the audio recording and playback on "test.wav", audio is crisp and clear and microphone seems to work fine. Any ideas how I can begin to troubleshoot?

After initial response, Alexa will not take further action.

So not sure how this should work or if it will.
For instance if you ask alexa to read you the shopping list, she will say "Here are the 5 most recent items" and then the interaction ends, before she lists the items.

The same is true if she calls another service, like Audible - If you ask her to play a book, she will recite the title and information of the book, and then the audio stops.
Same if you ask her to read one of the Kindle Books. The interaction stops after she responds to the the initial request.

Any thoughts/ways this can be expanded? Does this work on the PI version?

Transfer to org

Hey. Could you transfer this repo under the organization and give me some permissions?
When we're ready (soon hopefully), I'd like to invite users to the new repo, deal with issues at stuff.

Thanks!

Auth issue

Just figured this out as I was opening the issue, if anyone is using an RPI and referencing both https://github.com/amzn/alexa-avs-raspberry-pi and AlexaCHIP you might have made the mistake I did and got the below when you went to authenticate.

"... Error Summary
400 Bad Request
The redirect URI you provided has not been whitelisted for your application. Please add your redirect URI in the 'Allowed Return URLs' section under 'Web Settings' for your Security Profile on Amazon Developer Portal."

In your security profile for AVS, under Web Settings and 'Allowed Origins', make sure you have 'http://localhost:5000'. And in 'Allowed Return URLs', include 'http://localhost:5000/code' vs 'http://localhost:5000/authresponse'.

I was thinking it wasn't working because of the http vs https because when hovering over the question mark for 'Allowed Origins', it says: "...Origins must use the HTTPS protocol... ". Also, the directions in https://github.com/amzn/alexa-avs-raspberry-pi in section 6.1 specify using https because they include SSL stuff. Anyway, after catching my error it works fine with http.

AttributeError: Wave_read instance has no attribute '__exit__'

Hi,

I'm trying to get this working. I've done the hardware mod (is there a way to test if it's successful?). Every time I run main.py I hear "hello" and then when I connect together Pins 14 and 1 on U14 I get the following error:

Traceback (most recent call last):
  File "main.py", line 128, in <module>
    with wave.open('beep.wav', 'rb') as f:
AttributeError: Wave_read instance has no attribute '__exit__'

Any ideas would be appreciated. Also, I had problems installing alsa based on your instructions. I had to install mpg321 independently.

Thanks!

Handling of blank audio

Hi,

LOVE this - finally got it working.. (I'm new to GIT and for some reason the checkout I did din't have the latest code).
Now I'm working, there are two niggles:
1/ I don't get the beep every time I press the button. I always get it the first time, but almost never from then on.
2/ If you don't say anything & end up writing a blank recording, you get an error:

Traceback (most recent call last):
  File "main.py", line 119, in <module>
    alexa()
  File "main.py", line 99, in alexa
    data = r.content.split(boundary.encode('utf-8'))
UnboundLocalError: local variable 'boundary' referenced before assignment

It'd be great to catch this error & handle it seamlessly, though from my reading of other's attempts, echoing this out to say "no audio" to the terminal might be good too, as it'd indicate MIC problems.

I really ought to be able to fix these myself & contribute - time to learn Python!!

Cheers,

James

mpg321 command not found

So I'm "almost" there.

When I run the main.py file, it pauses for a while and the I receive...

sh: mpg321: command not found.

Note: I'm on Kernel 4.4.
Note2: I did have to change my gpio directories to /gpio1016/ instead of the /gpio409/ as referenced in the original gpio_setup file. This is also references in the main.py file.

[Enhancement] Improve the setup guide + Bringing up to par with AlexaPi

Two things to bring the AlexaCHIP version up to par with the AlexaPi. Is there a possibility to bring up the CHIP version to par with the Pi version in terms of LED and internet check routine?
Also would be great if the installation guide would address audio configurations, how to use the pin's to connect a speaker and microphone or how to use a USB Sound Card, both in regards to connection and in software,

Kernel4.4 Error on running main.py

Hello Sam,

I run main.py then Alexa says hello and the script crashes. I use a microsoft lifecam vx 700 webcam as mic. I edited /etc/asound.conf and usr/share/alsa/alsa.conf file as it is in the project's description.

I verified the card number (1) and the device number (0). It is running kernel version 4.4 Jessie.
I can save and play audio with arecord/aplay but when I run python main.py I get this error:

ALSA lib pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable
Traceback (most recent call last):
File "main.py", line 126, in
inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NORMAL)
alsaaudio.ALSAAudioError: Invalid argument [default]

Help wanted. Use of USB mic numb & the TRRS jack for audio output...

I am getting the below error. I am using a USB microphone numb and the TRRS jack for audio output. I would prefer not to modify and score the CHIP board. Is there a way of not getting this error if you DON'T modify the board?

NOTE: I have audio capture working and audio output working with arecord / aplay; Just get this error when I run python main.py:

Traceback (most recent call last):
File "main.py", line 127, in
with wave.open('beep.wav', 'rb') as f:
AttributeError: Wave_read instance has no attribute 'exit'

I am using a USB: C-Media Electronics, Inc. CM108 Audio Controller (Kinobo - USB 2.0 Mini Microphone "Makio" Mic from Amazon)

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.