######################################### # VoiceRss.py # categories: speech # more info @: http://myrobotlab.org/service/VoiceRss ######################################### mouth = runtime.start("mouth", "VoiceRss") #possible voices ( selected voice is stored inside config until you change it ) print ("these are the voices I can have", mouth.getVoices()) print ("this is the voice I am using", mouth.getVoice()) # You sould't not expose keys here, inside gui is a good place # But you can do it here ( only once is enough ) # An AES safe is used to store keys # mouth.setKey("voicerss.api.key","xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") mouth.setVoice("Sally") mouth.speakBlocking("it works, yes I believe it does") mouth.setVolume(0.7) mouth.speakBlocking("Silent please") mouth.setVolume(1)