Changes for page Install OpenVoice v2 Locally - Instantly Clone Voice with AI
Last modified by René Schmidt on 2025/03/26 14:55
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,9 +1,13 @@ 1 -conda create -n openvoice python=3.91 +conda create -nopenvoice python=3.9 2 2 conda activate openvoice 3 3 4 4 5 -git clone [[https:~~/~~/github.com/myshell-ai/openVoice.git>>https://github.com/myshell-ai/openVoice.git]]5 +git clone https:~/~/github.com/myshell-ai/openVoice.git 6 6 7 + 8 + 9 + 10 + 7 7 cd openVoice 8 8 pip install -e . 9 9 mkdir checkpoints_v2 ... ... @@ -13,15 +13,13 @@ 13 13 unzip checkpoints_v2_0417.zip 14 14 15 15 16 -mv checkpoints_v2 ~~/ OpenVoice20 +mv checkpoints_v2 ~~/openVoice 17 17 18 -cd .. 19 19 20 20 21 21 22 22 23 23 24 - 25 25 pip install git+https:~/~/github.com/cocktailpeanut/ov2.git 26 26 27 27 ... ... @@ -48,23 +48,4 @@ 48 48 49 49 output_dir = 'outputs_v2' 50 50 51 -tone_color_converter = ToneColorConverter(f' {ckpt_converter} /config.json', device=device) 52 - 53 -tone_color_converter.load_ckpt(f' {ckpt_converter} /checkpoint.pth') 54 - 55 -os.makedirs (output_dir, exist_ok=True) 56 - 57 -reference_speaker = 'resources/example_reference.mp3' 58 - 59 -target_se, audio_name = se_extractor.get_se(reference_speaker, tone_color_converter, vad=False) 60 - 61 -from melo.api import TTS 62 - 63 -src_path = f' {output_dir} /tmp.wav' 64 - 65 -speed = 1.0 66 - 67 - 68 - 69 - 70 - 53 +tone_color_converter = ToneColorCOnverter(f' {ckpt_converter} /config.json', device=device)