mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2024-12-29 19:15:04 +08:00
Add files via upload
This commit is contained in:
parent
8bd34d1881
commit
e56584c6e2
@ -307,14 +307,14 @@ class AudioPreDeEcho:
|
|||||||
sf.write(
|
sf.write(
|
||||||
os.path.join(
|
os.path.join(
|
||||||
ins_root,
|
ins_root,
|
||||||
"instrument_{}_{}.{}".format(name, self.data["agg"], format),
|
"vocal_{}_{}.{}".format(name, self.data["agg"], format),
|
||||||
),
|
),
|
||||||
(np.array(wav_instrument) * 32768).astype("int16"),
|
(np.array(wav_instrument) * 32768).astype("int16"),
|
||||||
self.mp.param["sr"],
|
self.mp.param["sr"],
|
||||||
) #
|
) #
|
||||||
else:
|
else:
|
||||||
path = os.path.join(
|
path = os.path.join(
|
||||||
ins_root, "instrument_{}_{}.wav".format(name, self.data["agg"])
|
ins_root, "vocal_{}_{}.wav".format(name, self.data["agg"])
|
||||||
)
|
)
|
||||||
sf.write(
|
sf.write(
|
||||||
path,
|
path,
|
||||||
@ -344,14 +344,14 @@ class AudioPreDeEcho:
|
|||||||
sf.write(
|
sf.write(
|
||||||
os.path.join(
|
os.path.join(
|
||||||
vocal_root,
|
vocal_root,
|
||||||
"vocal_{}_{}.{}".format(name, self.data["agg"], format),
|
"instrument_{}_{}.{}".format(name, self.data["agg"], format),
|
||||||
),
|
),
|
||||||
(np.array(wav_vocals) * 32768).astype("int16"),
|
(np.array(wav_vocals) * 32768).astype("int16"),
|
||||||
self.mp.param["sr"],
|
self.mp.param["sr"],
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
path = os.path.join(
|
path = os.path.join(
|
||||||
vocal_root, "vocal_{}_{}.wav".format(name, self.data["agg"])
|
vocal_root, "instrument_{}_{}.wav".format(name, self.data["agg"])
|
||||||
)
|
)
|
||||||
sf.write(
|
sf.write(
|
||||||
path,
|
path,
|
||||||
|
Loading…
Reference in New Issue
Block a user