audio recording - synchronous execution

1 回表示 (過去 30 日間)
moose
moose 2015 年 10 月 12 日
コメント済み: moose 2015 年 10 月 14 日
Hello,
I want to record audio from laptop's microphone and simultaneously "hit" play on some other non-matlab application.
I am using the following to record the audio -
recObj = audiorecorder;
recordblocking(recObj , 10);
what's the best way to do that the above script will start the exact moment I press a button with my mouse on some other application?
Thanks
  1 件のコメント
Geoff Hayes
Geoff Hayes 2015 年 10 月 12 日
Moose - to be clear, you want your MATLAB script to somehow "listen" for when the play button has been pressed on some other non-MATLAB application. Is this correct?

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

採用された回答

Walter Roberson
Walter Roberson 2015 年 10 月 12 日
Use the Data Acquisition Toolbox and configure it for hardware triggering of the same hardware event that marks the beginning of whatever is producing the sound.
Or use Java Robot Class to send the mouse click to the other application.
  1 件のコメント
moose
moose 2015 年 10 月 14 日
Thank you Walter. I've used the Robot class.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by