Update audio2text/a2t.py
Browse files- audio2text/a2t.py +2 -2
audio2text/a2t.py
CHANGED
@@ -20,8 +20,8 @@ class A2T:
|
|
20 |
def predict(self):
|
21 |
try:
|
22 |
if self.mic is not None:
|
23 |
-
chunk = self.mic
|
24 |
-
audio = np.
|
25 |
print("audio : ", audio)
|
26 |
else:
|
27 |
return "please provide audio"
|
|
|
20 |
def predict(self):
|
21 |
try:
|
22 |
if self.mic is not None:
|
23 |
+
chunk = self.mic.get_array_of_samples()
|
24 |
+
audio = np.array(chunk)
|
25 |
print("audio : ", audio)
|
26 |
else:
|
27 |
return "please provide audio"
|