Last modified by René Schmidt on 2025/03/26 14:55

From version 1.1 >
edited by René Schmidt
on 2025/03/10 17:37
To version < 2.5 >
edited by René Schmidt
on 2025/03/10 18:23
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Default language
... ... @@ -1,1 +1,1 @@
1 -en
1 +de
Content
... ... @@ -1,3 +1,41 @@
1 +conda create -nopenvoice python=3.9
2 +conda activate openvoice
3 +
4 +
5 +git clone https:~/~/github.com/myshell-ai/openVoice.git
6 +
7 +
8 +
9 +
10 +
11 + cd openVoice
12 + pip install -e .
13 + mkdir checkpoints_v2
14 + cd checkpoints_v2
15 + wget [[https:~~/~~/myshell-public-repo-host.s3.amazonaws.com/openvoice/checkpoints_v2_0417.zip>>https://myshell-public-repo-host.s3.amazonaws.com/openvoice/checkpoints_v2_0417.zip]]
16 +
17 +unzip checkpoints_v2_0417.zip
18 +
19 +
20 +mv checkpoints_v2 ~~/openVoice
21 +
22 +
23 +
24 +
25 +
26 +
27 +pip install git+https:~/~/github.com/cocktailpeanut/ov2.git
28 +
29 +
30 +
31 + cd ..
32 + pip install git+https:~/~/github.com/myshell-ai/MeloTTS.git
33 + python -m unidic download
34 + cd resources
35 + python3
36 +
37 +
38 +
1 1  import os
2 2  
3 3  import torch
... ... @@ -12,4 +12,23 @@
12 12  
13 13  output_dir = 'outputs_v2'
14 14  
15 -tone_color_converter = ToneColorCOnverter(f'{ckpt_converter}/config.json', device=device)
53 +tone_color_converter = ToneColorCOnverter(f' {ckpt_converter} /config.json', device=device)
54 +
55 +tone_color_converter.load_ckpt(f' {ckpt_converter} /checkpoint.pth')
56 +
57 +os.makedirs (output_dir, exist_ok=True)
58 +
59 +reference_speaker = 'resources/example_reference.mp3'
60 +
61 +target_se, audio_name = se_extractor.get_se(reference_speaker, tone_color_converter, vad=False)
62 +
63 +from melo.api import TTS
64 +
65 +src_path = f' {output_dir} /tmp.wav'
66 +
67 +speed = 1.0
68 +
69 +
70 +
71 +
72 +

Applications

Need help?

If you need help with XWiki you can contact: