-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added RecorderService, PyAudio, Whisper * wip * Added silence trimming * Added word boundary detection with whisper STT * Changed voiceover dir structure * wip * Cosmetics * Updated docs * Minor
- Loading branch information
Showing
28 changed files
with
1,614 additions
and
839 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from manim import * | ||
from manim_voiceover import VoiceoverScene | ||
from manim_voiceover.services.recorder import RecorderService | ||
|
||
|
||
class RecorderExample(VoiceoverScene): | ||
def construct(self): | ||
self.set_speech_service(RecorderService(silence_threshold=-40.0)) | ||
|
||
circle = Circle() | ||
square = Square().shift(2 * RIGHT) | ||
|
||
with self.voiceover(text="This circle is drawn as I speak.") as tracker: | ||
self.play(Create(circle), run_time=tracker.duration) | ||
|
||
with self.voiceover(text="Let's shift it to the left 2 units.") as tracker: | ||
self.play(circle.animate.shift(2 * LEFT), run_time=tracker.duration) | ||
|
||
with self.voiceover(text="Now, let's transform it into a square.") as tracker: | ||
self.play(Transform(circle, square), run_time=tracker.duration) | ||
|
||
with self.voiceover(text="Thank you for watching."): | ||
self.play(Uncreate(circle)) | ||
|
||
self.wait() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from pathlib import Path | ||
|
||
DEFAULT_VOICEOVER_CACHE_DIR = "voiceovers" | ||
DEFAULT_VOICEOVER_CACHE_JSON_FILENAME = "cache.json" |
Oops, something went wrong.