Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,9 @@ text_input = st.text_area("Enter text to convert to speech:")
|
|
10 |
# Load the Hugging Face TTS model
|
11 |
# Using a more reliable and commonly used model for TTS
|
12 |
tts_pipeline = pipeline("text-to-speech", model="microsoft/speecht5_tts")
|
|
|
13 |
|
|
|
14 |
# Button to generate speech
|
15 |
if st.button("Convert to Speech"):
|
16 |
if text_input:
|
|
|
10 |
# Load the Hugging Face TTS model
|
11 |
# Using a more reliable and commonly used model for TTS
|
12 |
tts_pipeline = pipeline("text-to-speech", model="microsoft/speecht5_tts")
|
13 |
+
from datasets import load_dataset
|
14 |
|
15 |
+
ds = load_dataset("Matthijs/cmu-arctic-xvectors")
|
16 |
# Button to generate speech
|
17 |
if st.button("Convert to Speech"):
|
18 |
if text_input:
|