필터 지우기
필터 지우기

sound card input and noise cancel

조회 수: 3 (최근 30일)
michael scheinfeild
michael scheinfeild 2012년 10월 5일
hello i want to cancel some noise of frigirator in my house i want coninously input from sound card and output throw speakers signal with phase -180 what command coniounusly do it all command just record
y = wavrecord(31250*5,31250);
also is there beter way than sending to speaker -y , i was thinkink about some adaptive filter lms or wiener to cancel the noise in my room
  댓글 수: 5
Walter Roberson
Walter Roberson 2012년 10월 5일
Good point, Daniel.
michael scheinfeild
michael scheinfeild 2012년 10월 6일
yes it is harmonic noise from pumps tweo floors bentith my apartment it wake me up in the middel of the night i was thinking maybe just sending white noise to the air to cancel this noise

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2012년 10월 5일
Sending sounds out of phase 5 seconds after the original sound is not going to achieve any cancellation.
You need to use operations with low latency. The tolerable latency will depend upon the relative distances between the sound source, the microphone, the speaker, and the listener. You will have strong difficulty in getting the microphone latency to less than 6 ms in MATLAB, which is approximately 4 feet of travel for sound (at room temperature). Even getting to 6 ms is not easy, but it is easier as of R2012b (or was it R2012a) which added support for ASIO channels.
You might need the Data Acquisition Toolkit to access the data in nearly those time frames.

추가 답변 (1개)

michael scheinfeild
michael scheinfeild 2012년 10월 6일
lets say i want each time to process block of 1024 what is the command for both input and output
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 10월 6일
In your code, change SamplesPerTrigger to 1024

댓글을 달려면 로그인하십시오.

카테고리

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