mirror of
https://github.com/liuhaozhe6788/voice-cloning-collab.git
synced 2026-05-18 05:04:51 +02:00
demo_cli新增声音美颜权重参数
This commit is contained in:
@@ -33,6 +33,8 @@ if __name__ == '__main__':
|
||||
"states and restart from scratch.")
|
||||
parser.add_argument("-m", "--models_dir", type=Path, default="saved_models",
|
||||
help="Directory containing all saved models")
|
||||
parser.add_argument("--weight", type=float, default=1,
|
||||
help="weight of input audio for voice filter")
|
||||
parser.add_argument("--griffin_lim",
|
||||
action="store_true",
|
||||
help="if True, use vocoder, else use griffin-lim")
|
||||
@@ -197,7 +199,7 @@ if __name__ == '__main__':
|
||||
standard_fpath = "standard_audios/female_1.wav"
|
||||
|
||||
if os.path.exists(standard_fpath):
|
||||
|
||||
|
||||
standard_wav = Synthesizer.load_preprocess_wav(standard_fpath)
|
||||
preprocessed_standard_wav = encoder.preprocess_wav(standard_wav)
|
||||
print("Loaded standard audio file succesfully")
|
||||
|
||||
Reference in New Issue
Block a user