-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.js
145 lines (145 loc) · 3.42 KB
/
install.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
module.exports = {
run: [
{
method: "shell.run",
params: {
message: [
"git clone -b alltalkbeta https://github.com/6Morpheus6/alltalk_tts app"
]
}
},
{
when: "{{which('apt')}}",
method: "shell.run",
params: {
sudo: true,
message: "apt install libaio-dev espeak-ng"
},
next: "all"
},
{
when: "{{which('yum')}}",
method: "shell.run",
params: {
sudo: true,
message: "yum install libaio-devel espeak-ng"
},
next: "all"
},
{
when: "{{which('brew')}}",
method: "shell.run",
params: {
message: "brew install espeak-ng"
},
next: "all"
},
{
when: "{{which('winget')}}",
method: "shell.run",
params: {
sudo: true,
message: "winget install --id=eSpeak-NG.eSpeak-NG -e --silent --accept-source-agreements --accept-package-agreements"
}
},
{
id: "all",
method: "shell.run",
params: {
conda: {
path: "conda_env",
python: "python=3.11.9"
},
path: "app",
message: [
"conda install -y -c conda-forge git-lfs",
"conda install -y conda-forge::ffmpeg=*=*gpl*"
]
}
},
{
when: "{{platform === 'win32'}}",
method: "shell.run",
params: {
conda: "conda_env",
path: "app",
message: [
"conda install -y -c conda-forge 'ffmpeg=*=h*_*' --no-deps",
"mkdir .\\models\\xtts",
"uv pip install https://github.com/erew123/alltalk_tts/releases/download/DeepSpeed-14.0/deepspeed-0.14.0+ce78a63-cp311-cp311-win_amd64.whl"
]
},
next: "torch"
},
{
when: "{{platform === 'linux'}}",
method: "shell.run",
params: {
conda: "conda_env",
path: "app",
message: [
"conda install -y -c conda-forge ffmpeg",
"conda install -y -c conda-forge cxx-compiler",
"conda install -y -c conda-forge gcc",
"mkdir -p ./models/xtts",
"uv pip install deepspeed"
]
},
next: "torch"
},
{
when: "{{platform === 'darwin'}}",
method: "shell.run",
params: {
conda: "conda_env",
path: "app",
message: [
"conda install -y -c conda-forge gcc",
"mkdir -p ./models/xtts"
]
}
},
{
id: "torch",
method: "script.start",
params: {
uri: "torch.js",
params: {
conda: "conda_env",
path: "app"
}
}
},
{
method: "shell.run",
params: {
env: {
"GIT_LFS_SKIP_SMUDGE": "1"
},
conda: "conda_env",
path: "app",
message: [
"uv pip install faiss-cpu",
"uv pip install -r ./system/requirements/requirements_standalone.txt",
"uv pip install -U gradio==4.32.2 fastapi==0.112.2",
"uv pip install -r ./system/requirements/requirements_parler.txt"
]
}
},
{
method: "hf.download",
params: {
path: "app/models/xtts",
"_": [ "coqui/XTTS-v2" ],
"exclude": '"*.wav" "samples" "*.md" "*.txt"',
"local-dir": "xttsv2_2.0.3",
}
},
{
method: "notify",
params: {
html: "Installation finished! Click the 'start' tab to get started."
}
}
]
}