A real-time audio spectrum analyzer built using the IoToToy visual programming app for Android.
This project visualizes audio frequencies captured from the device microphone. It processes the signal through a Hann window and a Fast Fourier Transform (FFT) to display a frequency distribution from 0 Hz to 2 kHz.
The logic is defined in audio spectrum analyzer.json and follows this flow:
- Microphone: Configured to capture mono audio at 8000 Hz.
- Hann Window: Smooths the input signal to improve FFT accuracy.
- Buffer: Groups data into blocks of 512 samples.
- FFT: Converts audio from the Time Domain to the Frequency Domain.
- Square Sum: Calculates the power / magnitude of the frequencies.
- Array Slice: Extracts the 0 - 2000 Hz range for visualization.
- Progress Bar: Renders the spectrum visually on the screen.
- Install IoToToy on your Android device.
- Download the
audio spectrum analyzer.jsonfile from this repository. - Open IoToToy then FILE -> OPEN the JSON file.
- Run the diagram to see the real-time spectrum of your environment.
- Android device with microphone access.
- IoToToy app (v1.0.5 or newer).
