how to import an audio file ?

188 visualizaciones (últimos 30 días)
jérôme TAÏEB
jérôme TAÏEB el 29 de Sept. de 2018
Movida: DGM el 21 de Mayo de 2024
Hi,
I would like to write that in the command windows:
load handel.mat
filename = 'handel.mp3';
audiowrite(filename,y,Fs);
clear y Fs
[y,Fs] = audioread('handel.mp3');
but i don't know to import my audio file 'handel.mp3' from my hard disk to Matlab.
Can you help me?
thanks

Respuesta aceptada

Stephen23
Stephen23 el 29 de Sept. de 2018
Editada: Stephen23 el 29 de Sept. de 2018
Use audioread. Why do you think that your code is not working? What do you expect to happen?
  2 comentarios
jérôme TAÏEB
jérôme TAÏEB el 29 de Sept. de 2018
Movida: DGM el 21 de Mayo de 2024
the problem is the path of the audio file.
Does Matlab recognize the path of the audio file on the hard disk?
for example,in the following line:
[y,Fs] = audioread('handel.mp3')
if path of 'handel.mp3' is for example C:/Users/chemin1/chemin2,must i write:
[y,Fs] = audioread('C:/Users/chemin1/chemin2/handel.mp3')?
Marcus Niklasson
Marcus Niklasson el 7 de Dic. de 2021
Movida: DGM el 21 de Mayo de 2024
audioread("C:/Users/chemin1/chemin2/handel.mp3")

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by