Spaces:
Configuration error
Configuration error
Commit
·
7c04818
1
Parent(s):
70adf06
Update infer.py
Browse files
infer.py
CHANGED
@@ -72,7 +72,7 @@ def VoiceConverter(test_utt: str, ref_utt: str, out_path: str, svc_mdl: SVCNN, w
|
|
72 |
|
73 |
# Save converted audio.
|
74 |
print('Saving audio.')
|
75 |
-
os.makedirs(os.path.dirname(out_path), exist_ok=True)
|
76 |
y_ = y_.unsqueeze(0)
|
77 |
y_ = np.clip(y_.view(-1).cpu().numpy(), -1, 1)
|
78 |
sf.write(out_path, y_, 24000)
|
|
|
72 |
|
73 |
# Save converted audio.
|
74 |
print('Saving audio.')
|
75 |
+
os.makedirs(os.path.dirname(os.path.abspath(out_path)), exist_ok=True)
|
76 |
y_ = y_.unsqueeze(0)
|
77 |
y_ = np.clip(y_.view(-1).cpu().numpy(), -1, 1)
|
78 |
sf.write(out_path, y_, 24000)
|