Spaces:
Running
Running
Devin Xie
commited on
Commit
·
aad4adb
1
Parent(s):
365fc27
added os to accept coqui TOS
Browse files
app.py
CHANGED
@@ -25,9 +25,7 @@ if uploaded_file:
|
|
25 |
|
26 |
if text_input:
|
27 |
if st.button('Synthesize'):
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
except:
|
33 |
-
st.error('An error occured during synthesis. Please check your input and try again.')
|
|
|
25 |
|
26 |
if text_input:
|
27 |
if st.button('Synthesize'):
|
28 |
+
output_audio = tts.tts_to_file(text=text_input, speaker_wav=uploaded_file, language='en')
|
29 |
+
|
30 |
+
st.audio(output_audio, format='audio/wav')
|
31 |
+
|
|
|
|