OpenMicrophoneResponse

@CarProtocol
@RequiresCarApi(value = 5)
public final class OpenMicrophoneResponse


The response for a call to open microphone.

This is a host-side interface for handling audio callbacks. To record the microphone, use CarAudioRecord.

Summary

Nested types

A builder for OpenMicrophoneResponses.

Public methods

@NonNull CarAudioCallbackDelegate

Returns the callback to use to communicate recording state.

@NonNull InputStream

Returns an InputStream to read the microphone bytes from.

Public methods

getCarAudioCallback

Added in 1.3.0
public @NonNull CarAudioCallbackDelegate getCarAudioCallback()

Returns the callback to use to communicate recording state.

getCarMicrophoneInputStream

Added in 1.3.0
public @NonNull InputStream getCarMicrophoneInputStream()

Returns an InputStream to read the microphone bytes from.