simultaneous app access to iphone microphone
Generated on 8/3/2024
1 search
To enable simultaneous app access to the iPhone microphone, you can use the new features provided by ScreenCaptureKit. Specifically, the session titled "Capture HDR content with ScreenCaptureKit" covers how to capture microphone audio along with screen and system audio.
Here are the relevant steps and properties you need to use:
- Capture Microphone Audio: Use the
captureMicrophone
property to turn on microphone capture. - Select Microphone Device: Use the
microphoneCaptureDeviceID
property to choose which microphone device to capture. - Receive Microphone Samples: Use the
SCStreamOutput
to receive microphone samples in your app.
For a detailed walkthrough, you can refer to the chapter "Add microphone output" in the session Capture HDR content with ScreenCaptureKit (07:14).
Relevant Sessions
If you need more specific code examples or further details, you might want to watch the session or refer to the official documentation provided by Apple.
![Customize spatial Persona templates in SharePlay](/_next/image?url=https%3A%2F%2Fdevimages-cdn.apple.com%2Fwwdc-services%2Fimages%2FC03E6E6D-A32A-41D0-9E50-C3C6059820AA%2F9331%2F9331_wide_250x141_2x.jpg&w=640&q=75)
Customize spatial Persona templates in SharePlay
Learn how to use custom spatial Persona templates in your visionOS SharePlay experience to fine-tune the placement of Personas relative to your app. We’ll show you how to adopt custom spatial Persona templates in a sample app with SharePlay, move participants between seats, and test your changes in Simulator. We’ll also share best practices for designing custom spatial templates that will make your experience shine.
![Capture HDR content with ScreenCaptureKit](/_next/image?url=https%3A%2F%2Fdevimages-cdn.apple.com%2Fwwdc-services%2Fimages%2FC03E6E6D-A32A-41D0-9E50-C3C6059820AA%2F9199%2F9199_wide_250x141_2x.jpg&w=640&q=75)
Capture HDR content with ScreenCaptureKit
Learn how to capture high dynamic colors using ScreenCaptureKit, and explore new features like HDR support, microphone capture, and straight-to-file recording.
![Meet AccessorySetupKit](/_next/image?url=https%3A%2F%2Fdevimages-cdn.apple.com%2Fwwdc-services%2Fimages%2FC03E6E6D-A32A-41D0-9E50-C3C6059820AA%2F9333%2F9333_wide_250x141_2x.jpg&w=640&q=75)
Meet AccessorySetupKit
Elevate your accessory setup experience with AccessorySetupKit. Display a beautiful pairing dialog with an image of your Bluetooth or Wi-Fi accessory — no trip to the Settings app required. Discover how to improve privacy by pairing only your app with an accessory. And learn how you can migrate existing accessories so they can be managed by AccessorySetupKit.
![Introducing enterprise APIs for visionOS](/_next/image?url=https%3A%2F%2Fdevimages-cdn.apple.com%2Fwwdc-services%2Fimages%2FC03E6E6D-A32A-41D0-9E50-C3C6059820AA%2F9267%2F9267_wide_250x141_2x.jpg&w=640&q=75)
Introducing enterprise APIs for visionOS
Find out how you can use new enterprise APIs for visionOS to create spatial experiences that enhance employee and customer productivity on Apple Vision Pro.
![Build compelling spatial photo and video experiences](/_next/image?url=https%3A%2F%2Fdevimages-cdn.apple.com%2Fwwdc-services%2Fimages%2FC03E6E6D-A32A-41D0-9E50-C3C6059820AA%2F9296%2F9296_wide_250x141_2x.jpg&w=640&q=75)
Build compelling spatial photo and video experiences
Learn how to adopt spatial photos and videos in your apps. Explore the different types of stereoscopic media and find out how to capture spatial videos in your iOS app on iPhone 15 Pro. Discover the various ways to detect and present spatial media, including the new QuickLook Preview Application API in visionOS. And take a deep dive into the metadata and stereo concepts that make a photo or video spatial.
![Optimize for the spatial web](/_next/image?url=https%3A%2F%2Fdevimages-cdn.apple.com%2Fwwdc-services%2Fimages%2FC03E6E6D-A32A-41D0-9E50-C3C6059820AA%2F9158%2F9158_wide_250x141_2x.jpg&w=640&q=75)
Optimize for the spatial web
Discover how to make the most of visionOS capabilities on the web. Explore recent updates like improvements to selection highlighting, and the ability to present spatial photos and panorama images in fullscreen. Learn to take advantage of existing web standards for dictation and text-to-speech with WebSpeech, spatial soundscapes with WebAudio, and immersive experiences with WebXR.