Skip to content

Commit

Permalink
add Sanskrit cleaners
Browse files Browse the repository at this point in the history
  • Loading branch information
CjangCjengh committed Sep 20, 2022
1 parent 3aabb9e commit 4ec4ac4
Show file tree
Hide file tree
Showing 6 changed files with 645 additions and 479 deletions.
4 changes: 2 additions & 2 deletions MoeGoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def get_label(text,label):
n_speakers = hps_ms.data.n_speakers if 'n_speakers' in hps_ms.data.keys() else 0
n_symbols = len(hps_ms.symbols) if 'symbols' in hps_ms.keys() else 0
speakers = hps_ms.speakers if 'speakers' in hps_ms.keys() else ['0']
use_f0 = hps_ms.data.use_f0 if 'use_f0' in hps_ms.data.keys() else False

net_g_ms = SynthesizerTrn(
n_symbols,
Expand Down Expand Up @@ -146,9 +147,8 @@ def get_label(text,label):
while True:
audio_path = input('Path of an audio file to convert:\n')
print_speakers(speakers)
import librosa
use_f0 = hps_ms.data.use_f0 if 'use_f0' in hps_ms.data.keys() else False

import librosa
if use_f0:
audio, sampling_rate = librosa.load(audio_path, sr=hps_ms.data.sampling_rate, mono=True)
audio16000 = librosa.resample(audio, orig_sr=sampling_rate, target_sr=16000)
Expand Down
Loading

0 comments on commit 4ec4ac4

Please sign in to comment.