Spaces:
Sleeping
Sleeping
kevinwang676
commited on
Commit
•
8e45d4b
1
Parent(s):
9f5b176
Update inference.py
Browse files- inference.py +1 -1
inference.py
CHANGED
@@ -80,7 +80,7 @@ def svc(model, src_wav_path, ref_wav_path, out_dir, device, f0_factor, speech_en
|
|
80 |
out_wav = model.match(query_seq, f0_src, pitch_src, synth_set, topk=4, query_mask=query_mask)
|
81 |
# out_wav is (T,) tensor converted 16kHz output wav using k=4 for kNN.
|
82 |
os.makedirs(out_dir, exist_ok=True)
|
83 |
-
wfname = f'{out_dir}/
|
84 |
|
85 |
sf.write(wfname, out_wav.numpy(), 24000)
|
86 |
|
|
|
80 |
out_wav = model.match(query_seq, f0_src, pitch_src, synth_set, topk=4, query_mask=query_mask)
|
81 |
# out_wav is (T,) tensor converted 16kHz output wav using k=4 for kNN.
|
82 |
os.makedirs(out_dir, exist_ok=True)
|
83 |
+
wfname = f'{out_dir}/NeuCoSVCv2.wav'
|
84 |
|
85 |
sf.write(wfname, out_wav.numpy(), 24000)
|
86 |
|