update example code for each preprocess module

This commit is contained in:
jlqian98
2026-03-04 15:02:34 +08:00
parent 79e1f06d7d
commit 7bc2dfea6e
5 changed files with 36 additions and 23 deletions
+3 -3
View File
@@ -516,12 +516,12 @@ class F0Extractor:
if __name__ == "__main__":
model_path = (
"pretrained_models/rmvpe/rmvpe.pt"
"pretrained_models/SoulX-Singer-Preprocess/rmvpe/rmvpe.pt"
)
audio_path = "./outputs/transcription/test.wav"
audio_path = "example/audio/zh_prompt.mp3"
pe = F0Extractor(
model_path,
device="cuda",
)
f0 = pe.process(audio_path)
f0 = pe.process(audio_path, f0_path="example/audio/zh_prompt_f0.npy")