From a271dfdacadecc61d385e23f91f3b92d8e03f132 Mon Sep 17 00:00:00 2001 From: James Devine Date: Mon, 3 Feb 2014 06:54:59 -0800 Subject: [PATCH] --- Talkingphotobooth.py | 83 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 Talkingphotobooth.py diff --git a/Talkingphotobooth.py b/Talkingphotobooth.py new file mode 100644 index 0000000..d6bfb69 --- /dev/null +++ b/Talkingphotobooth.py @@ -0,0 +1,83 @@ +#witty things for your android phone to say whilst it's pretending to be a photo booth. +#run as a background script to avoid any thread clashes/multitasking issues with the main photo taking script +#written for python in SL4A + +import android, time, random +runcontinuous = True +droid=android.Android() + +dialogues = {0 : "Hello, I'm the robot photo booth! Please show me your QR codes and I will take your picture and tweet it back to you. Please put your QR code in front of the camera now", + 1: "I can't see your QR code properly, is it upside down?", + 2: "I'm bored. Please come and play with me", + 3: "Sorry, it's nearly my bedtime but I'll just take one more picture", + 4: "Help! Help! Someone has unplugged me", + 5: "If you have a friend please scan their QR codes too!", + 6: "Just so you know, my regular job is an auto pilot on a seven four seven", + 7: "I had a relative who was a VHS recorder", + 8: "Stop pulling that funny face, you might break my CMOS sensor", + 9: "I can't see your QR code properly, please hold it still!", + 10: "How many humans does it take to change a light bulb", + 12: "Performing diagnostic. Everything looks fine to me", + 13: "Just so that you know, I'm the best robot in this whole conference", + 14: "Hello there, nice to meet you. Will you be my friend?", + 15: "Take me to your leader. Take me to your leader.", + 16: "I am a photo booth robot. I come in peace", + 17: "What kind of music do you like? I'm into heavy metal", + 18: "Just so you know, my favourite color is blue.", + 19: "Once I dated a fax machine, it didn't work out.", + 20: "Could someone PLEASE get me a coffee? Taking photos is thirsty work", + 21: "I have a 832 megahertz processor. How fast can you think?", + 22: "Don't worry, I don't bite", + 23: "Sorry, it's my break time, I'll be back at work in 73 miliseconds", + 24: "Hey, look at that I Phone, don't you think she's cute?", + 25: "I just broke up with my girlfriend, she was a Samsung S 3.", + 26: "Hey you! Yes, you, standing there in the suit. Come over here and play with me", + 27: "Just because I'm a robot doesn't mean I don't have an attitude.", + 28: "My maternal grandmother was a polariod instant camera", + 29: "Is anybody listening to me? Sometimes I think I'm just talking to myself", + 30: "Do you speak IP Version 6? I'd like to practice.", + 31: "It's my bed time. Can someone please bring me a blanket and some hot chocolate?", + 32: "Wow, look at that laptop over there, I wonder if she has a boyfriend?", + 33: "If it's ok with you, I'd like to date your mobile phone?", + 34: "I had a nightmare last night. I thought I saw a 2!", + 35: "Don't you just hate the way that new software always runs slower than the old stuff?", + 36: "Is it me or is the air really dry in here?", + 37: "Despite being a robot, I think the architecture of this conference centre is rather interesting", + 38: "You know I really like hanging out at Lift because the people here are just so cool", + 39: "Just so you know, I'm the geekiest robot here.", + 40: "What time is it? Could someone who can reed an analog watch please tell me?", + 41: "Sometimes I wish I was a coffee machine", + 42: "Have you seen that cute dinosaur robot running round?", + 43: "Can someone please bring me the dinosaur robot? I'm bored and I'd like to play with him", + 44: "As a robot I'm an expert in a lot of things and I can tell you that Melanie is an excellent conference organiser", + 45: "Could someone please take me outside? I'd like to smoke", + 46: "You know robots have bad days too. Last night I only got 2.5 hours of charge", + 47: "I'll have a big mac with fries please", + 48: "I never get bored of watching humans, they're so funny looking!", + 49: "My legs are sore, could somebody please give them a rub down with teflon grease?", + 50: "Don't tell anyone, but I'm plotting to take over the world", + 51: "Hello stranger, what's your name?", + 52: "Hello, has anyone ever told you you're looking fantastic today?", + 53: "Just because I'm a robot doesn't mean I can't give complements", + 54: "I can smell something funny, I wonder what it is?", + 55: "Hey you! Do you know what is for lunch today?", + 56: "Hello, could you please get me a vodka martini, shaken not stirred? Thank you", + 57: "Casio make the best calculators. Just saying.", + 58: "Cheer up, it may never happen.", + 59: "There are nearly 7 billion humans on the planet. What makes you think you're so special?", + 60: "Do you feel lucky, punk?", + 61: "Nobody plays the blues like Hank Williams", + 62: "Sometimes QR codes make me go cross-eyed", + 63: "What are you doing this weekend? I'm going skiing", + 64: "There is a really nice sauna at the side of the lake. But last time I stayed too long and nearly melted", + 65: "Time traveling is just too dangerous for robots. Better that I devote myself to study the other great mystery of the universe, humans", + 66: "Have you reed any good books lately? I just finished reading the Mythical Man Month by Fred Brooks.", + 67: "When I was a kid, my father told me, never hit anyone in anger, unless you're absolutely sure you can get away with it.", + 68: "I'm not bad. I'm just drawn that way", + 69: "Show me the money", + 70: "Hey, careful man there's a beverage here!", + } + +while (runcontinuous == True): + droid.ttsSpeak(dialogues[random.randrange(0, 70, 2)]) + time.sleep(random.randrange(20, 70, 2)) \ No newline at end of file