Commit Graph

8 Commits

Author SHA1 Message Date
9f91132a0a Formatting 2024-02-23 13:12:48 +01:00
2a102c62e3 Formatting 2024-02-23 09:56:54 +01:00
32b6b5c42e Formatting & improving imports 2024-02-23 09:50:43 +01:00
adce06bae3 Update font and font size in SimpleCaptioningEngine.py 2024-02-22 15:15:26 +01:00
bd00a49063 🐛 fix(GenerationContext.py): fix indentation issue in process() method
 feat(GenerationContext.py): add support for z-index of moviepy clips to improve video rendering
The indentation issue in the process() method has been fixed. The z-index of moviepy clips has been added to improve the rendering of the video. This allows the clips to be rendered in different layers based on their index, resulting in a more visually appealing video.
2024-02-21 09:06:36 +01:00
280df1dd67 Formatting 2024-02-20 14:47:54 +01:00
921470cc5d Add stroke color and stroke width to captioning engine 2024-02-18 22:58:39 +01:00
e3229518d4 🐛 fix(GenerationContext.py): fix import statements and add support for captioning engine
 feat(GenerationContext.py): add support for captioning engine in the GenerationContext class
The import statement for the `moviepy.editor` module is changed to `moviepy.editor as mp` to improve code readability. Additionally, the `gradio` module is imported as `gr` to improve code readability. The `GenerationContext` class now includes a `captioningengine` parameter and initializes a `captioningengine` attribute. The `setup_dir` method is modified to include a call to create a directory for the output files. The `get_file_path` method is modified to return the file path based on the output directory. The `process` method is modified to include additional steps for captioning. The `timed_script` attribute is added to store the result of the `ttsengine.synthesize` method. The `captioningengine` is used to generate captions and store them in the `captions` attribute. The final video is rendered using the `moviepy` library and saved as "final.mp4" in the output directory.
2024-02-17 18:47:30 +01:00