필터 지우기
필터 지우기

audio recording - synchronous execution

조회 수: 3 (최근 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 CenterFile Exchange에서 Audio 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