bolna icon indicating copy to clipboard operation
bolna copied to clipboard

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

Open 7990satyam200 opened this issue 9 months ago • 0 comments

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

7990satyam200 avatar May 23 '24 11:05 7990satyam200