Hello all, I am interested to know how can plot real time sine wave graph of speech signal and also would like to know how to implementation of LPF in app designer.

1 回表示 (過去 30 日間)
I would be so greateful, if anyone will help me out in logical way. thank you

回答 (1 件)

Sai Kiran
Sai Kiran 2023 年 3 月 6 日
編集済み: Sai Kiran 2023 年 3 月 6 日
Hi,
As per my understanding you want to plot the real time speech signal in matlab.
Please follow the below code to record any audio and to plot the signal.
recObj=audiorecorder;
recDuration = 5; % duration in seconds
disp("Begin speaking.")
recordblocking(recObj,recDuration);
disp("End of recording.")
play(recObj);
y = getaudiodata(recObj);
plot(y);
For futher information on analyzing the signals , refer to the documentation https://in.mathworks.com/help/matlab/import_export/record-and-play-audio.html
You can design the Low pass filter according to your application, refer to the documentation.
You can add any MATLAB code in the app designer as a callback function. It depends on your design requirements.
I hope it helps!
Thanks
Sai Kiran Ratna
  3 件のコメント
Sai Kiran
Sai Kiran 2023 年 3 月 9 日
Hi,
In the app designer you can add a button which enables you to record the signal, for this you can add the code mentioned above to a specific button.
Please refer to the following link to get more info.
I hope it helps!
Thanks!
Kulbir
Kulbir 2023 年 3 月 21 日
Hi , i am doing. and will reach out you in case of any query. than you very much

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

カテゴリ

Help Center および File ExchangeSimulation, Tuning, and Visualization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by