This issue has been somewhat brought up in another post, but I also wanted to point out that the scipy.spectrogram function used in compute_spectrum_welch is now considered a legacy function.
There's a possibility that it gets deprecated in future SciPy versions. To avoid an issue in the future, would it be possible to use ShortTimeFFT.spectrogram instead?
This issue has been somewhat brought up in another post, but I also wanted to point out that the scipy.spectrogram function used in compute_spectrum_welch is now considered a legacy function.
There's a possibility that it gets deprecated in future SciPy versions. To avoid an issue in the future, would it be possible to use ShortTimeFFT.spectrogram instead?