Spectrogram ViewerSpectrogram viewer with file navigation for audio in Codium/VSCode. Supported formats
RequirementsPython 3 with matplotlib, and numpy. The extension automatically tries macOSPython 3 ships with macOS 12.3+. If you're on an older version or prefer Homebrew:
Linux
WindowsDownload and install Python 3 from python.org. During installation, check "Add Python to PATH". Then in a terminal:
For multiple Python installs (e.g. via conda or a virtualenv), set full path to the appropriate interpreter in Settings:
InstallationFrom source
Then in Codium / VSCode:
Packaging as a
|
| Setting | Default | Description |
|---|---|---|
spectrogramViewer.pythonPath |
python3 |
Path to Python executable |
spectrogramViewer.nMels |
128 |
Number of mel bands |
spectrogramViewer.fftSize |
2048 |
FFT window size |
spectrogramViewer.hopLength |
512 |
Hop length between frames |
spectrogramViewer.colorMap |
magma |
Color map (magma, viridis, inferno, plasma, gray) |
spectrogramViewer.maxDuration |
600 |
Max seconds to render (clips long files) |
spectrogramViewer.dpi |
150 |
Image DPI |
Usage
- Single-click any supported audio file in the Explorer → spectrogram opens in a tab.
- Click anywhere on the spectrogram to seek to that time position.
- Hover over the spectrogram to see the timestamp under the cursor.
- Use the audio player bar at the bottom for normal playback controls.
- Left/Right buttons at the top of the viewing window navigate between files.
- Spectrogram viewing parameters can be adjusted in the left-hand column.
AI Statement
This extension was developed with the assistance of AI. It is based on the YAAAT! audio annotation tool for bioacoustics analysis, and is intended as a complementary extension to that workflow. Currently under development.