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?
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?