How do i reproduce audio from List<int> in flutter?
through this package you will find api called loadAndPlayUnit8List(Unit8List.fromList(List)) https://pub.dev/packages/soundpool
and another package also which provide same api called startPlayerFromBuffer method https://pub.dev/packages/flutter_sound
SuperCode
Computer Programmer with strengths in Web Development, Data Science, Deep Learning and Android Development. Works with languages Python, Java, Javascript, NodeJS and AJAX. Linux enthusiast with variable skills in security.
Updated on December 15, 2022Comments
-
SuperCode over 1 year
I have an app that i put together that streams the phone microphone using package mic_stream.
The package gets the microphone input as 8 or 16 bit PCM Stream but i haven't been able to find a way to reproduce the audio from the
List<int>
samples. The packages that are available seem to play sound from files.Is there someway I can reproduce the audio from the
List<int>
samples that are recorded?