record icon indicating copy to clipboard operation
record copied to clipboard

It would be very useful for development if the data size of the recording stream could be modified

Open TheWash7 opened this issue 7 months ago • 0 comments

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);
          },

TheWash7 avatar Jul 17 '24 07:07 TheWash7