Skip to content

Commit

Permalink
[Fix] Use correct sample rate attribute (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostis-S-Z authored Jan 11, 2025
1 parent 528bb24 commit 2f405a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion docs/step-by-step-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ waveform = text_to_speech(
sf.write(
"podcast.wav",
waveform,
samplerate=model.audio_codec.sr
samplerate=model.sample_rate
)
```

Expand Down

0 comments on commit 2f405a2

Please sign in to comment.