"""CPU-only shared-worker regressions; no production models or voices.""" import io,json,subprocess,sys,tempfile,threading,time,unittest,wave from pathlib import Path from types import SimpleNamespace from unittest.mock import Mock,MagicMock,patch from inference import Scheduler from tts_runtime import REPO,REVISION from tts_test import TTSTests from voxcpm_test import VoxCPMTests def reference(): b=io.BytesIO() with wave.open(b,'wb') as w:w.setnchannels(1);w.setsampwidth(2);w.setframerate(16000);w.writeframes(b'\0\0'*16000) return b.getvalue() def wait_for(getter): end=time.monotonic()+5 while time.monotonic()