Update audio2text/a2t.py
Browse files- audio2text/a2t.py +2 -2
audio2text/a2t.py
CHANGED
@@ -13,7 +13,7 @@ class A2T:
|
|
13 |
print("Inputs None")
|
14 |
|
15 |
transcribed_text = pipe(inputs, generate_kwargs={"task": task}, return_timestamps=True)["text"]
|
16 |
-
print(transcribed_text)
|
17 |
return transcribed_text
|
18 |
|
19 |
def predict(self):
|
@@ -21,7 +21,7 @@ class A2T:
|
|
21 |
if self.mic is not None:
|
22 |
chunk = self.mic
|
23 |
audio = np.array(chunk)
|
24 |
-
print(audio)
|
25 |
else:
|
26 |
return "please provide audio"
|
27 |
|
|
|
13 |
print("Inputs None")
|
14 |
|
15 |
transcribed_text = pipe(inputs, generate_kwargs={"task": task}, return_timestamps=True)["text"]
|
16 |
+
print("transcribed_text : ", transcribed_text)
|
17 |
return transcribed_text
|
18 |
|
19 |
def predict(self):
|
|
|
21 |
if self.mic is not None:
|
22 |
chunk = self.mic
|
23 |
audio = np.array(chunk)
|
24 |
+
print("audio : ", audio)
|
25 |
else:
|
26 |
return "please provide audio"
|
27 |
|