1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-05 01:10:22 +08:00

chore(format): run black on dev (#66)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-07-01 17:53:21 +09:00
committed by GitHub
parent 522d101c0b
commit 8cd1fdd372

View File

@@ -232,7 +232,7 @@ def cache_or_load(mix_path, inst_path, mp):
sr=bp["sr"], sr=bp["sr"],
mono=False, mono=False,
dtype=np.float32, dtype=np.float32,
res_type=bp["res_type"] res_type=bp["res_type"],
) )
y_wave[d], _ = librosa.load( y_wave[d], _ = librosa.load(
inst_path, inst_path,
@@ -421,7 +421,9 @@ def cmb_spectrogram_to_wave(spec_m, mp, extra_bins_h=None, extra_bins=None):
), ),
) )
# wave = librosa.core.resample(wave2, bp['sr'], sr, res_type="sinc_fastest") # wave = librosa.core.resample(wave2, bp['sr'], sr, res_type="sinc_fastest")
wave = librosa.resample(wave2, orig_sr=bp["sr"], target_sr=sr, res_type="scipy") wave = librosa.resample(
wave2, orig_sr=bp["sr"], target_sr=sr, res_type="scipy"
)
return wave.T return wave.T