---
title: "handle(intent:completion:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insetaudiosourceincarintenthandling/handle(intent:completion:)"
---

# handle(intent:completion:)

Handles changing the audio source.

## Declaration

```swift
func handle(intent: INSetAudioSourceInCarIntent, completion: @escaping @Sendable (INSetAudioSourceInCarIntentResponse) -> Void)
```

```swift
func handle(intent: INSetAudioSourceInCarIntent) async -> INSetAudioSourceInCarIntentResponse
```

## Parameters

- `intent`: The intent object containing details about the user’s request. Your handler has already resolved and confirmed the information in this object.
- `completion`: The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

## Discussion

Discussion Your implementation of this method should communicate with the vehicle and change the vehicle’s audio source to the requested audio source. When done, execute the provided block with a response object indicating whether or not the operation was successful.
