Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_StitcherService saves files with wrong file name #88

Open
mushunrek opened this issue May 9, 2024 · 0 comments
Open

_StitcherService saves files with wrong file name #88

mushunrek opened this issue May 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mushunrek
Copy link

Description of bug / unexpected behavior

When using the _StitcherService, an error occurs, because the hashed audiofile is searched for in the directory media/voiceovers/media/voiceovers instead of media/voiceovers.

How to reproduce the issue

Since the error lies in the search of an audiofile, the most basic example reproduces the error.

Code for reproducing the problem
class Example(VoiceoverScene):
    def construct(self):
        self.set_speech_service(_StitcherService("my_voice_recording.mp3"))
        with self.voiceover("Test"):
            pass    

Additional media files

Images/GIFs

ErrorStitcher

System specifications

irrelevant

Additional comments

The error can be fixed as follows: replace line 150 in stitcher.py by

            output_dict["segments"].append({"index": i, "path": data_hash + ".mp3"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants