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

❓ Help! My old code raise error after loading v5 model #485

Closed
Simon-chai opened this issue Jul 3, 2024 · 2 comments
Closed

❓ Help! My old code raise error after loading v5 model #485

Simon-chai opened this issue Jul 3, 2024 · 2 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@Simon-chai
Copy link

I used to use v4 model and everything is ok. Today I decide to try v5 model,and I load the v5 model from local,then my old code can't successfully run!The error come form this line of code:

audio:AudioSegment = AudioSegment.from_file(io.BytesIO(temp), format="webm")
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

And the error is :

File "D:\software\anaconda3\envs\myenv\Lib\site-packages\pydub\audio_segment.py", line 773, in from_file
    raise CouldntDecodeError(
pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: 1

I don't find any relation between my code and silero-vad model, and my code work just fine with v4 model. Do anyone have any idea?

@Simon-chai Simon-chai added the help wanted Extra attention is needed label Jul 3, 2024
@snakers4
Copy link
Owner

snakers4 commented Jul 3, 2024

Looks like an ffmpeg error that pydub uses as a backend.

Generally, sox based libraries work better for audio.

@Simon-chai
Copy link
Author

Looks like an ffmpeg error that pydub uses as a backend.

Generally, sox based libraries work better for audio.

Yes,I know the error,but what I don't know is, what have changed after I load the v5 model?Cause everything is ok when I use v4 model. All the thing I change is the model directory. Maybe I should reproducing it in the most simple code to locate the problem. Most likely is just because some of my dump code. If there is a bug,I will open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants