You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [48]: beep_segment=Sine(1000, sample_rate=8000).to_audio_segment(duration=4095)
In [49]: beep_segment.duration_secondsOut[49]: 4.094875In [52]: silence_segment=AudioSegment.silent(duration=4095, frame_rate=8000)
In [53]: silence_segment.duration_secondsOut[53]: 4.094875
I'm trying to later replace parts of audio file with this segments and getting the error
ValueError('attempt to assign array of size 186399 to extended slice of size 186400')
Expected behavior
I would expect duration_seconds to be 4095
Actual behavior
Some milliseconds are missing
Your System configuration
Python version: 3.11.8
Pydub version: 0.25.1
ffmpeg or avlib?: ffmpeg
ffmpeg/avlib version: 4.3.6-0+deb11u1
Is there an audio file you can include to help us reproduce?
not needed
The text was updated successfully, but these errors were encountered:
Hello, I'm facing the following issue.
Any help is appreciated
Steps to reproduce
I'm trying to later replace parts of audio file with this segments and getting the error
Expected behavior
I would expect duration_seconds to be 4095
Actual behavior
Some milliseconds are missing
Your System configuration
Is there an audio file you can include to help us reproduce?
not needed
The text was updated successfully, but these errors were encountered: