Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def text2story(text):
|
|
18 |
|
19 |
# text2audio
|
20 |
def text2audio(story_text):
|
21 |
-
text_to_audio_model = pipeline("text-to-speech"
|
22 |
audio_data = text_to_audio_model(story_text)
|
23 |
return audio_data
|
24 |
|
|
|
18 |
|
19 |
# text2audio
|
20 |
def text2audio(story_text):
|
21 |
+
text_to_audio_model = pipeline("text-to-speech", model="facebook/mms-tts-eng")
|
22 |
audio_data = text_to_audio_model(story_text)
|
23 |
return audio_data
|
24 |
|