Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ def text2story(text):
|
|
| 47 |
def text2audio(story_text):
|
| 48 |
try:
|
| 49 |
# Use the MeloTTS model which has better audio quality
|
| 50 |
-
synthesizer = pipeline("text-to-speech", model="
|
| 51 |
|
| 52 |
# Limit text length to avoid timeouts
|
| 53 |
max_chars = 500
|
|
|
|
| 47 |
def text2audio(story_text):
|
| 48 |
try:
|
| 49 |
# Use the MeloTTS model which has better audio quality
|
| 50 |
+
synthesizer = pipeline("text-to-speech", model="capleaf/viXTTS")
|
| 51 |
|
| 52 |
# Limit text length to avoid timeouts
|
| 53 |
max_chars = 500
|