jhj0517 commited on
Commit
2699a55
·
1 Parent(s): 01bb392

Add translation yaml

Browse files
Files changed (2) hide show
  1. configs/translation.yaml +314 -0
  2. modules/utils/paths.py +1 -0
configs/translation.yaml ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ en: # English
2
+ Language: Language
3
+ File: File
4
+ Youtube: Youtube
5
+ Mic: Mic
6
+ T2T Translation: T2T Translation
7
+ BGM Separation: BGM Separation
8
+ GENERATE SUBTITLE FILE: GENERATE SUBTITLE FILE
9
+ Output: Output
10
+ Downloadable output file: Downloadable output file
11
+ Upload File here: Upload File here
12
+ Model: Model
13
+ Automatic Detection: Automatic Detection
14
+ File Format: File Format
15
+ Translate to English?: Translate to English?
16
+ Add a timestamp to the end of the filename: Add a timestamp to the end of the filename
17
+ Advanced Parameters: Advanced Parameters
18
+ Background Music Remover Filter: Background Music Remover Filter
19
+ Enabling this will remove background music: Enabling this will remove background music by submodel before transcribing
20
+ Enable Background Music Remover Filter: Enable Background Music Remover Filter
21
+ Save separated files to output: Save separated files to output
22
+ Offload sub model after removing background music: Offload sub model after removing background music
23
+ Voice Detection Filter: Voice Detection Filter
24
+ Enable this to transcribe only detected voice: Enable this to transcribe only detected voice parts by submodel.
25
+ Enable Silero VAD Filter: Enable Silero VAD Filter
26
+ Diarization: Diarization
27
+ Enable Diarization: Enable Diarization
28
+ HuggingFace Token: HuggingFace Token
29
+ This is only needed the first time you download the model: This is only needed the first time you download the model. If you already have models, you don't need to enter. To download the model, you must manually go to "https://huggingface.co/pyannote/speaker-diarization-3.1" and "https://huggingface.co/pyannote/segmentation-3.0" and agree to their requirement.
30
+ Device: Device
31
+ Youtube Link: Youtube Link
32
+ Youtube Thumbnail: Youtube Thumbnail
33
+ Youtube Title: Youtube Title
34
+ Youtube Description: Youtube Description
35
+ Record with Mic: Record with Mic
36
+ Upload Subtitle Files to translate here: Upload Subtitle Files to translate here
37
+ Your Auth Key (API KEY): Your Auth Key (API KEY)
38
+ Source Language: Source Language
39
+ Target Language: Target Language
40
+ TRANSLATE SUBTITLE FILE: TRANSLATE SUBTITLE FILE
41
+ Upload Audio Files to separate background music: Upload Audio Files to separate background music
42
+ Instrumental: Instrumental
43
+ Vocals: Vocals
44
+ SEPARATE BACKGROUND MUSIC: SEPARATE BACKGROUND MUSIC
45
+
46
+ ko: # Korean
47
+ Language: 언어
48
+ File: 파일
49
+ Youtube: 유튜브
50
+ Mic: 마이크
51
+ T2T Translation: T2T 자막 번역
52
+ BGM Separation: 배경 음악 분리
53
+ GENERATE SUBTITLE FILE: 자막 파일 생성
54
+ Output: 결과물
55
+ Downloadable output file: 결과물 파일 다운로드
56
+ Upload File here: 파일을 업로드 하세요
57
+ Model: 모델
58
+ Automatic Detection: 자동 감지
59
+ File Format: 파일 형식
60
+ Translate to English?: 영어로 번역합니까? (위스퍼 모델 자체 번역 기능)
61
+ Add a timestamp to the end of the filename: 파일 이름 끝에 타임스태프 더하기
62
+ Advanced Parameters: 고급 변수
63
+ Background Music Remover Filter: 배경 음악 제거 필터
64
+ Enabling this will remove background music: 받아쓰기 이전에 먼저 배경 음악을 제거할 서브 모델을 활성화 합니다.
65
+ Enable Background Music Remover Filter: 배경 음악 제거 필터를 활성화 합니다.
66
+ Save separated files to output: 분리한 파일 따로 출력 폴더에 저장
67
+ Offload sub model after removing background music: 배경 음악 제거 후 서브모델을 비활성화 합니다. (VRAM 이 부족할 시 체크하세요.)
68
+ Voice Detection Filter: 목소리 감지 필터
69
+ Enable this to transcribe only detected voice: 서브 모델에 의해 감지된 목소리 부분만 받아쓰기를 진행합니다.
70
+ Enable Silero VAD Filter: Silero VAD 필터 활성화
71
+ Diarization: 화자 구분
72
+ Enable Diarization: 화자 구분 활성화
73
+ HuggingFace Token: 허깅페이스 토큰
74
+ This is only needed the first time you download the model: 최초로 모델을 다운받을 때만 토큰이 필요합니다. 이미 다운로드 받으신 상태라면 입력하지 않아도 됩니다. 모델을 다운 받기 위해선 "https://huggingface.co/pyannote/speaker-diarization-3.1" 와 "https://huggingface.co/pyannote/segmentation-3.0" 에서 먼저 사용 지침에 동의하셔야 합니다.
75
+ Device: 사용 기기
76
+ Youtube Link: 유튜브 링크
77
+ Youtube Thumbnail: 유튜브 썸네일
78
+ Youtube Title: 유튜브 제목
79
+ Youtube Description: 유튜브 설명
80
+ Record with Mic: 마이크로 녹음하세요
81
+ Upload Subtitle Files to translate here: 번역할 자막 파일을 업로드 하세요
82
+ Your Auth Key (API KEY): DeepL API 키
83
+ Source Language: 원본 언어
84
+ Target Language: 대상 언어
85
+ TRANSLATE SUBTITLE FILE: 자막 파일 번역
86
+ Upload Audio Files to separate background music: 배경 음악을 분리할 오디오 파일을 업로드 하세요
87
+ Instrumental: 악기
88
+ Vocals: 보컬
89
+ SEPARATE BACKGROUND MUSIC: 배경 음악 분리
90
+
91
+ ja: # Japanese
92
+ Language: 言語
93
+ File: File
94
+ Youtube: Youtube
95
+ Mic: Mic
96
+ T2T Translation: T2T Translation
97
+ BGM Separation: BGM Separation
98
+ GENERATE SUBTITLE FILE: GENERATE SUBTITLE FILE
99
+ Output: Output
100
+ Downloadable output file: Downloadable output file
101
+ Upload File here: Upload File here
102
+ Model: Model
103
+ Automatic Detection: Automatic Detection
104
+ File Format: File Format
105
+ Translate to English?: Translate to English?
106
+ Add a timestamp to the end of the filename: Add a timestamp to the end of the filename
107
+ Advanced Parameters: Advanced Parameters
108
+ Background Music Remover Filter: Background Music Remover Filter
109
+ Enabling this will remove background music: Enabling this will remove background music by submodel before transcribing
110
+ Enable Background Music Remover Filter: Enable Background Music Remover Filter
111
+ Save separated files to output: Save separated files to output
112
+ Offload sub model after removing background music: Offload sub model after removing background music
113
+ Voice Detection Filter: Voice Detection Filter
114
+ Enable this to transcribe only detected voice: Enable this to transcribe only detected voice parts by submodel.
115
+ Enable Silero VAD Filter: Enable Silero VAD Filter
116
+ Diarization: Diarization
117
+ Enable Diarization: Enable Diarization
118
+ HuggingFace Token: HuggingFace Token
119
+ This is only needed the first time you download the model: This is only needed the first time you download the model. If you already have models, you don't need to enter. To download the model, you must manually go to "https://huggingface.co/pyannote/speaker-diarization-3.1" and "https://huggingface.co/pyannote/segmentation-3.0" and agree to their requirement.
120
+ Device: Device
121
+ Youtube Link: Youtube Link
122
+ Youtube Thumbnail: Youtube Thumbnail
123
+ Youtube Title: Youtube Title
124
+ Youtube Description: Youtube Description
125
+ Record with Mic: Record with Mic
126
+ Upload Subtitle Files to translate here: Upload Subtitle Files to translate here
127
+ Your Auth Key (API KEY): Your Auth Key (API KEY)
128
+ Source Language: Source Language
129
+ Target Language: Target Language
130
+ TRANSLATE SUBTITLE FILE: TRANSLATE SUBTITLE FILE
131
+ Upload Audio Files to separate background music: Upload Audio Files to separate background music
132
+ Instrumental: Instrumental
133
+ Vocals: Vocals
134
+ SEPARATE BACKGROUND MUSIC: SEPARATE BACKGROUND MUSIC
135
+
136
+ es: # Spanish
137
+ Language: Idioma
138
+ File: File
139
+ Youtube: Youtube
140
+ Mic: Mic
141
+ T2T Translation: T2T Translation
142
+ BGM Separation: BGM Separation
143
+ GENERATE SUBTITLE FILE: GENERATE SUBTITLE FILE
144
+ Output: Output
145
+ Downloadable output file: Downloadable output file
146
+ Upload File here: Upload File here
147
+ Model: Model
148
+ Automatic Detection: Automatic Detection
149
+ File Format: File Format
150
+ Translate to English?: Translate to English?
151
+ Add a timestamp to the end of the filename: Add a timestamp to the end of the filename
152
+ Advanced Parameters: Advanced Parameters
153
+ Background Music Remover Filter: Background Music Remover Filter
154
+ Enabling this will remove background music: Enabling this will remove background music by submodel before transcribing
155
+ Enable Background Music Remover Filter: Enable Background Music Remover Filter
156
+ Save separated files to output: Save separated files to output
157
+ Offload sub model after removing background music: Offload sub model after removing background music
158
+ Voice Detection Filter: Voice Detection Filter
159
+ Enable this to transcribe only detected voice: Enable this to transcribe only detected voice parts by submodel.
160
+ Enable Silero VAD Filter: Enable Silero VAD Filter
161
+ Diarization: Diarization
162
+ Enable Diarization: Enable Diarization
163
+ HuggingFace Token: HuggingFace Token
164
+ This is only needed the first time you download the model: This is only needed the first time you download the model. If you already have models, you don't need to enter. To download the model, you must manually go to "https://huggingface.co/pyannote/speaker-diarization-3.1" and "https://huggingface.co/pyannote/segmentation-3.0" and agree to their requirement.
165
+ Device: Device
166
+ Youtube Link: Youtube Link
167
+ Youtube Thumbnail: Youtube Thumbnail
168
+ Youtube Title: Youtube Title
169
+ Youtube Description: Youtube Description
170
+ Record with Mic: Record with Mic
171
+ Upload Subtitle Files to translate here: Upload Subtitle Files to translate here
172
+ Your Auth Key (API KEY): Your Auth Key (API KEY)
173
+ Source Language: Source Language
174
+ Target Language: Target Language
175
+ TRANSLATE SUBTITLE FILE: TRANSLATE SUBTITLE FILE
176
+ Upload Audio Files to separate background music: Upload Audio Files to separate background music
177
+ Instrumental: Instrumental
178
+ Vocals: Vocals
179
+ SEPARATE BACKGROUND MUSIC: SEPARATE BACKGROUND MUSIC
180
+
181
+ fr: # French
182
+ Language: Langue
183
+ File: File
184
+ Youtube: Youtube
185
+ Mic: Mic
186
+ T2T Translation: T2T Translation
187
+ BGM Separation: BGM Separation
188
+ GENERATE SUBTITLE FILE: GENERATE SUBTITLE FILE
189
+ Output: Output
190
+ Downloadable output file: Downloadable output file
191
+ Upload File here: Upload File here
192
+ Model: Model
193
+ Automatic Detection: Automatic Detection
194
+ File Format: File Format
195
+ Translate to English?: Translate to English?
196
+ Add a timestamp to the end of the filename: Add a timestamp to the end of the filename
197
+ Advanced Parameters: Advanced Parameters
198
+ Background Music Remover Filter: Background Music Remover Filter
199
+ Enabling this will remove background music: Enabling this will remove background music by submodel before transcribing
200
+ Enable Background Music Remover Filter: Enable Background Music Remover Filter
201
+ Save separated files to output: Save separated files to output
202
+ Offload sub model after removing background music: Offload sub model after removing background music
203
+ Voice Detection Filter: Voice Detection Filter
204
+ Enable this to transcribe only detected voice: Enable this to transcribe only detected voice parts by submodel.
205
+ Enable Silero VAD Filter: Enable Silero VAD Filter
206
+ Diarization: Diarization
207
+ Enable Diarization: Enable Diarization
208
+ HuggingFace Token: HuggingFace Token
209
+ This is only needed the first time you download the model: This is only needed the first time you download the model. If you already have models, you don't need to enter. To download the model, you must manually go to "https://huggingface.co/pyannote/speaker-diarization-3.1" and "https://huggingface.co/pyannote/segmentation-3.0" and agree to their requirement.
210
+ Device: Device
211
+ Youtube Link: Youtube Link
212
+ Youtube Thumbnail: Youtube Thumbnail
213
+ Youtube Title: Youtube Title
214
+ Youtube Description: Youtube Description
215
+ Record with Mic: Record with Mic
216
+ Upload Subtitle Files to translate here: Upload Subtitle Files to translate here
217
+ Your Auth Key (API KEY): Your Auth Key (API KEY)
218
+ Source Language: Source Language
219
+ Target Language: Target Language
220
+ TRANSLATE SUBTITLE FILE: TRANSLATE SUBTITLE FILE
221
+ Upload Audio Files to separate background music: Upload Audio Files to separate background music
222
+ Instrumental: Instrumental
223
+ Vocals: Vocals
224
+ SEPARATE BACKGROUND MUSIC: SEPARATE BACKGROUND MUSIC
225
+
226
+ de: # German
227
+ Language: Sprache
228
+ File: File
229
+ Youtube: Youtube
230
+ Mic: Mic
231
+ T2T Translation: T2T Translation
232
+ BGM Separation: BGM Separation
233
+ GENERATE SUBTITLE FILE: GENERATE SUBTITLE FILE
234
+ Output: Output
235
+ Downloadable output file: Downloadable output file
236
+ Upload File here: Upload File here
237
+ Model: Model
238
+ Automatic Detection: Automatic Detection
239
+ File Format: File Format
240
+ Translate to English?: Translate to English?
241
+ Add a timestamp to the end of the filename: Add a timestamp to the end of the filename
242
+ Advanced Parameters: Advanced Parameters
243
+ Background Music Remover Filter: Background Music Remover Filter
244
+ Enabling this will remove background music: Enabling this will remove background music by submodel before transcribing
245
+ Enable Background Music Remover Filter: Enable Background Music Remover Filter
246
+ Save separated files to output: Save separated files to output
247
+ Offload sub model after removing background music: Offload sub model after removing background music
248
+ Voice Detection Filter: Voice Detection Filter
249
+ Enable this to transcribe only detected voice: Enable this to transcribe only detected voice parts by submodel.
250
+ Enable Silero VAD Filter: Enable Silero VAD Filter
251
+ Diarization: Diarization
252
+ Enable Diarization: Enable Diarization
253
+ HuggingFace Token: HuggingFace Token
254
+ This is only needed the first time you download the model: This is only needed the first time you download the model. If you already have models, you don't need to enter. To download the model, you must manually go to "https://huggingface.co/pyannote/speaker-diarization-3.1" and "https://huggingface.co/pyannote/segmentation-3.0" and agree to their requirement.
255
+ Device: Device
256
+ Youtube Link: Youtube Link
257
+ Youtube Thumbnail: Youtube Thumbnail
258
+ Youtube Title: Youtube Title
259
+ Youtube Description: Youtube Description
260
+ Record with Mic: Record with Mic
261
+ Upload Subtitle Files to translate here: Upload Subtitle Files to translate here
262
+ Your Auth Key (API KEY): Your Auth Key (API KEY)
263
+ Source Language: Source Language
264
+ Target Language: Target Language
265
+ TRANSLATE SUBTITLE FILE: TRANSLATE SUBTITLE FILE
266
+ Upload Audio Files to separate background music: Upload Audio Files to separate background music
267
+ Instrumental: Instrumental
268
+ Vocals: Vocals
269
+ SEPARATE BACKGROUND MUSIC: SEPARATE BACKGROUND MUSIC
270
+
271
+ zh: # Chinese
272
+ Language: 语言
273
+ File: File
274
+ Youtube: Youtube
275
+ Mic: Mic
276
+ T2T Translation: T2T Translation
277
+ BGM Separation: BGM Separation
278
+ GENERATE SUBTITLE FILE: GENERATE SUBTITLE FILE
279
+ Output: Output
280
+ Downloadable output file: Downloadable output file
281
+ Upload File here: Upload File here
282
+ Model: Model
283
+ Automatic Detection: Automatic Detection
284
+ File Format: File Format
285
+ Translate to English?: Translate to English?
286
+ Add a timestamp to the end of the filename: Add a timestamp to the end of the filename
287
+ Advanced Parameters: Advanced Parameters
288
+ Background Music Remover Filter: Background Music Remover Filter
289
+ Enabling this will remove background music: Enabling this will remove background music by submodel before transcribing
290
+ Enable Background Music Remover Filter: Enable Background Music Remover Filter
291
+ Save separated files to output: Save separated files to output
292
+ Offload sub model after removing background music: Offload sub model after removing background music
293
+ Voice Detection Filter: Voice Detection Filter
294
+ Enable this to transcribe only detected voice: Enable this to transcribe only detected voice parts by submodel.
295
+ Enable Silero VAD Filter: Enable Silero VAD Filter
296
+ Diarization: Diarization
297
+ Enable Diarization: Enable Diarization
298
+ HuggingFace Token: HuggingFace Token
299
+ This is only needed the first time you download the model: This is only needed the first time you download the model. If you already have models, you don't need to enter. To download the model, you must manually go to "https://huggingface.co/pyannote/speaker-diarization-3.1" and "https://huggingface.co/pyannote/segmentation-3.0" and agree to their requirement.
300
+ Device: Device
301
+ Youtube Link: Youtube Link
302
+ Youtube Thumbnail: Youtube Thumbnail
303
+ Youtube Title: Youtube Title
304
+ Youtube Description: Youtube Description
305
+ Record with Mic: Record with Mic
306
+ Upload Subtitle Files to translate here: Upload Subtitle Files to translate here
307
+ Your Auth Key (API KEY): Your Auth Key (API KEY)
308
+ Source Language: Source Language
309
+ Target Language: Target Language
310
+ TRANSLATE SUBTITLE FILE: TRANSLATE SUBTITLE FILE
311
+ Upload Audio Files to separate background music: Upload Audio Files to separate background music
312
+ Instrumental: Instrumental
313
+ Vocals: Vocals
314
+ SEPARATE BACKGROUND MUSIC: SEPARATE BACKGROUND MUSIC
modules/utils/paths.py CHANGED
@@ -10,6 +10,7 @@ DIARIZATION_MODELS_DIR = os.path.join(MODELS_DIR, "Diarization")
10
  UVR_MODELS_DIR = os.path.join(MODELS_DIR, "UVR", "MDX_Net_Models")
11
  CONFIGS_DIR = os.path.join(WEBUI_DIR, "configs")
12
  DEFAULT_PARAMETERS_CONFIG_PATH = os.path.join(CONFIGS_DIR, "default_parameters.yaml")
 
13
  OUTPUT_DIR = os.path.join(WEBUI_DIR, "outputs")
14
  TRANSLATION_OUTPUT_DIR = os.path.join(OUTPUT_DIR, "translations")
15
  UVR_OUTPUT_DIR = os.path.join(OUTPUT_DIR, "UVR")
 
10
  UVR_MODELS_DIR = os.path.join(MODELS_DIR, "UVR", "MDX_Net_Models")
11
  CONFIGS_DIR = os.path.join(WEBUI_DIR, "configs")
12
  DEFAULT_PARAMETERS_CONFIG_PATH = os.path.join(CONFIGS_DIR, "default_parameters.yaml")
13
+ I18N_YAML_PATH = os.path.join(CONFIGS_DIR, "translation.yaml")
14
  OUTPUT_DIR = os.path.join(WEBUI_DIR, "outputs")
15
  TRANSLATION_OUTPUT_DIR = os.path.join(OUTPUT_DIR, "translations")
16
  UVR_OUTPUT_DIR = os.path.join(OUTPUT_DIR, "UVR")