generating audio file through m.script

hi, i need an audiofile to generate any speech for particular frequency and for particular time. can u suggest me how to generate audiofile using m-file.... ?
Thanks Deepa.R

 採用された回答

madhan ravi
madhan ravi 2018 年 8 月 27 日
編集済み: madhan ravi 2018 年 8 月 27 日

0 投票

Try the below code:
recorder = audiorecorder;
disp('Start speaking.')
recorder.record(100); %100 refers to the seconds
while recorder.isrecording()
pause(0.1);
plot(recorder.getaudiodata());
drawnow();
end
disp('End of Recording.');

2 件のコメント

Deepa
Deepa 2018 年 8 月 27 日
what is the variable here to store the captured speech ?
Deepa
Deepa 2018 年 8 月 28 日
how to store the speech here ?

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCode Generation and Deployment についてさらに検索

質問済み:

2018 年 8 月 27 日

コメント済み:

2018 年 8 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by