Companion (lite)
Companion by Audio Tin, the lite edition for VS Code: an audio player and explorer in an editor tab. Click an audio file in the Explorer and it plays where you work, with its waveform, spectrogram and level meters. Switch to the folder view to go through a whole set of recordings, one key per file.
Read only and local: your files are never changed, and nothing is sent anywhere. In English, French and Spanish, following the VS Code display language.
Companion is an audio tool with its scope still being built up. This is a preview: comments are welcome at info@audiotin.com. More at audiotin.com.

What it does
Player: play and pause with Space, loop, seek and step 5 s, jump to start or end; the player floats over the views, out of the way, or docks under them.

Explorer: opens .wav, .flac, .mp3, .ogg, .opus, .aif, .aiff, .aifc and .sph files when you click them in the VS Code Explorer.
File mode, the overview of the whole file. Waveform on top (one lane per channel, peaks and RMS), spectrogram below (mix of the channels, linear frequency).

Inspector panel: format, rate, channels, duration, size; peak, RMS, crest, clipped count...
Folder mode, to explore a set of recordings: compact views and player on top, the audio files of the open file's folder below with name, length, format and size. Up / Down pick the previous or next file and play it straight away, in the same tab.

Follows the VS Code theme, light, dark and high contrast, and changes with it live.
WAV (PCM 16 and 24 bit, float 32), FLAC, MP3, Ogg Vorbis and Ogg Opus, decoded by the browser at the file's own sample rate. AIFF and AIFF-C (PCM 8 to 32 bit, sowt, float 32 and 64) and NIST SPHERE (.sph: PCM 8 to 32 bit either byte order, mu-law) are read by the extension's own reader, since the browser decoder cannot open them. Not supported: compressed AIFF-C, SPHERE with shorten, AAC.
Keys and mouse
| Action |
Input |
| Play / pause |
Space |
| Place the cursor |
Click (while playing, playback continues from there) |
| Cursor to start / end |
Home / End |
| Seek 5 s back / forward |
Left / Right |
| Stop |
Cmd . (Ctrl . off macOS) |
| Loop on / off |
L |
| Zoom in time at the pointer |
Wheel, trackpad pinch |
| Move the view to a place in the file |
Click or drag on the overview under the header |
| Zoom in / out at the centre |
+ or =, Shift + Up / -, Shift + Down |
| Fit the whole file |
0 |
| Move in time |
Shift + wheel, horizontal swipe, drag |
| Top frequency of the spectrogram |
Wheel on the frequency legend (200 Hz to Nyquist) |
| Waveform gain |
Wheel on the amplitude legend, or the inspector slider (0 to 48 dB) |
| POSITION and LENGTH in samples or as a duration |
SAMPLES / DURATION pills over the readouts (pointer over them) |
| Waveform only, spectrogram only, both |
1, 2, 3, or the WAVE / SPECTRAL / SPLIT keys in the header; file mode opens on SPLIT, folder mode on WAVE, each keeps its choice |
| Inspector on / off |
I, or the INSPECTOR key in the header |
| File / folder mode |
B, or the FILE / FOLDER keys in the header |
| Previous / next file of the folder, wrapping around (folder mode: plays it) |
Up / Down |
| Back to file mode (folder mode) |
Return, or double click a file |
| Theme picker |
Click the THEME box in the status bar; Esc or a click outside closes it |
| Next theme colour |
T |
Settings
No VS Code settings. The THEME box in the status bar opens the theme picker: COLOUR and SPECTROGRAM, the colour map. Dark or light follows the VS Code theme.

The inspector has the spectrogram range (40 to 120 dB below 0 dBFS, 100 dB by default) and the output volume (-60 to 0 dB, -6 dB by default), both kept when the tab is reopened. Page background, text and controls follow the VS Code theme. High contrast themes keep their own colours throughout; COLOUR is greyed out there.
Limits
- The whole file is decoded into memory, so the tab opens files up to 10 minutes of 48 kHz stereo (20 minutes of mono) and 500 MB; a longer or larger file shows a message saying why instead of the views. The length is read from the file header, so a long file is refused without decoding it. Memory stays under about 1 GB while a file loads.
- Local files. In a Remote SSH, WSL or container window the whole file is sent to the local webview before decoding.
- Folder mode lists the first 2000 audio files of a folder. Length and format come from the file headers and stay blank when a header does not give them (for example an MP3 with a large cover image in its tag). The tab keeps the name of the file it was opened on.
Licence
Free to use, at home or at work, including commercial work, at no charge. The extension may not be copied, changed, redistributed or reused, in whole or in part, in other software. It is free to use but not open source. Full terms: LICENSE. The readout font, Doto, has its own licence, the SIL Open Font License 1.1.
| |