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

Eleven Labs : pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: 1 #193

Open
7990satyam200 opened this issue May 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@7990satyam200
Copy link

7990satyam200 commented May 23, 2024

Timestamp:
Date and Time: May 23, 2024, at 16:47:15.
Severity:
Error: This issue is classified as an error.
Component:
Component: Eleven Labs Synthesizer.
Context:
The process encountered an error while generating audio using the Eleven Labs Synthesizer.
Details:
Traceback:

File "/usr/local/lib/python3.10/site-packages/bolna/synthesizer/elevenlabs_synthesizer.py", line 225, in generate
wav_bytes = convert_audio_to_wav(audio, source_format="mp3")
File "/usr/local/lib/python3.10/site-packages/bolna/helpers/utils.py", line 347, in convert_audio_to_wav
audio = AudioSegment.from_file(io.BytesIO(audio_bytes), format=source_format)
...
pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: 1
Error Message:

Decoding failed. ffmpeg returned error code: 1
Failure Point:

The failure occurred during the conversion of audio from MP3 format to WAV format.
The error arose while reading frame size, specifically at position 1026.
The inner protocol failed to seekback, returning -38.
Additional Information:

The cache statistics show no hits or misses, implying a lack of cache utilization.
The error occurred again at a different timestamp, with similar details.
Impact:
The error disrupts the audio generation process, hindering the expected outcome.
Root Cause:
The root cause of the error lies in the failure to decode the MP3 audio file using FFMPEG, leading to the inability to proceed with the audio conversion.
Steps to Reproduce:
Attempt to generate audio using the Eleven Labs Synthesizer with an MP3 input file.
Observe the error occurring during the conversion process.
Expected Behavior:
The audio conversion process should successfully convert the MP3 file to WAV format without encountering any decoding errors.
Actual Behavior:
Decoding fails with FFMPEG returning error code 1 during the audio conversion process.
Possible Solutions:
Investigate and update FFMPEG configuration.
Verify the integrity of input MP3 files.
Update dependencies (FFMPEG, Pydub) to the latest versions.
Environment:
Python 3.10
Operating System: MAC
Relevant libraries/dependencies versions

@prateeksachan prateeksachan self-assigned this May 23, 2024
@prateeksachan prateeksachan added the bug Something isn't working label May 23, 2024
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