فهرست منبع

Fix streaming bug

Lengyue 1 سال پیش
والد
کامیت
f473a75500
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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)