From 7488af7235b4a3a38038b3777adb22627c21af87 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 5 Nov 2014 16:51:26 +0100 Subject: Added log message for PyAudio initialization --- client/mic.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() -- cgit v1.3.1