# Standalone VoxCPM2 local UI verification - Install standalone `voxcpm` in a Python 3.10–3.12 venv; do not reuse or copy unrelated AGPL UI source for an Apache-licensed frontend. - Read installed `voxcpm/core.py`, not only upstream main. In PyPI 2.0.3, `generate()` forwards to `_generate(text, reference_wav_path=None, prompt_wav_path=None, prompt_text=None, ...)`. Basic cloning uses `reference_wav_path` alone. Continuation requires BOTH prompt fields. Upstream main can have parameters such as `seed` absent in the installed release. - Load lazily with `VoxCPM.from_pretrained(hf_model_id="openbmb/VoxCPM2", load_denoiser=False, optimize=False)` for a simple interface. Omitting the denoiser avoids another model. `optimize=False` skips compile/warm-up. Serialize loading and inference with a lock plus Gradio queue concurrency 1. - Set `GRADIO_ANALYTICS_ENABLED=False` and `HF_HUB_DISABLE_TELEMETRY=1` before imports. Bind 127.0.0.1 and `share=False`. After weights are cached, `HF_HUB_OFFLINE=1` enforces offline model access. - Write WAV with `model.tts_model.sample_rate` (VoxCPM2 output 48000 Hz), a unique filename, and ignored local output storage. Never commit reference voices, generated clones, caches or weights. - Test through a running `python app.py` server using `gradio_client.Client.predict` with/without `handle_file(reference)`. Record wall time separately from audio duration; cold-load latency is not steady-state RTF. - Check finite samples, RMS, clipping fraction and duration; these alone do not prove speech. Stop the TTS server to free model RAM, then transcribe with a separate local ASR model if audio audition is unavailable. Label ASR-only verification and do not claim voice similarity or human listening. - Check RAM, swap and disk before inference. A 16 GB M1 can still be heavily swap-bound: observed 2.72 s cloned output took ~128 s in a pressured session. Do not turn earlier RTF 7–8 estimates into guarantees. MPS selected float32 in standalone 2.0.3, materially increasing model memory. - Gradio 6.30 `safe_get_lock` may create unclosed event loops when building Blocks repeatedly outside a running loop. For metadata-only unit tests, construct Blocks inside `asyncio.run` and do not reuse that object as a live server. Keep real server startup separate. - Surface the model-card disclosure requirement: shared outputs must be labeled AI-generated; filename/UI text is not an embedded audio watermark. Restrict cloning to owned/consented voices.