how to convert back to wav file after edit the data in wav file?

4 ビュー (過去 30 日間)
loong seow li
loong seow li 2016 年 5 月 5 日
コメント済み: loong seow li 2016 年 5 月 6 日
This is the code that I try to do, the wav_data is the data of
test5.wav,after get the data it show in
[302712,2]which have 302712 rows and 2 columns.
Next, I use the sortrows to rearrange the data and save in e,
so e is the new array of .wav. But, how to save as new wav file
after get new array of e? I not sure my method is correct or not...
if true
filedir=dir('test5.wav');
disp(filedir);
y = cell(1,length(filedir));
fs=y;
for ii = 1:length(filedir)
[y{ii},fs{ii}]=audioread(filedir(ii).name);
end
for ind_wav = 1:length(y)
wav_data = y{ind_wav,1};
end
p=size(wav_data);
disp(p);
d=ndims(wav_data);
e=sortrows(wav_data);
%disp(wav_data);
disp(e);
end

採用された回答

CS Researcher
CS Researcher 2016 年 5 月 5 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeArray Geometries and Analysis についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by