myshell-ai / OpenVoice

Instant voice cloning by MyShell.
https://research.myshell.ai/open-voice
MIT License
27.07k stars 2.62k forks source link

demo_part3.ipynb 'target_se' is not defined #223

Open IdoWSC opened 1 month ago

IdoWSC commented 1 month ago

NameError Traceback (most recent call last) Cell In[11], line 36 31 # Run the tone color converter 32 encode_message = "@MyShell" 33 tone_color_converter.convert( 34 audio_src_path=src_path, 35 src_se=source_se, ---> 36 tgt_se=target_se, 37 output_path=save_path, 38 message=encode_message)

NameError: name 'target_se' is not defined

vEduardovich commented 1 month ago

@IdoWSC 'target_se' was already defined. reference_speaker = 'resources/example_reference.mp3' # This is the voice you want to clone target_se, audio_name = se_extractor.get_se(reference_speaker, tone_color_converter, vad=False)