Update Auto_VoxNovel.py
Browse files- Auto_VoxNovel.py +3 -3
Auto_VoxNovel.py
CHANGED
@@ -2023,9 +2023,9 @@ def generate_audio():
|
|
2023 |
tts.tts_to_file(text=fragment, file_path=f"Working_files/temp/{temp_count}.wav")
|
2024 |
elif 'StyleTTS2' in selected_tts_model:
|
2025 |
print(f'{selected_tts_model} model is selected for voice cloning')
|
2026 |
-
|
2027 |
-
|
2028 |
-
|
2029 |
|
2030 |
#if the model selected is one of the fast voice clone models as in not really voice clone but use voice transfer
|
2031 |
#right now im setting all of the fast voice cloning to be run on the cpu come can only be run on cpu and I'm lazy rn lol
|
|
|
2023 |
tts.tts_to_file(text=fragment, file_path=f"Working_files/temp/{temp_count}.wav")
|
2024 |
elif 'StyleTTS2' in selected_tts_model:
|
2025 |
print(f'{selected_tts_model} model is selected for voice cloning')
|
2026 |
+
if 'STTS' not in locals():
|
2027 |
+
STTS = stts.StyleTTS2()
|
2028 |
+
STTS.inference(fragment, target_voice_path=list_reference_files(voice_actor)[0], output_wav_file=f"Working_files/temp/{temp_count}.wav")
|
2029 |
|
2030 |
#if the model selected is one of the fast voice clone models as in not really voice clone but use voice transfer
|
2031 |
#right now im setting all of the fast voice cloning to be run on the cpu come can only be run on cpu and I'm lazy rn lol
|