Salut,
To continue the dialogue I will do like that (to try):
Hey rhasspy.
Turn on the television
here if slotvalue …(your code)…continuer ( )
def continuer ( ) :
myTTS ( "which channel do you want?" ) # is my fonction tts perso
os.system ( 'curl -X POST "http://localhost:12101/api/start-recording" ' )
# speak the name of channel
time.sleep(5)
os.system ( 'curl -X POST "http://localhost:12101/api/stop-recording" ' )
# here recup your json slotvalue and
if slotvalue == "channel" :
myTTS("Ok y put xxxx" + slotvalue)......
I’m using a remote HTTP server to handle intents , which is basically a php page that uses the json data sent (intentname, slots …) after that i return a json data with the text to speak ($data[“speech”][“text”]).
I’m sorry but i’m new to this i was using snips before Sonos , but in rhasspy i don’t know where to code actions or where to put this python code .