GithubHelp home page GithubHelp logo

willhaley-bne / 2018picamp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 1.06 MB

These are some simple scripts that I wrote for a Raspberry Pi Summer Camp to be used with the Google's AIY Google Voice Kit.

Python 100.00%
raspberry-pi aiy-voice python

2018picamp's Introduction

2018 Pi Camp

These are some simple scripts that I wrote for a Raspberry Pi Summer Camp to be used with the Google's AIY Google Voice Kit.

Inspired by Simone Giertz, I decided to make the scripts as dumb and useless as possible.
It will sort of be the theme of the camp: lets see if we can figure out the dumbest things we can make the device do.

Pre-reqs:

Below are a list of packages you'll need to add to the pi ( via apt-get ) so everything will work. I hope this is a complete list, but there maybe something I missed.

  • mpg321 (to play the mp3's)
  • python-alsaaudio (to let python monkey with the volume)

Startup-x scripts:

I wanted to make sure that the students in the summer camps didn't have to have the AIY app to know what the IP address of the Pi after initial set up. Therefore, I made a couple of startup scripts that either slacked or said the IP of the device at boot up.

To get the script to always run after boot I added the following to the root crontab.

@reboot python3 /home/pi/startup.py

You will need to change the path of the script to match where you put your start up.

Below is the list of scripts and a brief description:

  • startup-slack.py - sends a slack message that includes the name of the device and the IP address
  • startup-voice.py - speaks the IP address
  • one/muppets_are_still_cool.py - press button play one of 20 random muppet mp3's.
  • one/press_button_challenge.py - taunts you to press the button until it gets tired of you pressing the button.
  • two/bleep.py - adds a bleep sound effect in a sentence you say to it
  • two/schm.py - you tell it a word and it repeats that word to you plus the word with "schm" added to the front
  • two/translator.py - it doesn't actually do any translating, it just repeats what you just said slower and louder back to you.

I'm working to add more scripts and to document the code before the camp in July.

2018picamp's People

Contributors

willhaley-bne avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

willhaley

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.