File size: 319 Bytes
63228aa
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
"""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)