From 0b6dd8fb0fd3154403c6718595c2239628deee29 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 5 Jul 2016 10:43:28 +0200 Subject: [PATCH] add isInitialized --- src/speech/es.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/speech/es.py b/src/speech/es.py index 7f55fc88..4f3db5dd 100644 --- a/src/speech/es.py +++ b/src/speech/es.py @@ -6,7 +6,11 @@ class speech(): isInitialized = False def __init__(self): - pass + try: + pass + isInitialized = True + except: + initialized = False def speak(text, queueable=True): if queueable == False: self.stop()