Update audio2text/a2t.py
Browse files- audio2text/a2t.py +2 -1
audio2text/a2t.py
CHANGED
@@ -49,7 +49,8 @@ class A2T:
|
|
49 |
|
50 |
def predict(self):
|
51 |
if self.mic is not None:
|
52 |
-
|
|
|
53 |
# frame_rate = self.mic.frame_rate
|
54 |
else:
|
55 |
return "please provide audio"
|
|
|
49 |
|
50 |
def predict(self):
|
51 |
if self.mic is not None:
|
52 |
+
chunk = self.mic.get_array_of_samples()
|
53 |
+
audio = np.array(chunk)
|
54 |
# frame_rate = self.mic.frame_rate
|
55 |
else:
|
56 |
return "please provide audio"
|