Coverage for src/manimgx/audio/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.16.1, created at 2026-10-26 05:52 +0000

1"""Audio: editable sounds, timed speech, and the voices that produce it. 

2 

3A voice is any function from text to [`Speech`][manimgx.Speech]: a sound that knows its 

4words and when each is said. [`Scene.say`][manimgx.Scene.say] speaks through the scene's voice 

5and plays animations during the words they belong to: `self.say("Here is [a circle].", 

6m.Create(circle))` draws the circle as "a circle" is said, and the film waits for the sentence. 

7What a voice says is kept (`cached`), so a scene renders again without speaking again. 

8 

9The voices ManimGX brings are text-to-speech services', a module each: [`fal`][manimgx.audio.fal] 

10(fal.ai's models, [`Fal`][manimgx.Fal]). Any other is a few lines away (see 

11[`Voice`][manimgx.Voice]). 

12""" 

13 

14from manimgx.audio import fal, sound 

15from manimgx.audio.fal import * 

16from manimgx.audio.sound import * 

17 

18__all__ = [] 

19__all__ += fal.__all__ 

20__all__ += sound.__all__