Moshi Moshi (aka wife alert)

I have a hard time getting in touch with my wife. Usually when I call, the phone is in the other room or switched on vibrate and she hardly ever picks up. I decided to try a little more earnestly to get her attention (this may end up being really good, or really bad). I set out making what I call Moshi Moshi (Japanese for ‘hello’ on the telephone). Now, whenever I call her, our house is filled with a warm embrace of music. She also gets an email letting her know I’m trying to reach her. We’ll see how it works out…

I used Asterisk, Ruby, Sinatra, and an Arduino Due with an ethernet shield to make Moshi Moshi. When I call Kiori a Ruby script makes a post request to a Sinatra app that logs the call in a yaml file, and sends an email to her letting her know I’m calling. Every 10 seconds the Arduino is polling a web page served from the Sinatra app, which pulls data from the yaml file. If a new call comes in, a music file I created is played in our apartment from the Due (which can play audio files). There is a button on the hardware interface she can press to mute it.

moshi moshi (wife alert)
more photos

One of the challenging parts was actually getting the audio file to play more than once on the Due (seems like it should be simple right?). I discovered if I set the pre buffering to 0 (the examples set it to 100) then it worked fine: Audio.begin(88200, 0);

Code:
Continue reading

openFrameworks over phone

I’m dialing into openFrameworks from a landline. My button presses on the phone are displayed on screen as confirmation.

When I call in I’m routed to an Asterisk dial plan that waits for my button presses. When a button is pressed it calls a short Ruby script that makes a post request to a url sending the number of the button. A small Sinatra app receives this number and places it into a yaml file. The Sinatra app is also receiving get requests from openFrameworks. The get route in the Sinatra app returns the last number placed in the yaml file and it’s ID. Openframeworks keeps track of the ID. If it is different then the last ID it knows it is a new number and displays the number on screen.
Continue reading

Deerhoof Infinite Song

I created an infinite Deerhoof song. I took their song Snoopy Waves and chopped it up into it’s respective sections. During the call (917-534-6464 ext. 11) the numbers 1-7 on the phone will each pick one of the sections of the song. That section will keep looping until another section is chosen. Rearrange the song and rock out to your favorite section for as long as you like.