rendchevi commited on
Commit
efaf417
1 Parent(s): 9e1c888

initial commit

Browse files
Files changed (1) hide show
  1. elements/tts.py +2 -0
elements/tts.py CHANGED
@@ -1,4 +1,5 @@
1
  # Utils
 
2
  import timeit
3
  import soundfile as sf
4
 
@@ -33,6 +34,7 @@ def generate_voice(
33
 
34
  # Play audio
35
  st.audio(f"cache_sound/{st.session_state.random_str}.wav", format = "audio/wav")
 
36
  st.caption("Generated Voice")
37
 
38
  st.code(
 
1
  # Utils
2
+ import os
3
  import timeit
4
  import soundfile as sf
5
 
 
34
 
35
  # Play audio
36
  st.audio(f"cache_sound/{st.session_state.random_str}.wav", format = "audio/wav")
37
+ os.remove(f"cache_sound/{st.session_state.random_str}.wav")
38
  st.caption("Generated Voice")
39
 
40
  st.code(