Compare commits

...

3 Commits

Author SHA1 Message Date
joca 42dbe9c1d1 fix 5 years ago
joca 4591346ddc commit on mac pro 5 years ago
root 0a1e4879a6 merge 5 years ago

@ -58,14 +58,16 @@ from urllib.parse import urlencode, quote # For URL creation
def tts(voice, input_text, speaker):
if speaker =="mono1":
volume_level = "amount:1.0"
if speaker == "mono2":
volume_level = "amount:0.7"
if speaker == "mono3":
volume_level = "amount:0.7"
volume_level = "amount:0.8"
else:
volume_level = "amount:1.0"
# Build the query
query_hash = {"INPUT_TEXT": input_text,

@ -50,8 +50,8 @@ def on_play_intro(client,userdata,msg):
# 'jocavdh:play': False
# }
# }))
call(["python3", "act_debug.py"])
path = 'scripts_play/intro/'
call(["python3", "act.py", 'scripts_play/intro/introduction_01.txt'])
print('The act is over.')
#on_play_question(client, userdata, msg)
@ -87,4 +87,4 @@ client.message_callback_add('hermes/intent/jocavdh:play_verdict', on_play_verdic
# Keep checking for new MQTT messages
client.loop_forever()
client.loop_forever()

Loading…
Cancel
Save