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:

  1. Capture Microphone Audio: Use the captureMicrophone property to turn on microphone capture.
  2. Select Microphone Device: Use the microphoneCaptureDeviceID property to choose which microphone device to capture.
  3. 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

  1. Capture HDR content with ScreenCaptureKit

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

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

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

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

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

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

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.