From 0624484dc09fbafa39018ecd9fbcea0e71d7d5d0 Mon Sep 17 00:00:00 2001 From: CjangCjengh <101577701+CjangCjengh@users.noreply.github.com> Date: Sat, 10 Sep 2022 16:46:01 +0800 Subject: [PATCH] fix --- MoeGoe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MoeGoe.py b/MoeGoe.py index 199306e..8c0b199 100644 --- a/MoeGoe.py +++ b/MoeGoe.py @@ -169,7 +169,7 @@ def get_speaker_id(message): while True: audio_path = input('Path of an audio file to convert:\n') print_speakers(speakers) - audio = utils.load_audio_to_torch(audio_path, hps_ms.data.sampling_rate).unsqueeze(0).unsqueeze(0) + audio = utils.load_audio_to_torch(audio_path, 16000).unsqueeze(0).unsqueeze(0) target_id = get_speaker_id('Target speaker ID: ') out_path = input('Path to save: ')