Manim Onvoice Termux for Manim
Project description
Manim Onvoice
Manim plugin for adding speech to videos.
Special thanks to manim-voiceover, which Manim Onvoice is heavily based on.
manim-voiceover feature is only supported recorder
Requirement
pkg install manim
Usage
from manim import *
from manim_onvoice.voiceover_scene import VoiceoverScene
from manim_onvoice.services.recorder import RecorderService
class HelloWorld(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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
manim_onvoice-1.0.0.tar.gz
(12.6 kB
view details)
Built Distribution
File details
Details for the file manim_onvoice-1.0.0.tar.gz
.
File metadata
- Download URL: manim_onvoice-1.0.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b99c2d0e103b37909a3f7eff12a551912a6a7f8ce6f1cf0c773c553441c0639 |
|
MD5 | 0ff51da4333156d0ab31c618db524bfa |
|
BLAKE2b-256 | b48a3790e42054be6637aff22eb542ea12ff16d9af96ffa8288bfbfb97a80b64 |
File details
Details for the file manim_onvoice-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: manim_onvoice-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8e2cbf9faa0bf501309076034eb27ddad204b5ea3eeed00ba0097cd1a1ca6eb |
|
MD5 | ac3eaa435a3c05ee034eb5fe1bffec81 |
|
BLAKE2b-256 | b90ecfa33c137ae4816767930ebf895508c56091e2f57f27d5046b8dbfcc51f1 |