Jofthomas HF staff commited on
Commit
146638e
·
verified ·
1 Parent(s): 807a056

Update coqui.py

Browse files
Files changed (1) hide show
  1. coqui.py +1 -1
coqui.py CHANGED
@@ -330,7 +330,7 @@ def predict(
330
  # Convert chunk to numpy array and return it
331
  chunk_np = chunk.cpu().numpy()
332
  print('chunk',i)
333
- yield numpy_to_mp3(chunk_np,24000)
334
  wav_chunks.append(chunk)
335
 
336
  print(f"Received chunk {i} of audio length {chunk.shape[-1]}")
 
330
  # Convert chunk to numpy array and return it
331
  chunk_np = chunk.cpu().numpy()
332
  print('chunk',i)
333
+ yield (24000, chunk_np)
334
  wav_chunks.append(chunk)
335
 
336
  print(f"Received chunk {i} of audio length {chunk.shape[-1]}")