sampleRate

public AudioCaptureOptions.Builder sampleRate(int sampleRate)

Sets the sample rate in hertz. The default is DEFAULT_SAMPLE_RATE.

Return

this builder

Parameters

sampleRate

the sample rate in hertz

Throws

when sampleRate is outside the range from MIN_SAMPLE_RATE to MAX_SAMPLE_RATE