Giter Site home page Giter Site logo

mirrorproject's Introduction

Sean's Mirror + Voice Recognition + SoundCloud + Character moving project

1: Mirror Credits to : http://michaelteeuw.nl/post/84026273526/and-there-it-is-the-end-result-of-the-magic Basically wanted to make a mirror that had date, time, and weather information.

2: Voice Recognition I then decided to add a voice recognition to automate stuff in my room. I used Annyang, which uses Google API

3: SoundCloud I added this to combine with Voice Recognition, so basically I can command it to: start, pause, skip music.

4: Character I used MMD (MikuMikuDance) to create a moving character model. Apparently RPi does not support webGL, and so I decided to 2D. So what I did was just take frame images and play it using javascript.

Steps I took:

  1. Got the basic interface working with the Magic Mirror stuff that I got from Michael Teeuw.

    • Pretty much did a git pull on his project, adjusted some stuff in config file and removed stuff I didn't want.
  2. Used speech recognition engine that Annyang provided. https://www.talater.com/annyang/

    • Was also easy to use.
  3. I then added SoundCloud using it's API.

  4. I then combined the speech recognition and SoundCloud so that I can command it to Start, Stop, and Skip songs.

  5. For character, I used MMD (MikuMikuDance). After doing some research though, I learned that Raspberry Pi doesn't support webGL. So I then captured my characters movements and saved it as AVI file. After that, I used VLC player to capture and save every other frame. In my character.js, I used the setInterval function to constantly run my character. Since all my pictures had a black background, I would have been okay with it since my projects background was black. But just in case, I decided to convert the black background to transparent using imageMagick. I created a batch script that searched through all my black background and convert it to transparent.

mirrorproject's People

Contributors

atsuzu avatar

Watchers

James Cloos avatar  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.