GIF YOUR WORLD: A Sound Powered GIF Generator from Your Device’s Microphone Input | #GIFs @giphy @Github #javascript

Thanks a ton to Isaac who showed off this project on last week’s Show & Tell:

Using the Giphy and wordassocioations.net APIs, in conjunction with built in microphone capabilities in p5.js, this application can generate a never ending stream of gifs based on audio input.

The program takes a 3 second sample from the user’s computer mic and determines the “energy level” based on the loudness of the user’s environment. Based on predefined input words that are set to three energy level variables high, mid and low such as “walking”, “jogging”, and “sprinting”, the program will enter the corresponding input word into Gihpy’s API and spit out a random gif within the search for that word. For example if the energy level was high and the corresponding input word was “sprinting”, a search for sprinting would be entered into Giphy’s database and a random result would be selected. At this point, the program takes the selected word and using the Word Asssociations API, enters it into the database, returns ten results related the word, picks a word at random, enters it into a Giphy search. For example if the word “sprinting” was entered, after a sprinting related gif is shown, the word sprinting is searched through the Word Associations API, ten words related to sprinting are returned and one of them is chosen at random, say the word “tired” at which this new word is entered into a new Giphy search where a random gif is selected and shown. The process loops on for a minute until the microphone takes another 3 second sample of the user’s environment and starts the process from the beginning.


Enable your device’s microphone and then click here to GIF YOUR WORLD:

You can check out the full repo here on Github – amazing!

Join 7,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython in 2018 – Python on Microcontrollers is here!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/

Maker Business — American startups are having an increasingly smaller share of the market

Wearables — Switch the advantage

Electronics — Don’t float!

Biohacking — Optimizing the Warm Up

Python for Microcontrollers — CircuitPython 3.0.0 released!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !

No Comments

No comments yet.

Sorry, the comment form is closed at this time.