laxsvips commited on
Commit
7882aea
·
1 Parent(s): fbda3c1

Update audio.py

Browse files
Files changed (1) hide show
  1. audio.py +2 -0
audio.py CHANGED
@@ -2,6 +2,8 @@ from elevenlabs import voices, generate, set_api_key, UnauthenticatedRateLimitEr
2
  import numpy as np
3
  import gradio as gr
4
 
 
 
5
  def pad_buffer(audio):
6
  # Pad buffer to multiple of 2 bytes
7
  buffer_size = len(audio)
 
2
  import numpy as np
3
  import gradio as gr
4
 
5
+ set_api_key('ELEVEN_API_KEY')
6
+
7
  def pad_buffer(audio):
8
  # Pad buffer to multiple of 2 bytes
9
  buffer_size = len(audio)