Explorar o código

Fix streaming bug

Lengyue hai 1 ano
pai
achega
f473a75500
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/webui.py

+ 1 - 1
tools/webui.py

@@ -154,7 +154,7 @@ def inference(
         fake_audios = np.concatenate([fake_audios, np.zeros((11025,))], axis=0)
 
         if streaming:
-            yield (fake_audios * 32768).astype(np.int16).tobytes()
+            yield (fake_audios * 32768).astype(np.int16).tobytes(), None
         else:
             segments.append(fake_audios)