how to import an audio file ?

238 ビュー (過去 30 日間)
jérôme TAÏEB
jérôme TAÏEB 2018 年 9 月 29 日
コメント済み: Marcus Niklasson 2021 年 12 月 7 日
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

採用された回答

Stephen23
Stephen23 2018 年 9 月 29 日
編集済み: Stephen23 2018 年 9 月 29 日
Use audioread. Why do you think that your code is not working? What do you expect to happen?

その他の回答 (1 件)

jérôme TAÏEB
jérôme TAÏEB 2018 年 9 月 29 日
編集済み: jérôme TAÏEB 2018 年 9 月 29 日
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')?
  1 件のコメント
Marcus Niklasson
Marcus Niklasson 2021 年 12 月 7 日
audioread("C:/Users/chemin1/chemin2/handel.mp3")

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by