Update audio2text/a2t.py
Browse files- audio2text/a2t.py +1 -1
audio2text/a2t.py
CHANGED
@@ -19,7 +19,7 @@ class A2T:
|
|
19 |
def predict(self):
|
20 |
try:
|
21 |
if self.mic is not None:
|
22 |
-
chunk = self.mic
|
23 |
audio = np.array(chunk)
|
24 |
print(audio)
|
25 |
return self.__transcribe(inputs=audio, task=TASK)
|
|
|
19 |
def predict(self):
|
20 |
try:
|
21 |
if self.mic is not None:
|
22 |
+
chunk = self.mic
|
23 |
audio = np.array(chunk)
|
24 |
print(audio)
|
25 |
return self.__transcribe(inputs=audio, task=TASK)
|