How to read Audio File into Vector?
40 ビュー (過去 30 日間)
古いコメントを表示
Hello, I have to read a Audio File (.wav) into a vector.
I know how to plot it:
info = audioinfo('sound.wav');
[y, Fs] = audioread('sound.wav');
t = 0:1/Fs:info.Duration;
t = t(1:end-1);
plot(t,y);
xlabel('Time');
ylabel('Audio Signal');
But this Sript does not read the Audio into a Vector.
I also tried to read every single Sample, but this is to complex and I get error after error. Is there a simple way to do this?
2 件のコメント
Cris LaPierre
2020 年 7 月 15 日
It would be helpful if you could share the error messages as well as your sound.wav file.
採用された回答
Sugar Daddy
2020 年 7 月 15 日
編集済み: Sugar Daddy
2020 年 7 月 15 日
[y, Fs] = audioread('sound.wav');
sound_duration = length(y)/Fs;
t = 0:1/Fs:sound_duration;
t = t(1:end-1);
%%
soundsc(y,Fs);
%%
plot(t,y);
xlabel('Time');
ylabel('Audio Signal');
2 件のコメント
bob bob
2024 年 12 月 21 日
Any idea on how to reduce the # of points? I am trying to get the SVG to use in a graphic design setting so I will be altering the shape more in Illustrator but I would like to reduce the point by quite a bit
その他の回答 (2 件)
George james
2022 年 6 月 6 日
The help slides is providing the facility for a training program that has been producing high-quality audio. The https://www.resumesplanet.com/linkedin-profile-writing.php is quite a good option to get admission to these training programs.
0 件のコメント
Charlotte Oliver
2022 年 6 月 10 日
編集済み: Charlotte Oliver
2022 年 6 月 10 日
there is alot of mistakes in this specific code for the correct program just visit this one https://consumeratings.com/ It will provide you the best code moreover correct your mistakes as well. happy to help you all.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Audio and Video Data についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!