Spaces:
Sleeping
Sleeping
Update audio.py
Browse files
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)
|