pysepm icon indicating copy to clipboard operation
pysepm copied to clipboard

I had a problem when reading the wav file

Open wangshaoce opened this issue 4 years ago • 1 comments

log: /Users/wangshaoce/test_project/pysepm/test.py:6: WavFileWarning: Chunk (non-data) not understood, skipping it. fs, clean_speech = scipy.io.wavfile.read('1_speech_16000_Hz.wav') /Users/wangshaoce/test_project/pysepm/test.py:7: WavFileWarning: Chunk (non-data) not understood, skipping it. fs, noisy_speech = scipy.io.wavfile.read('1_noisySpeech_16000_Hz.wav') this is my code: import pysepm import scipy.io.wavfile import wavio import sys sys.path.append("../") fs, clean_speech = scipy.io.wavfile.read('1_speech_16000_Hz.wav') fs, noisy_speech = scipy.io.wavfile.read('1_noisySpeech_16000_Hz.wav')

fs, enhanced_speech = scipy.io.wavfile.read('1_processed_16000_Hz.wav')

pysepm.pesq(clean_speech, noisy_speech, fs)

pysepm.pesq(clean_speech, enhanced_speech, fs)

Google didn't solve my problem I look forward to your reply best wishes

wangshaoce avatar Feb 22 '21 06:02 wangshaoce

Hi wangshaoce

I think it shouldn't be a problem (it's just a warning). Scipy's wav read function just can't read some of the wav file's meta data. But this should have no influence on the audio signal. If you don't like the warning, just write the signals with Scipy's wav write function to new files (meta data will be removed) and read this files again.

schmiph2 avatar Feb 23 '21 06:02 schmiph2