Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add no-op speech service #107

Open
Earthcomputer opened this issue Feb 10, 2025 · 0 comments
Open

Add no-op speech service #107

Earthcomputer opened this issue Feb 10, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Earthcomputer
Copy link

Earthcomputer commented Feb 10, 2025

Description of proposed feature

Add a speech service which creates no sound at all. This could be useful to disable the voiceover and prevent it from getting in the way while you're only working on the video.

How can the new feature be used?

class MyVoiceoverScene(VoiceoverScene):
   def construct(self):
      # use no-op services for now while only working on visuals
      self.set_speech_service(NoOpService())
      #self.set_speech_service(GTTSService())
      #self.set_speech_service(RecorderService())

Additional comments

Maybe the no-op service could estimate the length of the audio using the length of the string as a heuristic, so wait_for_voiceover still works as expected.

@Earthcomputer Earthcomputer added the enhancement New feature or request label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants