Update README.md
Browse files
README.md
CHANGED
@@ -66,7 +66,7 @@ from nemo.collections.tts.models import AudioCodecModel
|
|
66 |
path_to_input_audio = ??? # path of the input audio
|
67 |
path_to_output_audio = ??? # path of the reconstructed output audio
|
68 |
|
69 |
-
# load audio codec
|
70 |
nemo_codec_model = AudioCodecModel.from_pretrained("nvidia/low-frame-rate-speech-codec-22khz").eval()
|
71 |
|
72 |
# get discrete tokens from audio
|
@@ -99,9 +99,9 @@ codec_path = ??? # set here the model .nemo checkpoint path
|
|
99 |
path_to_input_audio = ??? # path of the input audio
|
100 |
path_to_output_audio = ??? # path of the reconstructed output audio
|
101 |
|
|
|
102 |
nemo_codec_model = AudioCodecModel.restore_from(restore_path=codec_path, map_location="cpu").eval()
|
103 |
|
104 |
-
nemo_codec_model = AudioCodecModel.from_pretrained("nvidia/low-frame-rate-speech-codec-22khz").eval()
|
105 |
# get discrete tokens from audio
|
106 |
audio, _ = librosa.load(path_to_input_audio, sr=nemo_codec_model.sample_rate)
|
107 |
|
|
|
66 |
path_to_input_audio = ??? # path of the input audio
|
67 |
path_to_output_audio = ??? # path of the reconstructed output audio
|
68 |
|
69 |
+
# load audio codec model
|
70 |
nemo_codec_model = AudioCodecModel.from_pretrained("nvidia/low-frame-rate-speech-codec-22khz").eval()
|
71 |
|
72 |
# get discrete tokens from audio
|
|
|
99 |
path_to_input_audio = ??? # path of the input audio
|
100 |
path_to_output_audio = ??? # path of the reconstructed output audio
|
101 |
|
102 |
+
# load audio codec model
|
103 |
nemo_codec_model = AudioCodecModel.restore_from(restore_path=codec_path, map_location="cpu").eval()
|
104 |
|
|
|
105 |
# get discrete tokens from audio
|
106 |
audio, _ = librosa.load(path_to_input_audio, sr=nemo_codec_model.sample_rate)
|
107 |
|