Skip to content

Commit

Permalink
fix: copilot should let paid users use 11 labs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko authored and devxpy committed Jan 19, 2024
1 parent 6eefac9 commit 6aeea7b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions recipes/VideoBots.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,15 +853,19 @@ def run(self, state: dict) -> typing.Iterator[str | None]:
tts_state = dict(state)
for text in state.get("raw_tts_text", state["raw_output_text"]):
tts_state["text_prompt"] = text
yield from TextToSpeechPage().run(tts_state)
yield from TextToSpeechPage(
request=self.request, run_user=self.run_user
).run(tts_state)
state["output_audio"].append(tts_state["audio_url"])

if not request.input_face:
return
lip_state = dict(state)
for audio_url in state["output_audio"]:
lip_state["input_audio"] = audio_url
yield from LipsyncPage().run(lip_state)
yield from LipsyncPage(request=self.request, run_user=self.run_user).run(
lip_state
)
state["output_video"].append(lip_state["output_video"])

def get_tabs(self):
Expand Down

0 comments on commit 6aeea7b

Please sign in to comment.