Skip to content

fix: repair StitcherService#126

Open
christopher-hampson wants to merge 1 commit intoManimCommunity:mainfrom
christopher-hampson:fix/stitcherservice
Open

fix: repair StitcherService#126
christopher-hampson wants to merge 1 commit intoManimCommunity:mainfrom
christopher-hampson:fix/stitcherservice

Conversation

@christopher-hampson
Copy link
Copy Markdown

Overview: What does this pull request change?

This PR repairs StitcherService by making two small changes in manim_voiceover/services/stitcher.py:

  • Renames _StitcherService to StitcherService to make part of the publicly accessible API
  • Fixes the segment metadata written to the output JSON so that each segment's "path" stores data_hash + ".mp3" rather than output_path (which currently results in a duplication media\voiceovers\media\voiceovers)

Motivation and Explanation: Why and how do your changes improve the library?

The use of StitcherService is regularly requested by users on Discord as a way to use their own pre-recorded audio in their videos and is more robust that the RecorderService.

This bugfix makes the StitcherService usable as a service, without needing to explicitly specify a cache_dir.

Links to added or changed documentation pages

Further Information and Comments

Fix first diagnosed and suggested in #88.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant