# OpenMicrophoneResponse.Builder

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/media/OpenMicrophoneResponse.java+class:androidx.car.app.media.OpenMicrophoneResponse.Builder) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

*** ** * ** ***


```
public final class OpenMicrophoneResponse.Builder
```

<br />

*** ** * ** ***

A builder for `https://developer.android.com/reference/androidx/car/app/media/OpenMicrophoneResponse`s.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/car/app/media/OpenMicrophoneResponse.Builder#Builder(androidx.car.app.media.CarAudioCallback)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/media/CarAudioCallback callback)` |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/media/OpenMicrophoneResponse` | `https://developer.android.com/reference/androidx/car/app/media/OpenMicrophoneResponse.Builder#build()()` Builds the `https://developer.android.com/reference/androidx/car/app/media/OpenMicrophoneResponse` for this builder. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/media/OpenMicrophoneResponse.Builder` | `https://developer.android.com/reference/androidx/car/app/media/OpenMicrophoneResponse.Builder#setCarMicrophoneDescriptor(android.os.ParcelFileDescriptor)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/ParcelFileDescriptor.html carMicrophoneDescriptor )` Sets the `https://developer.android.com/reference/android/os/ParcelFileDescriptor.html` that is to be used to read microphone bytes from the car. |

## Public constructors

### Builder

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
public Builder(@NonNull CarAudioCallback callback)
```

## Public methods

### build

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
public @NonNull OpenMicrophoneResponse build()
```

Builds the `https://developer.android.com/reference/androidx/car/app/media/OpenMicrophoneResponse` for this builder.

### setCarMicrophoneDescriptor

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
public @NonNull OpenMicrophoneResponse.Builder setCarMicrophoneDescriptor(
    @NonNull ParcelFileDescriptor carMicrophoneDescriptor
)
```

Sets the `https://developer.android.com/reference/android/os/ParcelFileDescriptor.html` that is to be used to read microphone bytes from the car.

This is only needed in projected case, where the car microphone comes from the host.