Update audio.py
Browse files
audio.py
CHANGED
@@ -13,9 +13,9 @@ def pad_buffer(audio):
|
|
13 |
def generate_voice(text, voice_name, model_name):
|
14 |
try:
|
15 |
audio = generate(
|
16 |
-
text
|
17 |
-
voice=
|
18 |
-
model=
|
19 |
)
|
20 |
return (44100, np.frombuffer(pad_buffer(audio), dtype=np.int16))
|
21 |
except UnauthenticatedRateLimitError as e:
|
|
|
13 |
def generate_voice(text, voice_name, model_name):
|
14 |
try:
|
15 |
audio = generate(
|
16 |
+
text,
|
17 |
+
voice="Arnold",
|
18 |
+
model="eleven_monolingual_v1"
|
19 |
)
|
20 |
return (44100, np.frombuffer(pad_buffer(audio), dtype=np.int16))
|
21 |
except UnauthenticatedRateLimitError as e:
|