GithubHelp home page GithubHelp logo

volt-sama / personal-assistant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from augustogoncalves/personal-assistant

0.0 1.0 0.0 80 KB

Raspberry Pi 3 + NodeJS + Electron

License: MIT License

JavaScript 99.60% HTML 0.40%

personal-assistant's Introduction

Raspberry Pi 3 Personal Assistant

Basic voice activated app created for Raspberry Pi 3 with NodeJS + Electron. Uses Annyang and Responsive Voice JavaScript libraries.

See it in action

Check this forum post with video.

Setup

  1. Download Raspbian Jessie

  2. Prepare the SD Card

  3. Boot!

  4. Use a monitor & keyboard & mouse to connect to the wifi

  5. Expand SD Card - Otherwise will be only 3.4 GB of space

  sudo raspi-config
  sudo reboot
  df -h
  1. Update & Upgrade
  sudo apt-get update
  sudo apt-get dist-upgrade
  1. Install NodeJS
  wget https://nodejs.org/dist/v4.3.2/node-v4.3.2-linux-armv6l.tar.gz 
  tar -xvf node-v4.3.2-linux-armv6l.tar.gz 
  cd node-v4.3.2-linux-armv6l
  sudo cp -R * /usr/local/
  1. Install audio settings
  sudo aptitude install pulseaudio
  sudo nano /etc/modules   
Add line: 
  snd_bcm2835
CTRL + O (save)  CTRL + X (exit)
  sudo apt-get install mplayer
  sudo amixer -c 0 cset numid=3 1
  1. Copy the ‘personal-assistant’ code (easier with a flash-drive).

  2. Install packages (basically just electron package, aprox. 60MB)

npm install
  1. Setup the personal-assistant as autostart
Create a new file
  sudo nano /home/pi/personal-assistant.sh
  
Add the following to this file (the folder should be the same as step 9)
  !#/bin/bash
  cd /home/pi/Documents/personal-assistant && npm start
CTRL + O (save)  CTRL + X (exit)

Set system as owner
  sudo chown pi:pi /home/pi /personal-assistant.sh
  sudo chmod +x /home/pi/personal-assistant.sh

add this .sh (script) to startup
  sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart.sh

add the following line:
  /home/pi/personal-assistant.sh &

personal-assistant's People

Contributors

augustogoncalves avatar

Watchers

James Cloos avatar

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.