first off many thanks for making this!
I'm running this script:
#file : Clock.tickTockSound.py
# IMPORTANT! Since AudioFile (http://myrobotlab.org/service/AudioFile) # has other dependencies it must be "installed" be sure to # install the AudioFile service otherwise you will not be able to play # audio files #create a clock service named clock clock = Runtime.createAndStart("clock","Clock") #create an audio file player service named audio audio = Runtime.createAndStart("audio","AudioFile") def ticktock(): #if tick.mp3 is not in the main folder (myrobotlab) #it should be replaced with the full file-path eg. "C:\\myrobotlab\\src\\resource\\Clock\\tick.mp3" #audio.playFile("tick.mp3") audio.playResource("/resource/Clock/tick.mp3") #create a message between clock and audio, so a tick tock sound could be played clock.addListener("pulse", python.name, "ticktock") #start clock clock.startClock()
and it works- I can hear the ticking- but I cannot see where the tick.mp3 is being triggered from; that is to say I cannot find a /resource/Clock/tick.mp3 file anywhere on my computer, so I cant see HOW its working, which is a bit worrying. In myrobotlab folder there is no resource folder- what is the (probably basic) thing I am missing?
My system is Linux Debian (mint)
again thanks for making this