Is it possible to extract a sound that we modified in matlab ?

8 ビュー (過去 30 日間)
Bastien Varanges
Bastien Varanges 2022 年 1 月 29 日
回答済み: Shreyan Basu Ray 2022 年 1 月 29 日
Hello, everyone.
I performed audio processing on a .wav file and I would like to know if it was possible to extract this modified file.
If anyone has an idea that would be cool :)
  1 件のコメント
Geoff Hayes
Geoff Hayes 2022 年 1 月 29 日
@Bastien Varanges - please clarify what you mean by "extract this modified file". Do you just want to read the data from the file with audioread?

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

採用された回答

Shreyan Basu Ray
Shreyan Basu Ray 2022 年 1 月 29 日
Hey Bastien !
If by extract you mean to save the modified audio signal from MATLAB then use audiowrite(filename,y,Fs). This function writes a matrix of audio data, y, with sample rate Fs to a file called filename. The filename input also specifies the output file format. The output data type depends on the output file format and the data type of the audio data, y.
A reference to help you -
Create a WAVE file from the example file handel.mat, and read the file back into MATLAB.
Write a WAVE (.wav) file in the current folder :
load handel.mat
filename = 'handel.wav';
audiowrite(filename,y,Fs);
clear y Fs
Read the data back into MATLAB using audioread : [y,Fs] = audioread(filename);
Listen to the audio : sound(y,Fs);
Hope this helps. Happy Matlabbing !

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by