Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Format Range FFmpeg Arg
OGG -1 to 10 q:a
MP3 0 to 9 q:a
FLAC 0 to 12 compression_level
WEBM kBit/s b:a
M4A 1 to 5 vbr
WAV -- --

About

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

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages