Giter Site home page Giter Site logo

petrix / sound-controlled-intergalactic-teddy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lassse/sound-controlled-intergalactic-teddy

0.0 1.0 0.0 550 KB

Infinite runner game where you use your voice and sounds to play.

HTML 0.65% JavaScript 99.04% CSS 0.31%

sound-controlled-intergalactic-teddy's Introduction

Sound Controlled Intergalactic Teddy

Avoiding space monsters with sounds

Sound Controlled Intergalactic Teddy is an infinite runner game where you use your voice and sounds to control Teddy’s movements. If you need to jump over a green slimy alien you say “Ohhh” and to duck you simply clap your hands.

Using machine learning we have taught the game to understand and differentiate the sounds. For the game to be able to recognise and distinguish the sounds, we trained it by recording a lot of diverse "ohhh”s and claps which made it robust and easy for anyone to play.

The installation was displayed in Namur, Belgium at KIKK Festival 2017 as a part of Little.KIKK.

Støj is a creative coding studio run by (Andreas Refsgaard & Lasse Korsgaard)

Game graphics: Amalie Kvistgaard

Demo

You can play the game here: demo (Make sure to allow microphone)

Installation

To install, clone this repository and then run yarn in Terminal. This will install all the dependencies. Once these are installed, run yarn watch - this will start a local server on your machine and open up the page in your browser and you're ready to play!

Training interface

Be sure to allow the browser to use the microphone, otherwise it will not work. Also be aware that due to browser safety issues, this will only work on localhost and https:// domains.

Usage

As per default the machine is trained on Ohhh and Clap sounds. If you would like to train it to recognize new sounds you can open up the training interface.

To open the training interface simply hit Shift + TAB on your keyboard.

Training interface

Settings

In the training interface you can load, save and reset training data. You can also control the threshold for how sensitive the microphone should be. if you are attempting to record some new training examples, but find that nothing happens, it could be because the threshold is too high. Click Change Threshold and set it to a lower number and try again. If the sound is loud enough the sound bars on the right will turn blue.

Training

You can clear all training data by clicking Clear All.

Now say you want to train the sound that should trigger a jump. Click and hold down the Train button under Jump and say the sound a few times (around 10-20 samples should be sufficient). Make sure the sound you're making is short and loud enough for the sound bars to turn completely blue, otherwise the sound is not recorded.

License

The MIT License (MIT)

Copyright 2017 Støj

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Sound Controlled Intergalactic Teddy makes use of the following libraries:

sound-controlled-intergalactic-teddy's People

Contributors

lassse avatar petrix 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.