Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ VOICE_ID = "EXAVITQu4vr4xnSDxMaL" # Rachel
|
|
| 11 |
def generate_voiceover(script):
|
| 12 |
url = f"https://api.elevenlabs.io/v1/text-to-speech/{VOICE_ID}"
|
| 13 |
headers = {
|
| 14 |
-
"xi-api-key":
|
| 15 |
"Content-Type": "application/json"
|
| 16 |
}
|
| 17 |
payload = {
|
|
|
|
| 11 |
def generate_voiceover(script):
|
| 12 |
url = f"https://api.elevenlabs.io/v1/text-to-speech/{VOICE_ID}"
|
| 13 |
headers = {
|
| 14 |
+
"xi-api-key": sk_2b6737d21819816d70cf165384cfd5b2d4a44e49c8f8ffb8Y,
|
| 15 |
"Content-Type": "application/json"
|
| 16 |
}
|
| 17 |
payload = {
|