laxsvips commited on
Commit
0fe8fdc
1 Parent(s): ce0ee22

Update audio.py

Browse files
Files changed (1) hide show
  1. audio.py +3 -3
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[:250], # Limit to 250 characters
17
- voice=voice_name,
18
- model=model_name
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: