Skip to content

Commit

Permalink
Update edge_tts_conversion.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Bebra777228 authored Aug 2, 2024
1 parent a3c5e5d commit b8f5d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/conversion/edge_tts_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def display_progress(percent, message, progress=gr.Progress()):
def voice_change(voice_model, vocals_path, output_path, pitch_change, f0_method, index_rate, filter_radius, volume_envelope, protect, hop_length, f0_min, f0_max):
try:
rvc_model_path, rvc_index_path = get_rvc_model(voice_model)
device = 'cuda:0'
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
config = Config(device, True)
hubert_model = load_hubert(device, config.is_half, HUBERT_MODEL_PATH)
cpt, version, net_g, tgt_sr, vc = get_vc(device, config.is_half, config, rvc_model_path)
Expand Down

0 comments on commit b8f5d74

Please sign in to comment.