diff --git a/src/fenrir/core/speechDriver.py b/src/fenrir/core/speechDriver.py index c465ea08..27bb0ba9 100644 --- a/src/fenrir/core/speechDriver.py +++ b/src/fenrir/core/speechDriver.py @@ -34,7 +34,9 @@ class speechDriver(): return def setCallback(self, callback): - if not callback + if not self._isInitialized: + return + if not callback: return def clear_buffer(self):