sampleRate property
The actual sample rate used for streaming. Only completes once a stream started.
Implementation
static Future<int> get sampleRate async {
_memoisedSampleRate ??= await _microphoneFuture.then((_) {
return _microphoneMethodChannel.invokeMethod("getSampleRate")
.then((value) => (value as double).toInt());
});
return _memoisedSampleRate!;
}