CineAI commited on
Commit
1842be6
·
verified ·
1 Parent(s): 54f1c88

Update audio2text/a2t.py

Browse files
Files changed (1) hide show
  1. 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
- audio = self.mic
 
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"