---
title: Managing Audio with SiriKit
framework: sirikit
role: sampleCode
role_heading: Sample Code
path: sirikit/managing-audio-with-sirikit
---

# Managing Audio with SiriKit

Control audio playback and handle requests to add media using SiriKit Media Intents.

## Overview

Overview note: This sample code project is associated with WWDC 2020 session Expand Your SiriKit Media Intents to More Platforms. Configure the Sample Code Project Before you run the sample code project in Xcode: Create an App Group for com.example.apple-samplecode.ControlAudio.Shared in your developer portal. Create an App ID for com.example.apple-samplecode.ControlAudio in your developer portal and enable it for App Groups, specifying the group you created in the previous step. Additionally, enable SiriKit. Create a Music ID for music.com.example.apple-samplecode.ControlAudio in your developer portal. Create a Key for the MusicKit service and create a developer token. For more information on this process, see Generating Developer Tokens. Copy the developer token to the developerToken variable in the AppleMusicAPIController.swift file. Create a provisioning profile for com.example.apple-samplecode.ControlAudio and com.example.apple-samplecode.ControlAudio.ControlAudioExtension in your developer portal. Associate the provisioning profiles with the project in Xcode signing settings.

## See Also

### Sample code

- [Adding Shortcuts for Wind Down](sirikit/adding-shortcuts-for-wind-down.md)
- [Booking Rides with SiriKit](sirikit/booking-rides-with-sirikit.md)
- [Handling Payment Requests with SiriKit](sirikit/handling-payment-requests-with-sirikit.md)
- [Handling Workout Requests with SiriKit](sirikit/handling-workout-requests-with-sirikit.md)
- [Integrating Your App with Siri Event Suggestions](sirikit/integrating-your-app-with-siri-event-suggestions.md)
- [Providing Hands-Free App Control with Intents](sirikit/providing-hands-free-app-control-with-intents.md)
- [Soup Chef: Accelerating App Interactions with Shortcuts](sirikit/soup-chef-accelerating-app-interactions-with-shortcuts.md)
- [Soup Chef with App Intents: Migrating custom intents](sirikit/soup-chef-with-app-intents-migrating-custom-intents.md)
