"""python example.py in.wav out.wav: isolate the caller of a 16 kHz mono recording, live, on the CPU.""" import sys import soundfile as sf from voice_isolator import isolate x, sr = sf.read(sys.argv[1], dtype="float32") assert sr == 16000 and x.ndim == 1, "16 kHz mono" sf.write(sys.argv[2], isolate(".", x), 16000)