Skip to main content

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


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)

Uploaded Source

Built Distribution

manim_onvoice-1.0.0-py2.py3-none-any.whl (14.7 kB view details)

Uploaded Python 2 Python 3

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

Hashes for manim_onvoice-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5b99c2d0e103b37909a3f7eff12a551912a6a7f8ce6f1cf0c773c553441c0639
MD5 0ff51da4333156d0ab31c618db524bfa
BLAKE2b-256 b48a3790e42054be6637aff22eb542ea12ff16d9af96ffa8288bfbfb97a80b64

See more details on using hashes here.

File details

Details for the file manim_onvoice-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for manim_onvoice-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d8e2cbf9faa0bf501309076034eb27ddad204b5ea3eeed00ba0097cd1a1ca6eb
MD5 ac3eaa435a3c05ee034eb5fe1bffec81
BLAKE2b-256 b90ecfa33c137ae4816767930ebf895508c56091e2f57f27d5046b8dbfcc51f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page