Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I had a problem when reading the wav file #6

Open
wangshaoce opened this issue Feb 22, 2021 · 1 comment
Open

I had a problem when reading the wav file #6

wangshaoce opened this issue Feb 22, 2021 · 1 comment

Comments

@wangshaoce
Copy link

wangshaoce commented Feb 22, 2021

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

@schmiph2
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants