mgbam commited on
Commit
1b1d401
·
verified ·
1 Parent(s): bd47473

Update agents/voiceover_agent.py

Browse files
Files changed (1) hide show
  1. agents/voiceover_agent.py +1 -2
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 b"" # Empty bytes if no key
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",