Can Matlab record an audio with a sampling frequency of 800 hz
7 次查看(过去 30 天)
显示 更早的评论
I am trying to write code to recieve waves of frequency between the range of 2200hz and 2400 hz with a sampling frequency of 800 hz. but i am not able to use the audio recorder code for such a low sampling frequency. can someone help me out.
thanks in advance.
1 个评论
Jonas
2022-6-28
this doesn't make sense to me, if you receive data in range up to 2400 Hz a sampling with 800Hz will lead to massive aliasing. shouldn't ypu use at least 2*2400Hz?
回答(1 个)
Walter Roberson
2022-6-28
audiorecorder cannot be used for this purpose. Although the frequency range supported is operating system and hardware specific, audiorecorder has a built-in lower limit of 1000 hz.
You will need to use some kind of data acquisition device, such as by National Instruments or MCC, or you will need to connect the input to a Raspberry Pi or Arduino and have it record. It might be difficult to get the devices to sample for a full 1/800 seconds, as opposed to shorter samples repeated 800 times per second. The technical details of how the device decides what value to use when the input is higher frequency may turn out to be important.
Are you certain that this is what you want to do? Most people would just sample at a higher rate supported by the hardware and then downsample. But as you appear to be wanting to study the effects of aliasing, you will want to know a fair bit about how the low-rate hardware is operating.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!