Record 7.1.1 broke windows audio streaming for me. This is my very basic setup in my notifier, I pinned the version to 7.1.0 and it works on windows but on 7.1.1 it doesn't.
Future<void> start() async {
state = state.copyWith(recordState: .loading);
audioRecord = AudioRecorder();
if (audioRecord case final record?) {
if (!await record.hasPermission()) {
state = state.copyWith(recordState: .idle);
return;
}
final config = RecordConfig(
encoder: AudioEncoder.pcm16bits,
numChannels: 1,
sampleRate: 16_000,
);
final stream = await record.startStream(config);
state = state.copyWith(recordState: .running);
talker.info("Start");
stream.listen(
(audioBytes) {
talker.info("audioBytes.len: ${audioBytes.length}"); // Not seeing any logs since updating to 7.1.1
},
onError: (e) {
talker.error(e.toString());
},
onDone: () async {
talker.info("onDone");
state = state.copyWith(recordState: .idle);
},
);
}
}
Future<void> stop() async {
audioRecord?.stop();
audioRecord?.dispose();
audioRecord = null;
}
Thanks for the awesome package!
Record 7.1.1 broke windows audio streaming for me. This is my very basic setup in my notifier, I pinned the version to 7.1.0 and it works on windows but on 7.1.1 it doesn't.
Thanks for the awesome package!