From 2f405a2f5449bfa7142b622375c6612dd89c7a0b Mon Sep 17 00:00:00 2001 From: Kostis Date: Sat, 11 Jan 2025 10:43:15 +0200 Subject: [PATCH] [Fix] Use correct sample rate attribute (#86) --- demo/app.py | 2 +- docs/step-by-step-guide.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/app.py b/demo/app.py index 95a171b..133d6a3 100644 --- a/demo/app.py +++ b/demo/app.py @@ -175,7 +175,7 @@ def gen_button_clicked(): if st.session_state[gen_button]: if st.button("Save Podcast to audio file"): st.session_state.audio = stack_audio_segments( - st.session_state.audio, speech_model.audio_codec.sr + st.session_state.audio, speech_model.sample_rate ) sf.write( "podcast.wav", diff --git a/docs/step-by-step-guide.md b/docs/step-by-step-guide.md index be9dc5e..baaf9d5 100644 --- a/docs/step-by-step-guide.md +++ b/docs/step-by-step-guide.md @@ -196,7 +196,7 @@ waveform = text_to_speech( sf.write( "podcast.wav", waveform, - samplerate=model.audio_codec.sr + samplerate=model.sample_rate ) ```