Socket
Book a DemoInstallSign in
Socket

vite-audio-transform

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-audio-transform

ViteJS plugin to convert and compress all your audio files using FFmpeg

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

vite-audio-transform

ViteJS plugin to convert and compress all your audio files using FFmpeg.

Requirements

You need to have FFmpeg installed (including the necessary encoding libraries) in your system.

Usage

Install using NPM.

npm install vite-audio-transform

Import it in your vite config.

export default defineConfig({
    plugins: [
        viteAudioTransform({ type: 'webm', quality: 4 }),
    ],
});

Quality

The quality setting differs for each of the formats.

FormatRangeFFmpeg Arg
OGG-1 to 10q:a
MP30 to 9q:a
FLAC0 to 12compression_level
WEBMkBit/sb:a
M4A1 to 5vbr
WAV----

Keywords

vite

FAQs

Package last updated on 27 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts