Android Flutter Analyze Audio Waveform

前端 未结 1 1230
萌比男神i
萌比男神i 2021-02-06 19:10

I want to create a music app that has a view that resembles the one of SoundCloud, this one to be clear: This

I thought of creating a class like this for each bar:

1条回答
  •  梦如初夏
    2021-02-06 19:39

    Looks like you're looking into generating waveform graphs from audio. Have you tried anything so far?

    There's no short answer here though. You can start exploring with flutter_ffmpeg to generate waveform data from audio. It's up to you on what format you'll use for your waveform data. Once you got your data, you can generate waveform graphs in Flutter using CustomPaint. You can check the sample on this blog post. The waveform data used in the sample is in JSON.

    0 讨论(0)
提交回复
热议问题