Real time audio feedback in matlab

조회 수: 3 (최근 30일)
Jaswandi
Jaswandi 2013년 12월 19일
I am using a sensor whose value am reading in matlab. Once the sensor value reaches a threshold, a sound note is to be heard. I have saved the sound as a .wav file which am reading at the beginning of the code. If threshold is reached, am using soundsc function to play the .wav file. This .wav file is just of duration 0.2 seconds. But when I run this code, I notice there is a time lag between the sensor reaching the threshold and the audio note being heard. The purpose of the sensor is to give real time auditory feedback, that's why it is important that there is no lag. Just for testing I used the beep function in matlab, this gives me real time sound when threshold is reached. Thus, there is no issue with the data acquisition process, the issue is with the soundsc function. Is there any solution to this? has anyone used matlab for real time audio feedback?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by