Skip to content
Extraits de code Groupes Projets
Valider d6f3db50 rédigé par Loïc Wikle DUBARD's avatar Loïc Wikle DUBARD
Parcourir les fichiers

player with voice

parent 7a809aa3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -416,11 +416,11 @@ def tests(entre): ...@@ -416,11 +416,11 @@ def tests(entre):
if "monte" in entre and any(e in entre for e in ["son", "volume"]): if "monte" in entre and any(e in entre for e in ["son", "volume"]):
process = Popen(["sound_player/player-client.py", "volume_up"], stdout=PIPE, stderr=PIPE) process = Popen(["sound_player/player-client.py", "volume_up"], stdout=PIPE, stderr=PIPE)
stdout, stderr = process.communicate() stdout, stderr = process.communicate()
parle("volume : " + int(float(stdout.decode().split(":")[-1].strip()) * 100), False) parle("volume : " + str(int(float(stdout.decode().split(":")[-1].strip()) * 100)), False)
if "baisse" in entre and any(e in entre for e in ["son", "volume"]): if "baisse" in entre and any(e in entre for e in ["son", "volume"]):
process = Popen(["sound_player/player-client.py", "volume_down"], stdout=PIPE, stderr=PIPE) process = Popen(["sound_player/player-client.py", "volume_down"], stdout=PIPE, stderr=PIPE)
stdout, stderr = process.communicate() stdout, stderr = process.communicate()
parle("volume : " + int(float(stdout.decode().split(":")[-1].strip()) * 100), False) parle("volume : " + str(int(float(stdout.decode().split(":")[-1].strip()) * 100)), False)
# éteind le pc # éteind le pc
# if "eteint" in entre and "ordinateur" in entre: # Eteint l'ordinateur # if "eteint" in entre and "ordinateur" in entre: # Eteint l'ordinateur
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter