Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TheWash7 opened this issue Jul 17, 2024 · 0 comments

Comments

@TheWash7
Copy link

TheWash7 commented Jul 17, 2024

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);
          },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant