看板 MATLAB 關於我們 聯絡資訊
各位前輩們好 小弟目前正在做 [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 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.117.169.188 ※ 文章網址: https://www.ptt.cc/bbs/MATLAB/M.1422706574.A.B3E.html
niceallen: wavwrite輸入的範圍 -1<=y<1 應該有值超出了 02/02 21:40
niceallen: 除以最大值 縮放一下 02/02 21:42
niceallen: http://ppt.cc/95Qv 參考一下 02/02 21:42