Multiple conversion mp3 to wav ?
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I'd like to know how can I convert many mp3 songs into wav ones taken from a path in my computer. (here there's also a mono conversion)
The simple code for a single conversion is:
[audio,fs,nbits] = mp3read('BrainDamage.mp3');
wavwrite(audio,fs, nbits,'BrainDamage.wav');
[audioMono,fs,nbits] = wavread('BrainDamage.wav');
Mono = (audioMono(:,1)+audioMono(:,2))/2;
wavwrite(Mono,fs, nbits, 'BrainDamageMONO.wav');
I know that with:
songs =dir('C:\myPath\*.mp3');
for ii=1:size(songs,1)
...
i can select all the mp3 files in my folder but how can I change their extension together?
thank you for your help
0 commentaires
Réponses (1)
Voir également
Catégories
En savoir plus sur Audio and Video Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!