some finetuning for the voices

master
joca 6 years ago
parent b76f4ded54
commit b85ef723f1

@ -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'}

@ -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)

@ -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):

Loading…
Cancel
Save