百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

vscode-audio-preview

> 开发工具
开源

VS代码扩展允许您预览并播放音频文件.

189 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

VS代码扩展允许您预览并播放音频文件.

audio-preview

You can play your audio file and preview its info on VS Code.
You can also check waveform and spectrogram.

Supported Audio Files: wav, mp3, aac, ogg, flac, opus, m4a, sph ... etc.

Available on Marketplace: https://marketplace.visualstudio.com/items?itemName=sukumo28.wav-preview
Repository: https://github.com/sukumo28/vscode-audio-preview

Note
Please consider using the built-in audio playback feature as well. When we developed this VS Code extension, VS Code did not bundle ffmpeg and had no audio playback capabilities. However, with updates, a built-in audio playback feature has been added. While this extension has finish its purpose, we will continue to maintain it slowly.

Features

How to preview audio.

  • If you want to display only a specific range of graphs, dragging on the graph will re-run analyze on the selected range.

    • By pressing the Ctrl key when dragging, you can select only the time range.
    • By pressing the Shift key when dragging, you can select only the value range.
  • If you want to return to the original range, right-click on the graph.

    • Pressing the Ctrl key when right-clicking, reset only the time range.
    • Pressing the Shift key when right-clicking, reset only the value range.
  • If you want to specify the numerical values in detail, you can set the values in the analyze tab found in the settings tab.

If this extension does not open by default, edit settings.json like below.

jsonc
"workbench.editorAssociations": {
    "*.wav": "wavPreview.audioPreview",
    "*.mp3": "wavPreview.audioPreview",
    ...
},

Settings

You can configure these options in settings.json or VS Code's GUI.
Configuration is completely optional.
There is no need to configure anything if you are just using this extension.

You can analyze audio automatically when you open it.

jsonc
"WavPreview.autoAnalyze": true

You can set the default values for the settings displayed in the settings tab as shown below.
To check all items, please refer to here.

jsonc
"WavPreview.playerDefault": {
  "initialVolume": 50
}
jsonc
"WavPreview.analyzeDefault": {
  "spectrogramVisible": false
}

Development

Contributions

Feel free to report Isuues and send Pull Requests on github.

If an error occurs and you create an issue, posting the log displayed in VSCode's DevTools to the issue may be useful for development and fix.
VSCode's DevTools can be opened in the following ways.

  • Press f12
  • Press shift + ctrl + I
  • Select Help > Toggle Developer Tools from the menu at the top of the screen

Build

  • Clone this repo
  • Install Dependencies: npm install
  • Build Container for decoder: docker build -t audio-decoder ./src/decoder/
  • Compile decoder.cpp to wasm: docker run --rm -v ${pwd}/src/decoder:/build -it audio-decoder make
  • Run Extension: f5

Test

npm run test
This command runs the tests in src directory.

Lint, Format

Linter
npm run lint

Formatter
npm run format
This is automatically applied upon saving due to the settings in the .vscode/settings.json of this project, so there is generally no need to run it manually.

References

Custom Editor: https://code.visualstudio.com/api/extension-guides/custom-editors
Custom Editor Example: https://github.com/microsoft/vscode-extension-samples/tree/main/custom-editor-sample

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptaudiomp3oggvscode-extension

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具