Coder Social home page Coder Social logo

aanon4 / alexa-docker-alpinelinux Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 434 KB

Alexa Smart Screen build for Docker (AlpineLinux)

Python 1.14% Dockerfile 63.89% Shell 34.97%
alexa alexa-voice-service linux alpine-linux docker smart-screen smart-speaker

alexa-docker-alpinelinux's Introduction

Alexa Smart Screen build for Docker (AlpineLinux)

The Alexa Smart Screen SDK (by Amazon) provides a simple way to build screen based Alexa devices (Echo Show like things). As the build steps are tricky and tedious, this Docker wraps it all up with Alpine Linux to make it much easier for someone to try.

Usage

The repository contains a RUN script which will run the Docker image correctly configured. The essential docker run command is as follows:

docker run --name alexa
    --mount type=bind,source=$PWD/run/database,target=/alexa/database
    --mount type=bind,source=$PWD/run/config,target=/alexa/config
    --mount type=bind,source=$PWD/run/GUI,target=/alexa/GUI
    --mount type=bind,source=/dev/snd,target=/dev/snd
    --network host
    --env HOSTIP="..."
    --privileged \
    alexa /alexa/run.sh

There are various binds which are important for successful operation:

  • /alexa/database

Binds to an empty directory where various SQLite databases are created. Without this, everytime the application is restarted, it will have to reauthenticate with the Alexa Voice Service.

  • /alexa/config

Binds to a directory holding your configuation. If these configuration files don't exists, they will be created on first-run. You can then edit them.

  • /alexa/GUI

Binds to an empty directy where the application will place HTML and JS files. These files are used to display the smart screen in a browser.

  • /dev/snd

Binds to the sound device on the host, provides microphone and speaker access for Alexa.

Notes

Network

Tested using host networking. The server attaches to all networks by default - simple but not terribly secure. The actual host ip is passed via the HOSTIP environment and is used to modify the Javascript loaded by the web browser.

Sound

Sound is provided using the hosts /dev/snd devices, and is configured in the container's /etc/asound.conf file. By default, sound is played and captured using hardware device 1. This can be changed by binding an alternative configuration to this filename.

Authentication

...

See Also

alexa-docker-alpinelinux's People

Contributors

aanon4 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

alexa-docker-alpinelinux's Issues

Wakesound

Will I get the wake sound in this version? When I say "Alexa" I should hear a sound, which actually doesn't happen in other similar dockerized apps.

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.