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
When i read the file with audioSegment it cut my audio by int16 value in most of the cases, how can I avoid this?
Read code
from pydub import AudioSegment
import numpy as np
import soundfile as sf
audio_path = "audio.mp3"
audio = AudioSegment.from_file(audio_path)
waveform = np.array(audio.get_array_of_samples())
sf_wav, sr = sf.read(audio_path)
Pydub audio
Soundfile audio
As you can see pydub cutted me audio by value 32767 - int16, How can i avoid it?
The text was updated successfully, but these errors were encountered:
Sitcebelly
changed the title
Cut the highest amplitudes, by int16
Pydub AudioSegment.from_file cutted my audio by int16 value
Sep 8, 2023
Sitcebelly
changed the title
Pydub AudioSegment.from_file cutted my audio by int16 value
Pydub AudioSegment.from_file cut my audio by int16 value
Sep 10, 2023
When i read the file with audioSegment it cut my audio by int16 value in most of the cases, how can I avoid this?
Read code
Pydub audio
Soundfile audio
As you can see pydub cutted me audio by value 32767 - int16, How can i avoid it?
The text was updated successfully, but these errors were encountered: