LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0002-Make-speech-client-python3-compatible.patch of Package mycroft-core (Project home:alarrosa:packages)

From d18a2908c5586d2c2d8f7aa1575f59d27538204c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=85ke=20Forslund?= <ake.forslund@gmail.com>
Date: Wed, 7 Feb 2018 21:19:20 +0100
Subject: [PATCH 02/13] Make speech client python3 compatible

---
 mycroft/client/speech/mic.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mycroft/client/speech/mic.py b/mycroft/client/speech/mic.py
index 6c7448f..1af9970 100644
--- a/mycroft/client/speech/mic.py
+++ b/mycroft/client/speech/mic.py
@@ -461,7 +461,7 @@ class ResponsiveRecognizer(speech_recognition.Recognizer):
                         str(int(1000 * get_time())),
                         SessionManager.get().session_id,
                         self.account_id,
-                        model_hash
+                        str(model_hash)
                     ]
                     fn = join(dr, '.'.join(components) + '.wav')
                     with open(fn, 'wb') as f:
-- 
2.16.2