jeertmans / manim-slides

Tool for live presentations using manim
https://manim-slides.eertmans.be
MIT License
445 stars 48 forks source link

[FEATURE] combined with Manim voice:slides1-voice1, slides2-voice2, slides3-voice3 #258

Open flmdaybreak opened 1 year ago

flmdaybreak commented 1 year ago

Description

I really appreciate the work you've done on this project. It's fantastic! I have a feature request to make the experience even better.

The effect I hope to achieve by integrating Manim voice is as follows: slides1-voice1, slides2-voice2, slides3-voice3, and so on. Within the current slides page, explanatory voice-over tailored for the current slide will be played. It's possible to switch slides even if the voice-over or animation hasn't finished playing. The corresponding voice-over and animation start simultaneously, but they can end at different times.

Thank you for considering this enhancement!

Screenshots

No response

Additional information

No response

jeertmans commented 1 year ago

Thanks for the suggestion! I think there are two mandatory steps for that:

  1. Add some audio output in the new player (v5), should be easy.
  2. Enable audio in HTML-produced file (currently disabled), but warning that you cannot have audio in the first slide (this is because most web browsers does not allow HTML to autoplay audio without user input, mostly to avoid audio popups).

And three optional ones:

  1. Document the support for basic audio.
  2. Document the support for ManimVoiceOver by explicitly showing an example (maybe the main tutorial)
  3. Maybe optional install manim_voiceover using extras.

I will not have time for that in the upcoming days, but this will hopefully be implemented sooner or later :-)

If anyone wants to try implementing this, feel free to fill a PR!