Update agents/voiceover_agent.py
Browse files
agents/voiceover_agent.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
# agents/voiceover_agent.py
|
2 |
import requests
|
3 |
|
4 |
class VoiceoverAgent:
|
@@ -7,7 +6,7 @@ class VoiceoverAgent:
|
|
7 |
|
8 |
def generate_voiceover(self, text):
|
9 |
if not self.api_key:
|
10 |
-
return
|
11 |
|
12 |
response = requests.post(
|
13 |
"https://api.elevenlabs.io/v1/text-to-speech/21m00Tcm4TlvDq8ikWAM",
|
|
|
|
|
1 |
import requests
|
2 |
|
3 |
class VoiceoverAgent:
|
|
|
6 |
|
7 |
def generate_voiceover(self, text):
|
8 |
if not self.api_key:
|
9 |
+
return None
|
10 |
|
11 |
response = requests.post(
|
12 |
"https://api.elevenlabs.io/v1/text-to-speech/21m00Tcm4TlvDq8ikWAM",
|