Giter Club home page Giter Club logo

sound-helper's Introduction

Split Audio Files by Silence

This script splits audio files based on the length of silence detected in them.

Audio files are split into chunks wherever there is silence for a period longer than the specified minimum silence length.

The bat file is optimized for DDSP-SVC. Rewrite it as necessary.

Dependencies

CUI and GUI

  1. At first, install ffmpeg from the official website.
  2. Register the ffmpeg bin directory in the environment variable.
  3. Install what you need using pip:
pip install -r requirements.txt

Usage

Parameters

Non-required arguments are set to 0.

File Setting

Argument Description Default
--input Input directory path .\input
--output Output directory path .\output
--filename Output file name audio
--iformat Input file format (wav, mp3, etc.) wav
--oformat Output file format (wav, mp3, etc.) wav

Sound Setting

When LPF(lowpass) and HPF(highpass) are used together, they function as BPF(bandpass) and BSF(bandstop).

Argument Description Default
--silence Minimum silence length (ms) 500
--threshold Silence threshold (dBFS) -40
--samplerate Sample rate (Hz) 0
--invert Invert phase audio(0: false, 1: true) 0
--loudness Loudness normalization(dBFS) 0.0
--channel Number of audio channels(0: pass, 1: mono, 2: stereo) 0
--lowpass Low pass filter(Hz) 0
--highpass High pass filter(Hz) 0
--reverse Reverse audio(0: false, 1: true) 0

Output Setting

Argument Description Default
--combine Combine all output files(0: false, 1: true) 0
--skip Ignore files with less than the specified seconds (ms) 0
--merge Merge files under a certain number of seconds(ms) 0
--split Split files longer than a specified number of seconds(ms) 0
--prefix Prefix of output file name None

Example

example:

python sound.py --filename "inv_rev" --skip 2 --samplerate 44100 --invert 1 --reverse 1 --loudness -14 --pack 1 --highpass 80 --prefix --merge 5000 --split 10000 "rev_inv_hps"

Thanks

I was inspired to create this site.

sound-helper's People

Contributors

aiczk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.