Skip to content

Commit

Permalink
Update vi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenTri1455 authored Mar 30, 2023
1 parent 8aaea43 commit 747d8d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions preprocessor/vi.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ def prepare_align(config):
wav, _ = librosa.load(wav_path, sampling_rate)
wav = wav / max(abs(wav)) * max_wav_value
wavfile.write(
os.path.join(out_dir, speaker, "{}.wav".format(base_name)),
os.path.join(out_dir, speaker, base_name),
sampling_rate,
wav.astype(np.int16),
)
with open(
os.path.join(out_dir, speaker, "{}.lab".format(base_name)),
"w",
) as f1:
f1.write(text)
f1.write(text)

0 comments on commit 747d8d3

Please sign in to comment.