Skip to content

Instantly share code, notes, and snippets.

@ghing
Created July 5, 2011 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghing/1065635 to your computer and use it in GitHub Desktop.
Save ghing/1065635 to your computer and use it in GitHub Desktop.
Songs for Moms phone flyer using Tropo API
"""
Mom Phone
Audio flyer for the May 5, 2011 Songs for Moms show in Chicago.
Hosted at (773) 280-5392
"""
from urllib import quote
from random import choice
TROPO_WEB_ROOT = 'http://hosting.tropo.com/50459/www/'
AUDIO_WEB_ROOT = TROPO_WEB_ROOT + 'audio/songs_for_moms-i_used_to_believe_in_the_west/'
SHOW_INFO_AUDIO_FILE = TROPO_WEB_ROOT + 'audio/songs_for_moms_show_info.mp3'
AUDIO_FILES = [
AUDIO_WEB_ROOT + quote("01. All the girls here.mp3"),
AUDIO_WEB_ROOT + quote("02. kill coyotes.mp3"),
AUDIO_WEB_ROOT + quote("03. in nightmares.mp3"),
AUDIO_WEB_ROOT + quote("04. with shotguns.mp3"),
AUDIO_WEB_ROOT + quote("05. for shaky hearts.mp3"),
AUDIO_WEB_ROOT + quote("06. I used to believe.mp3"),
AUDIO_WEB_ROOT + quote("07. in the west.mp3"),
AUDIO_WEB_ROOT + quote("08. and don't tell me I'm wrong.mp3"),
AUDIO_WEB_ROOT + quote("09. these songs that I'm singing.mp3"),
AUDIO_WEB_ROOT + quote("10. come true (how they all do).mp3")
]
def get_random_audio_file(audio_files):
return choice(audio_files)
wait(4000)
say(SHOW_INFO_AUDIO_FILE)
say(get_random_audio_file(AUDIO_FILES))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment