{"id":3178,"date":"2023-06-08T15:16:42","date_gmt":"2023-06-08T19:16:42","guid":{"rendered":"https:\/\/michaelrowe01.com\/?p=3178"},"modified":"2023-06-08T15:16:44","modified_gmt":"2023-06-08T19:16:44","slug":"enhance-your-apps-audio-experience-with-airpods","status":"publish","type":"post","link":"https:\/\/michaelrowe01.com\/index.php\/blog\/enhance-your-apps-audio-experience-with-airpods\/","title":{"rendered":"Enhance your app\u2019s audio experience with AirPods"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">AirPods Automatic Switching for macOS<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This is based on users Intent&nbsp; with \u201cnow playing\u201d registration and user activities.<\/li>\n\n\n\n<li>AppStore apps support this by default<\/li>\n\n\n\n<li>Best practices &#8211;\n<ul class=\"wp-block-list\">\n<li>Your App should register for now playing if you are a media or long form app<\/li>\n\n\n\n<li>Conference or gaming should not register for now playing<\/li>\n\n\n\n<li>You&nbsp; should use Audio Services API to avoid unexpected behavior<\/li>\n\n\n\n<li>Conference apps should only enable microphone during the meeting and close it when the meeting session is done<\/li>\n\n\n\n<li>You should select default rout to play audio, avoid playing silence if the user hits pause<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Press to mute and unmute support in IOS17\/macOS 14<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Convenience being added by Press to Mute and UnMute by a simple press of the stem<\/li>\n\n\n\n<li>All CallKit apps get this support by default.<\/li>\n\n\n\n<li>To do this yourself just use AVAudioApplication to configure application wide audio behavior<\/li>\n\n\n\n<li>On the macOS it works a little bit differently, however the app is responsible for muting any uplink audio when the gesture is performed.&nbsp; There is additional API components you need to use.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Spatial Audio with AirPods<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>80% of Apple Music listeners use spacial audio<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"371\" data-attachment-id=\"3179\" data-permalink=\"https:\/\/michaelrowe01.com\/index.php\/blog\/enhance-your-apps-audio-experience-with-airpods\/attachment\/screenshot-2023-06-08-at-15-12-25-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-08-at-15.12.25-2.png?fit=1920%2C1080&amp;ssl=1\" data-orig-size=\"1920,1080\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-06-08-at-15.12.25-2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-08-at-15.12.25-2.png?fit=660%2C371&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-08-at-15.12.25-2.png?resize=660%2C371&#038;ssl=1\" alt=\"\" class=\"wp-image-3179\" srcset=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-08-at-15.12.25-2.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-08-at-15.12.25-2.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-08-at-15.12.25-2.png?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-08-at-15.12.25-2.png?resize=1536%2C864&amp;ssl=1 1536w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-08-at-15.12.25-2.png?w=1920&amp;ssl=1 1920w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Screenshot-2023-06-08-at-15.12.25-2.png?w=1320&amp;ssl=1 1320w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Note the last two options don\u2019t have API interface, it is enabled automatically for apps that register via Now Playing<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>AirPods Automatic Switching for macOS Press to mute and unmute support in IOS17\/macOS 14 Spatial Audio with AirPods<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_wp_convertkit_post_meta":{"form":"-1","landing_page":"0","tag":"0","restrict_content":"0"},"hide_page_title":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2,3],"tags":[718,719,680],"class_list":["post-3178","post","type-post","status-publish","format-standard","hentry","category-blog","category-personal-softwareandit","tag-airpods-pro","tag-spatial-audio","tag-wwdc23"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2aMa8-Pg","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/comments?post=3178"}],"version-history":[{"count":1,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3178\/revisions"}],"predecessor-version":[{"id":3180,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3178\/revisions\/3180"}],"wp:attachment":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/media?parent=3178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/categories?post=3178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/tags?post=3178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}