フィルターのクリア

plotting the recorded sound while recording

6 ビュー (過去 30 日間)
Huseyin
Huseyin 2014 年 11 月 26 日
コメント済み: Walter Roberson 2018 年 6 月 13 日
Hi,
Is it possible to record speech from microphone and plot it continuously?
I tried to use "audiorecorder" but, it plots the results after recording. What I want to do is, for instance I want to record for 5 sec. While recording I want to see what is recorded in every sec. X-axis (time) should be between 0 and 5 at the end of the recording and the whole record must be shown on one plot.
Thanks...

採用された回答

Geoff Hayes
Geoff Hayes 2014 年 11 月 26 日
編集済み: Geoff Hayes 2014 年 11 月 26 日
Huseyin - yes, you can do what you want using the audiorecorder and a timer function that could fire every one second and process/plot the data captured in that last one second. See How to record and analyze audio in real-time for an idea of how to proceed.
See also How to trigger the microphone to record via a GUI pushbutton for an example that provides information.
  47 件のコメント
hoda kazemzadeh
hoda kazemzadeh 2018 年 6 月 13 日
Geoff- I have an important issue, I posted new question but I ask you again here because my code is always this one that we disscused in this post. I want to continue recording for long time (one hour for example), but the data accumulates in samples and after a while I need to remove data from memory otherwise Matlab would end because of memory problem. How is it possible to flush data of samples sometimes?
samples=getaudiodata(hObject)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by