diff --git a/config.py b/config.py index 9fddc1b..8f033ea 100755 --- a/config.py +++ b/config.py @@ -8,7 +8,7 @@ # --- # Dictionary to link characters to the right voice -characters = {"ROGUE":["cmu-slt-hsmm", "mono2"], "SAINT":["cmu-rms-hsmm", "mono3"], "RASA":["dfki-poppy-hsmm", "mono1"] } +characters = {"ROGUE":["cmu-slt-hsmm", "mono2"], "SAINT":["cmu-rms-hsmm", "mono3"], "RASA":["dfki-prudence-hsmm", "mono1"] } # Dictionary to link stage directions to a particular formal action directions = {"Listen to Google Home":'listen_google_home','Music':'music'} diff --git a/logic.py b/logic.py index 9f9b344..7154118 100755 --- a/logic.py +++ b/logic.py @@ -59,13 +59,16 @@ from urllib.parse import urlencode, quote # For URL creation def tts(voice, input_text, speaker): if speaker =="mono1": - volume_level = "amount:1.0" + volume_level = "amount:1.2" + stadium_level = "amount:00.0" if speaker == "mono2": volume_level = "amount:0.7" + stadium_level = "amount:00.0" if speaker == "mono3": - volume_level = "amount:0.8" + volume_level = "amount:1.0" + stadium_level = "amount:85.0" @@ -75,6 +78,8 @@ def tts(voice, input_text, speaker): "LOCALE":"en_GB", "effect_VOLUME_selected":"on", "effect_VOLUME_parameters":volume_level, + "effect_STADIUM_selected":"on", + "effect_STADIUM_parameters":stadium_level, "VOICE": voice, # Voice informations (need to be compatible) "OUTPUT_TYPE":"AUDIO", "AUDIO":"WAVE", # Audio informations (need both) diff --git a/smart_speaker_theatre.py b/smart_speaker_theatre.py index 4bfe680..ff2fb17 100755 --- a/smart_speaker_theatre.py +++ b/smart_speaker_theatre.py @@ -123,7 +123,7 @@ def on_play_intro(client,userdata,msg): #import pdb; pdb.set_trace() path = 'scripts_play/intro/' #call(["python3", "act.py", 'scripts_play/intro/introduction_01.txt']) - play_script('scripts_play/debug/debug_02.txt') + play_script('scripts_play/debug/debug_01.txt') # Function which is triggered when the intent for another question is activated def on_play_question(client, userdata, msg):