OpenMicrophoneResponse

@CarProtocol
@RequiresCarApi(value = 5)
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 functions

CarAudioCallbackDelegate

Returns the callback to use to communicate recording state.

InputStream

Returns an InputStream to read the microphone bytes from.

Public functions

getCarAudioCallback

Added in 1.3.0
fun getCarAudioCallback(): CarAudioCallbackDelegate

Returns the callback to use to communicate recording state.

getCarMicrophoneInputStream

Added in 1.3.0
fun getCarMicrophoneInputStream(): InputStream

Returns an InputStream to read the microphone bytes from.