From d6f3db50d97c87a98129e9e05f05fa3835385379 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Wikle=20DUBARD?= <loic97429@gmail.com>
Date: Sun, 29 Sep 2019 22:49:58 +0200
Subject: [PATCH] player with voice

---
 Jarvis.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Jarvis.py b/Jarvis.py
index 20d9717..519b24b 100755
--- a/Jarvis.py
+++ b/Jarvis.py
@@ -416,11 +416,11 @@ def tests(entre):
     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)
         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"]):
         process = Popen(["sound_player/player-client.py", "volume_down"], stdout=PIPE, stderr=PIPE)
         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
     # if "eteint" in entre and "ordinateur" in entre:  # Eteint l'ordinateur
-- 
GitLab