how to save wav from stream of audio data from bluetooth in Dart / flutter_blue

Viewed 165

im writing a simple FLutter/Dart app that get audio stream from BLE device ( 8Khz, 16Bit, Mono ).. im using flutter_blue as the package to connect the BLE device

i have succeeded in subscribing the service and get the List<int> stream of data for the audio from the BLE devices. As per device's doc, it said the data is 8Khz, 16bit and Mono.

i refer to Save audio stream / Uint8List data in file flutter on how to save the data to WAV file and since the OP used the same kind of audio as me.

However, the file that i save sounds so noisy and makes no sense at all.. i did everything that i can think of:

can someone guide me? im very new to flutter/dart and the syntax confuses me.. ( im coming from PHP )

0 Answers
Related