Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def text2story(text):
|
|
| 32 |
# text2audio
|
| 33 |
def text2audio(story_text):
|
| 34 |
|
| 35 |
-
tts_pipeline = pipeline("text-to-speech", model="facebook/mms-tts-eng"
|
| 36 |
audio_data = tts_pipeline(story_text) # 直接返回字典
|
| 37 |
return audio_data
|
| 38 |
|
|
|
|
| 32 |
# text2audio
|
| 33 |
def text2audio(story_text):
|
| 34 |
|
| 35 |
+
tts_pipeline = pipeline("text-to-speech", model="facebook/mms-tts-eng")
|
| 36 |
audio_data = tts_pipeline(story_text) # 直接返回字典
|
| 37 |
return audio_data
|
| 38 |
|