To be brief, Spectrum is a room frequency and amplitude response application which makes use of the microphone to analyse the sound coming in, process them and display it to the user.
The app is completely offline and is free and open source. The full source code can be viewed here. (GitHub repository)
The microphone is used record the sound coming in and process it on the device. Since the app is completely offline, all user data remains on the device.