summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-11-05 16:51:26 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2014-11-05 16:51:33 +0100
commit7488af7235b4a3a38038b3777adb22627c21af87 (patch)
tree1229547acc7cb91407d94e1643919fd1edd54a0b /client
parent44e5ce5c4f84a4e5cc268fda56fc37b00b763314 (diff)
downloadjasper-client-7488af7235b4a3a38038b3777adb22627c21af87.tar.gz
jasper-client-7488af7235b4a3a38038b3777adb22627c21af87.zip
Added log message for PyAudio initialization
Diffstat (limited to 'client')
-rw-r--r--client/mic.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/mic.py b/client/mic.py
index f75539b..ceebaae 100644
--- a/client/mic.py
+++ b/client/mic.py
@@ -2,7 +2,7 @@
"""
The Mic class handles all interactions with the microphone and speaker.
"""
-
+import logging
import tempfile
import wave
import audioop
@@ -26,10 +26,15 @@ class Mic:
mode
acive_stt_engine -- performs STT while Jasper is in active listen mode
"""
+ self._logger = logging.getLogger(__name__)
self.speaker = speaker
self.passive_stt_engine = passive_stt_engine
self.active_stt_engine = active_stt_engine
+ self._logger.info("Initializing PyAudio. ALSA/Jack error messages " +
+ "that pop up during this process are normal an " +
+ "can usually be safely ignored.")
self._audio = pyaudio.PyAudio()
+ self._logger.info("Initialization of PyAudio completed.")
def __del__(self):
self._audio.terminate()