BLACK FRIDAY SALE: Save big on all my Swift books and bundles! >>

Can I use AVFoundation classes for ultrasound data?

Forums > SwiftUI

Does anyone know if I can use the AVCaptureAudioFileOutput or AVCaptureAudioDataOutput classes on data with a sampling rate of 384000 samples per second (ie ultrasound)?

I am currently thinking of developing an ios app to capture data from an external usb ultrasound microphone. The microphone that I am considering is a class compliant audio device that provides 16 bit data at a rate of 384000 samples per second. I have been looking into the Apple documentation, especially the AVFoundation classes, but I have been unable to find out whether there is an upper limit on the sampling rate.

I have posted this on the IOS forum previously, but received no response. I guess that I posted on the wrong forum. If this is not the correct place to ask, and someone knows of a better place, I would be very pleased for any feedback.

Regards, James Housden

1      

Well a better place would be the Apple Developer forums. This is the kind of thing that Apple employees might know better than the rest of us.

( My guess is that is is microphone dependent).

1      

(1) I suggest you subscribe to the CoreAudio developer forum and post your question there: https://lists.apple.com/mailman/listinfo/coreaudio-api

(2) Does the standard ultrasound microphone for the type of imaging you're dealing with actually use a sampling rate of 384K samples/sec? No point in using a sampling rate more than 2.2X the frequency of the ultrasound signal (2X is the Nyquist frequency).

1      

Hacking with Swift is sponsored by RevenueCat

SPONSORED In-app subscriptions are a pain to implement, hard to test, and full of edge cases. RevenueCat makes it straightforward and reliable so you can get back to building your app. Oh, and it's free if your app makes less than $10k/mo.

Learn more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.