Sound audio playing and recording simultaneously
조회 수: 5 (최근 30일)
이전 댓글 표시
Is it necessary to use DAQ toolbox to realize simultaneous audio playing and recording via sound card? Can audioplayer and audiorecorder objects achieve that?
댓글 수: 0
채택된 답변
Walter Roberson
2016년 1월 17일
It is necessary to use either DAQ or DSP to get simultaneous audio playing and recording if you want the two to be synchronized.
If you do not care about the two being synchronized, the audioplayer() play() method is asynchronous, and the audiorecorder() record() method is also asynchronous, so you can start one and then the other while still being able to react to user events.
댓글 수: 2
Walter Roberson
2016년 1월 18일
Then you probably want DSP Toolbox and configure for ASIO drivers.
If you were not using a sound card, then I would suggest DAQ, with timestamps on, so that you can do more precise analysis of latency and frequency response and phase effects.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!