How to stream live audio in Flutter and visualize waveform?

I’m trying to build a Flutter app that does the following:

Extract data from the audio stream and use it to create a real-time waveform visualization of the audio.

  1. Stream live audio from a URL.
  2. create a real-time waveform visualization of the audio.

Reading the audio is pretty easy, there is many audio player packages, but I’m having trouble processing the audio stream data and extracting the PCM data to display the waveform. How can I achieve this in Flutter using existing packages or any custom solution?

Read more here: Source link