-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from prepare.align_wav_spec import Align | ||
import os | ||
from tqdm import tqdm | ||
|
||
align = Align(32768, 16000, 1024, 256, 1024) | ||
output_path = "singing_gt" | ||
input_path = "/home/yyu479/VISinger_data/wav_dump_16k" | ||
|
||
files = os.listdir(path=input_path) | ||
for i, wav_file in enumerate(tqdm(files)): | ||
suffix = os.path.splitext(os.path.split(wav_file)[-1])[1] | ||
if not suffix == ".wav": | ||
continue | ||
basename = os.path.splitext(os.path.split(wav_file)[-1])[0][:-7] | ||
align.normalize_wav( | ||
os.path.join(input_path, wav_file), os.path.join(output_path, wav_file) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters