NEW: Learn to build amazing SwiftUI apps for macOS with my new book! >>

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 Spend less time managing in-app purchase infrastructure so you can focus on building your app. RevenueCat gives everything you need to easily implement, manage, and analyze in-app purchases and subscriptions without managing servers or writing backend code.

Get Started

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

Reply to this topic…

You need to create an account or log in to reply.

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.