Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
avnlearn committed Sep 10, 2024
1 parent 1f0ba7d commit 2dd56cf
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

## GUI (Using PySide6)

![GUI Recorder](https://github.com/avnlearn/manim-recorder/blob/main/assets/GUI%20recording.png?raw=true)
![GUI Recorder 1](https://github.com/avnlearn/manim-recorder/blob/main/assets/GUI%20recording_001-0.2.3.png?raw=true)

![GUI Recorder 1](https://github.com/avnlearn/manim-recorder/blob/main/assets/GUI%20recording_002-0.2.3.png?raw=true)

![GUI Recorder 1](https://github.com/avnlearn/manim-recorder/blob/main/assets/GUI%20recording_003-0.2.3.png?raw=true)

```python
from manim import *
Expand Down Expand Up @@ -71,3 +74,37 @@ class VoiceRecorder(RecorderScene):

self.wait()
```

## Termux Cli

```python
from manim import *
from manim_recorder.voiceover_scene import RecorderScene
from manim_recorder.recorder.termux import RecorderService
from pathlib import Path


class Recordering(RecorderScene):
def construct(self):
self.set_speech_service(
RecorderService(
)
)

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("This circle is drawn as I speak.") as tracker:
# self.safe_wait(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="Thank you for watching."):
self.play(Uncreate(circle))

self.wait()
```

0 comments on commit 2dd56cf

Please sign in to comment.