Update audio2text/a2t.py
Browse files- audio2text/a2t.py +1 -1
audio2text/a2t.py
CHANGED
@@ -27,7 +27,7 @@ class A2T:
|
|
27 |
return None
|
28 |
|
29 |
def predict(self):
|
30 |
-
if
|
31 |
audio = self.mic
|
32 |
frame_rate = audio.frame_rate
|
33 |
else:
|
|
|
27 |
return None
|
28 |
|
29 |
def predict(self):
|
30 |
+
if self.mic is not None:
|
31 |
audio = self.mic
|
32 |
frame_rate = audio.frame_rate
|
33 |
else:
|