Spaces:
Running
Running
OnceUponAYawn
commited on
Commit
•
1a4df39
1
Parent(s):
57d3bbf
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[:5000], # Limit to 5000 characters
|
18 |
voice=voice_name,
|
19 |
model="eleven_multilingual_v2"
|
20 |
)
|