Spaces:
Runtime error
Runtime error
Update coqui.py
Browse files
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
|
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]}")
|