From e84f58c4402ed673dd104c7013c7055ddaa0ef63 Mon Sep 17 00:00:00 2001 From: Yatharth Sharma Date: Sun, 25 Jan 2026 10:57:42 -0500 Subject: [PATCH] Update RMS value in audio encoding examples --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ec2d59..fc5f511 100644 --- a/README.md +++ b/README.md @@ -48,10 +48,12 @@ lux_tts = LuxTTS('YatharthS/LuxTTS', device='cuda', threads=2) ## change device from IPython.display import Audio text = "Hey, what's up? I'm feeling really great if you ask me honestly!" + +## change this to your reference file path, can be wav/mp3 prompt_audio = 'audio_file.wav' ## encode audio(takes 10s to init because of librosa first time) -encoded_prompt = lux_tts.encode_prompt(prompt_audio, rms=rms) +encoded_prompt = lux_tts.encode_prompt(prompt_audio, rms=0.01) ## generate speech final_wav = lux_tts.generate_speech(text, encoded_prompt, num_steps=num_steps) @@ -65,6 +67,8 @@ display(Audio(final_wav, rate=48000)) from IPython.display import Audio text = "Hey, what's up? I'm feeling really great if you ask me honestly!" + +## change this to your reference file path, can be wav/mp3 prompt_audio = 'audio_file.wav' rms = 0.01 ## higher makes it sound louder(0.01 or so recommended)