Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def pad_buffer(audio):
|
|
14 |
def generate_voice(text, voice_name):
|
15 |
try:
|
16 |
audio = generate(
|
17 |
-
text[:
|
18 |
voice=voice_name,
|
19 |
model="eleven_multilingual_v2"
|
20 |
)
|
|
|
14 |
def generate_voice(text, voice_name):
|
15 |
try:
|
16 |
audio = generate(
|
17 |
+
text[:1000], # Limit to 250 characters
|
18 |
voice=voice_name,
|
19 |
model="eleven_multilingual_v2"
|
20 |
)
|