Skip to content

davychxn/EXPLOIT-WAV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

A Preparation Toolset for WAV Files

Trim Tool

Functionality

Trim heading and Trailing silence from WAV files.

Before:

WAV before

After:

WAV after

The beginning section of the processed WAV looks ugly?

Don't worry, if we zoom in, it actually is:

WAV after zoomed

Background

Most of the WAV files have heading and trailing silence ranges, either you got them from Audio Recorder or Speech Synthesis. We want to filter them sometimes.

There two existing options:

  1. Skip the H&T frames with zero value in the WAV file.

  2. Use librosa.effects.trim.

Disadvantage of the two: Weren't able to remove inaudible frames with tiny noise clearly enough.

Usage

  1. Modify 'input_path' and 'output_path' in 'script_configs.json' manually. Code will search for WAV files inside 'input_path'.

  2. py trim_wav.py

Notice

Code is written only for 16-bit WAV for now. Haven't tested with 24-bit WAV.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages