audio recording - synchronous execution

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 Kommentar

Geoff Hayes
Geoff Hayes am 12 Okt. 2015
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?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 12 Okt. 2015

1 Stimme

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.

Weitere Antworten (0)

Kategorien

Mehr zu Audio I/O and Waveform Generation finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 12 Okt. 2015

Kommentiert:

am 14 Okt. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by