Voice isolation — separating clean speech from background noise and mixed audio.
Golden parity fixtures
The fixture inputs are derived from
sample_14.wav: LibriSpeech dev-clean
utterance 2277-149896-0032 (Sister Carrie, read by zinniz; LibriSpeech (c) 2014
Vassil Panayotov, CC BY 4.0) with generated hiss. The recording and its
derivatives, including these input WAVs and expected arrays, use CC BY 4.0. The
generator and test code use this repository's
Apache-2.0 license.
The same 3-second input is used by offline_3s and realtime_stream_3s; the same
11-second input is used by offline_11s and realtime_stream_11s.
generate_inputs.py copies the first 3 seconds for the
short input and pads the complete recording with silence to 11 seconds for the
long input. It copies PCM16 samples without resampling or changing their level.
Recreate the inputs in a separate directory with:
python tests/fixtures/generate_inputs.py staging/fixture_inputs
Each expected.npy is a float32 render from the independent training reference,
using the training checkpoint behind the released model. It is not generated by
the package being tested. Each meta.json records the released model's SHA256,
render settings, tolerance and the hashes of both files. The streaming fixtures
also record the input piece sizes and stateful reference runner settings. Its
recorded buffering latency describes the reference runner; use
VoiceIsolator.latency_samples() for the package's streaming latency.
To refresh expected arrays, run the independent reference over the generated
inputs at the settings in meta.json, preserving the released model identity
and the 1e-4 tolerance. Then run:
python -m pytest tests/inworld/voice_isolation/test_golden.py -q -rs
Input reproducibility and file hashes are checked without model weights. Output
parity requires the corresponding released checkpoint under models/ (or
VOICE_ISOLATION_GOLDEN_MODEL for one checkpoint at a time).