sound card input and noise cancel
古いコメントを表示
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 件のコメント
michael scheinfeild
2012 年 10 月 5 日
編集済み: Walter Roberson
2012 年 10 月 5 日
Walter Roberson
2012 年 10 月 5 日
You are getting one second's worth of samples each time. Your sound is going to have traveled at least 660 feet before you start to output the canceling sound. That has no chance of being useful unless the speaker is at least 660 feet closer to the listener than the microphone is.
Daniel Shub
2012 年 10 月 5 日
I am not sure that this is true. If the noise is a low frequency periodic hum, for example a compressor motor, then slipped cycles shouldn't be a problem.
Walter Roberson
2012 年 10 月 5 日
Good point, Daniel.
michael scheinfeild
2012 年 10 月 6 日
採用された回答
その他の回答 (1 件)
michael scheinfeild
2012 年 10 月 6 日
0 投票
1 件のコメント
Walter Roberson
2012 年 10 月 6 日
In your code, change SamplesPerTrigger to 1024
カテゴリ
ヘルプ センター および File Exchange で Using audio files についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!