Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CjangCjengh committed Sep 7, 2022
1 parent 00ca1dc commit d59403f
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions MoeGoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def get_speaker_id(message):
except:
print('Failed to load!')
sys.exit(1)

while True:
if n_symbols!=0:
if n_symbols!=0:
while True:
choice = input('TTS or VC? (t/v):')
if choice == 't':
text = input('Text to read: ')
Expand Down Expand Up @@ -158,14 +158,15 @@ def get_speaker_id(message):

print('Successfully saved!')
ask_if_continue()
else:
model = input('Path of a hubert-soft model: ')
from hubert_model import hubert_soft
try:
hubert = hubert_soft(model)
except:
print('Failed to load!')
sys.exit(1)
else:
model = input('Path of a hubert-soft model: ')
from hubert_model import hubert_soft
try:
hubert = hubert_soft(model)
except:
print('Failed to load!')
sys.exit(1)
while True:
audio_path = input('Path of an audio file to convert:\n')
print_speakers(speakers)
audio = utils.load_audio_to_torch(audio_path, hps_ms.data.sampling_rate).unsqueeze(0).unsqueeze(0)
Expand Down

0 comments on commit d59403f

Please sign in to comment.