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

看板MATLAB作者 (JJ哥)時間10年前 (2015/01/31 20:16), 編輯推噓1(102)
留言3則, 1人參與, 最新討論串1/1
各位前輩們好 小弟目前正在做 [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

02/02 21:40, , 1F
wavwrite輸入的範圍 -1<=y<1 應該有值超出了
02/02 21:40, 1F

02/02 21:42, , 2F
除以最大值 縮放一下
02/02 21:42, 2F

02/02 21:42, , 3F
http://ppt.cc/95Qv 參考一下
02/02 21:42, 3F
文章代碼(AID): #1KpCUEi- (MATLAB)
文章代碼(AID): #1KpCUEi- (MATLAB)