A spectrogram is a visual representation of how the frequency content of a signal evolves over time. Spectrograms reveal the rich underlying frequency structure of a signal, with time along the horizontal axis, frequency along the vertical axis, and color representing the strength of the frequency components. Spectrograms are widely used in science, engineering, music, and medicine to identify patterns and extract information that might otherwise be difficult to discern.
The interactive Spectrogram Synthesizer presented here takes a somewhat unconventional approach to exploring spectrograms: rather than starting with a sound and generating its spectrogram, you can draw a spectrogram and generate the corresponding sound. This allows you to directly explore the relationships between sound and its time-frequency representation, experiment with harmonics, frequency modulation, noise, and time-frequency resolution, and investigate the fascinating mathematical challenge of reconstructing a signal from its spectrogram.
Click here for the Spectrogram Synthesizer lab pdf file.
Click here to go to the Spectrogram Synthesizer
In the field of bioacoustics, spectrograms, also commonly referred to as sonograms, are indispensable tools for studying the sounds produced by living organisms. From the complex songs of birds and the underwater vocalizations of whales to the ultrasonic echolocation calls of bats, sonograms reveal distinctive acoustic signatures that can be used to identify species, characterize behavior, and investigate communication. They are particularly valuable in passive acoustic monitoring (PAM), where large collections of audio recordings are analyzed to study biodiversity, animal activity, and ecological dynamics. The Spectrogram Synthesizer includes a number of bioacoustic examples and supports ultrasonic frequencies well beyond the range of human hearing. By constructing artificial vocalizations and listening to them at reduced playback speeds, you can develop an appreciation for the remarkable diversity and complexity of the acoustic world around us, much of which ordinarily goes unheard.
The Spectrogram Synthesizer was developed through an iterative collaboration between a human scientist and a generative AI system (OpenAI's ChatGPT). Rather than simply asking AI to produce a finished application, we engaged in an extended scientific and technical dialogue, discussing the underlying mathematics, evaluating alternative reconstruction algorithms, establishing design objectives, and developing strategies for numerical validation. The AI contributed to the conceptual development, software implementation, numerical testing, and creation of educational materials, while the human scientist provided scientific direction, pedagogical context, critical evaluation, and independent testing of the application. Several features emerged organically through this dialogue that were not envisioned at the outset.
This project also serves as a small case study in how generative AI can be incorporated into the practice of science. The value of AI in this context extends well beyond its ability to write computer code or accelerate routine tasks. It provides an opportunity for scientists to explore ideas, consider alternative approaches, and develop tools that might otherwise remain unrealized because of limitations in time or technical expertise. Importantly, this mode of collaboration does not diminish the need for scientific understanding, critical thinking, or experimental validation. Rather, it creates new opportunities to exercise these skills. As scientists and educators, we have both an opportunity and a responsibility to explore how AI can augment human creativity and scientific inquiry without surrendering intellectual engagement or scientific judgment. We offer this project not only as an educational resource but also as a contribution to that broader discussion.