How to save audio in .mat file
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi I'm a beginner in matlab and i want to save audio in .mat file how can i do that?
0 Commenti
Risposte (1)
KSSV
il 20 Apr 2017
y = rand(10000,1) ; % some random signal
Fs = 1100 ; % som frequency
save demo.mat ; % save the data into .mat file
clear y Fs % remove the variables
load demo.mat ;
filename = 'handel.wav';
audiowrite(filename,y,Fs);
[y,Fs] = audioread('handel.wav');
sound(y,Fs);
% clear sound
5 Commenti
Shreyan Basu Ray
il 5 Ott 2021
@Soulaimene Jaoua change the extension from .wav to .mp3 by simply renaming the extension and then create the .mat file
Vedere anche
Categorie
Scopri di più su Audio and Video Data in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!