<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/AudioContext/workout(intensityLevel:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "App Intents",
      "HealthKit",
      "AppIntents"
    ],
    "preciseIdentifier" : "s:10AppIntents12AudioContextV01_aB10_HealthKitE7workout14intensityLevelA2cDE016WorkoutIntensityI0V_tFZ"
  },
  "title" : "workout(intensityLevel:)"
}
-->

# workout(intensityLevel:)

A workout session of the given intensity level.

```
static func workout(intensityLevel: AudioContext.WorkoutIntensityLevel) -> AudioContext
```

## Parameters

`intensityLevel`

The intensity of the workout.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)