record
record copied to clipboard
It would be very useful for development if the data size of the recording stream could be modified
When I turn on the recording stream, with the sample rate set to 48000 and the encodert set to pcm16bits.The listening Uint8List DATA duration is fixed at 160ms and I can't modify it, which prevents my programme from doing some fine manipulation of the audio data. If it is possible to modify the size of the audio buffer, this would be very useful for program development.
final stream = await audiorecorder.startStream(
const RecordConfig(
encoder: AudioEncoder.pcm16bits,
sampleRate: 48000,
numChannels: 1),
);
stream.listen(
(data) {
sink.add(data);
},