Spaces:
Running
Running
extended length
#10
by
ziyadsuper2017
- opened
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[:2000], # Limit to 2000 characters
|
18 |
voice=voice_name,
|
19 |
model="eleven_multilingual_v2"
|
20 |
)
|