[問題] 使用wavwrite會有遺失資料情形

作者: j5307 (JJ)   2015-01-31 20:16:08
各位前輩們好
小弟目前正在做
[y,fs] = wavread(filename);
y = resample(y,newfs,fs);
wavwrite(y,newfs,'filename');
重取樣後的 y 進行存取 會出現warning情形
Warning: Data clipped during write to file:149.wav
In wavwrite>PCM_Quantize at 287
In wavwrite>write_wavedat at 309
In wavwrite at 138
In resamplebatch at 15
雖然可以存檔,但開啟後部份的y被會更改
而且這些更改會影響到實驗的辨識結果
不知道有沒有前輩了解 QQ
作者: niceallen   2015-02-02 21:40:00
wavwrite輸入的範圍 -1<=y<1 應該有值超出了除以最大值 縮放一下http://ppt.cc/95Qv 參考一下

Links booklink

Contact Us: admin [ a t ] ucptt.com