CineAI commited on
Commit
d2bbc44
1 Parent(s): b33a918

Update audio2text/a2t.py

Browse files
Files changed (1) hide show
  1. 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.get_array_of_samples()
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)