From 2a5ab6359b745e7be6f9bbafca3d81edcbb2ff59 Mon Sep 17 00:00:00 2001 From: Zhiyi Sun Date: Sat, 14 Jan 2017 17:43:28 +0800 Subject: [PATCH] Add output_chunksize as input parameter for play_fp play_fp always uses default chunksize(1200) even output_chunksize is configurable. Signed-off-by: Zhiyi Sun --- jasper/mic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jasper/mic.py b/jasper/mic.py index f7546988f..ef7b159e3 100644 --- a/jasper/mic.py +++ b/jasper/mic.py @@ -228,7 +228,7 @@ def say(self, phrase): with tempfile.SpooledTemporaryFile() as f: f.write(self.tts_engine.say(altered_phrase)) f.seek(0) - self._output_device.play_fp(f) + self._output_device.play_fp(f, self._output_chunksize) if __name__ == "__main__":