Creating a visual spectrum android application

I'm trying to make a sound spectrum visualizer something like this:

enter image description here

I already have an AAC player that connects to the audio stream and plays music. How to add visualization component now?

+4
source share
1 answer

If you are talking about the spectrum of an audio frequency spectrum, you can take the following steps:

  • Converting audio data to raw audio format, such as 16-bit PCM (possibly on Windows if you use a stream)
  • Use a fast Fourier transform library such as JTransforms to calculate the frequency spectrum from your window.
  • Visualize an array containing spectrum values
+1
source

Source: https://habr.com/ru/post/1439215/


All Articles