guides_record_stream
Recording PCM-16 to a Dart Stream.
Recording PCM-16 to a Dart Stream
Notes :
IOSink outputFile = await createFile();
StreamController<Food> recordingDataController = StreamController<Food>();
_mRecordingDataSubscription =
recordingDataController.stream.listen
((Uint8List buffer)
{
outputFile.add(buffer);
}
);
await _mRecorder.startRecorder(
toStream: recordingDataController.sink,
codec: Codec.pcm16,
numChannels: 1,
sampleRate: 48000,
);Last updated
Was this helpful?