Gazou-Seiri-Bu commited on
Commit
43e21aa
·
verified ·
1 Parent(s): e44d12b

Upload 4 files

Browse files
Auto-Voice-Story+.png ADDED

Git LFS Details

  • SHA256: ab6d89d87728da4e392944099474730da45839cc8b0565edb61c9d5804b6e572
  • Pointer size: 131 Bytes
  • Size of remote file: 457 kB
Auto-Voice-Story.png ADDED

Git LFS Details

  • SHA256: 5af49393f785a78b3d8e5a0ef8623b0d9cfb45a9ce1668715734470ab0ac5c90
  • Pointer size: 132 Bytes
  • Size of remote file: 1.89 MB
Auto_Voice_Story.py ADDED
@@ -0,0 +1,462 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import re
3
+ import io
4
+ import soundfile
5
+ import requests
6
+ import tempfile
7
+ import winsound
8
+ import time
9
+ import subprocess
10
+
11
+ class Play_Voice_SBV2:
12
+ @classmethod
13
+ def INPUT_TYPES(s):
14
+ return {
15
+ "required":{
16
+ "model_name": ("STRING", {"forceInput": True, "default": "jvnv-F1"}),
17
+ "voice_text": ("STRING", {"forceInput": True}),
18
+ "save_folder_path": ("STRING", {"forceInput": True}),
19
+ "filename_suffix": ("STRING", {"forceInput": True})
20
+ },
21
+ "optional":{
22
+ "speaker_id": ("INT", {"default": 0, "min": 0, "max": 100}),
23
+ "style": ("STRING", {"default": "Neutral"}),
24
+ "style_weight": ("FLOAT", {"default": 1, "min": 0, "max": 10, "step": 0.1},),
25
+ "length": ("FLOAT", {"default": 1, "min": 0.5, "max": 2, "step": 0.1}),
26
+ "sdp_ratio": ("FLOAT", {"default": 0.2, "min": 0, "max": 1, "step": 0.1}),
27
+ "noise": ("FLOAT", {"default": 0.6, "min": 0, "max": 1, "step": 0.1}),
28
+ "noisew": ("FLOAT", {"default": 0.8, "min": 0, "max": 1, "step": 0.1}),
29
+ "auto_split": ("BOOLEAN", {"default": True}),
30
+ "split_interval": ("FLOAT", {"default": 1, "min": 0, "max": 1.5, "step": 0.1}),
31
+ "language": (['JP', 'EN', 'ZH'],{"default":'JP'})
32
+ }
33
+ }
34
+ RETURN_TYPES = ("STRING",)
35
+ RETURN_NAMES = ("message",)
36
+ OUTPUT_NODE = True
37
+ FUNCTION = "run"
38
+ CATEGORY = "Auto_Voice_Story"
39
+
40
+ def run(self, model_name, voice_text, save_folder_path, filename_suffix, speaker_id, style, style_weight, length, sdp_ratio, noise, noisew, auto_split, split_interval, language):
41
+ query_data = {
42
+ "text": voice_text,
43
+ "speaker_id": speaker_id,
44
+ "model_name": model_name,
45
+ "length": length,
46
+ "sdp_ratio": sdp_ratio,
47
+ "noise": noise,
48
+ "noisew": noisew,
49
+ "auto_split": auto_split,
50
+ "split_interval": split_interval,
51
+ "language": language,
52
+ "style": style,
53
+ "style_weight": style_weight,
54
+ }
55
+ saved = False
56
+ message = ""
57
+ response = requests.get("http://127.0.0.1:5000/voice", params=query_data, headers={"accept": "audio/wav"})
58
+ if response.status_code == 200:
59
+ # WAVデータを一時ファイルに保存
60
+ with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as tmp_file:
61
+ tmp_file.write(response.content)
62
+ tmp_file_name = tmp_file.name
63
+ try:
64
+ # 音声を非同期で再生
65
+ winsound.PlaySound(tmp_file_name, winsound.SND_FILENAME | winsound.SND_ASYNC)
66
+ duration = len(voice_text) * 0.2
67
+ # 再生が完了するまで待機
68
+ time.sleep(duration) # 再生時間に合わせて待機
69
+ except Exception as e:
70
+ print(f"Failed to play sound: {e}")
71
+ finally:
72
+ # 一時ファイルの削除をリトライ付きで実行
73
+ for _ in range(5): # 最大5回試行
74
+ try:
75
+ os.remove(tmp_file_name)
76
+ print(f"Temporary file deleted: {tmp_file_name}")
77
+ break
78
+ except PermissionError:
79
+ print(f"File is in use, retrying: {tmp_file_name}")
80
+ time.sleep(2)
81
+ else:
82
+ print(f"Failed to delete temporary file: {tmp_file_name}")
83
+ if save_folder_path and os.path.exists(save_folder_path):
84
+ invalid_chars = r'[\\/:*?"<>|]'
85
+ filename_voice = voice_text.replace("\n", "").strip()[:15]
86
+ filename_voice = f"{model_name}-{filename_voice}{filename_suffix}"
87
+ filename_voice = re.sub(invalid_chars, "", filename_voice) + ".wav"
88
+ wav_save_path = os.path.join(save_folder_path, filename_voice).replace("\\","/")
89
+ try:
90
+ with open(wav_save_path, 'wb') as save_file:
91
+ save_file.write(response.content)
92
+ saved = "True"
93
+ except Exception:
94
+ return ("Save failed.", )
95
+
96
+ else:
97
+ print(f"Failed to get audio data: {response.status_code}")
98
+ print(f"Response content: {response.text}") # エラーメッセージを表示
99
+ return None
100
+ message = f"Model: {model_name}\n{voice_text}"
101
+ if saved:
102
+ message += f"\n\nSaved voice:\n{wav_save_path}"
103
+ return (message, )
104
+
105
+ class Multiple_lines_to_SBV2:
106
+ @classmethod
107
+ def INPUT_TYPES(s):
108
+ return {
109
+ "required":{
110
+ "model_name": ("STRING", {"forceInput": True, "default": "jvnv-F1"}),
111
+ "voice_texts": ("STRING", {"forceInput": True}),
112
+ "save_folder_path": ("STRING", {"forceInput": True})
113
+ },
114
+ "optional":{
115
+ "speaker_id": ("INT", {"default": 0, "min": 0, "max": 100}),
116
+ "style": ("STRING", {"default": "Neutral"}),
117
+ "style_weight": ("FLOAT", {"default": 1, "min": 0, "max": 10, "step": 0.1},),
118
+ "length": ("FLOAT", {"default": 1, "min": 0.5, "max": 2, "step": 0.1}),
119
+ "sdp_ratio": ("FLOAT", {"default": 0.2, "min": 0, "max": 1, "step": 0.1}),
120
+ "noise": ("FLOAT", {"default": 0.6, "min": 0, "max": 1, "step": 0.1}),
121
+ "noisew": ("FLOAT", {"default": 0.8, "min": 0, "max": 1, "step": 0.1}),
122
+ "auto_split": ("BOOLEAN", {"default": True}),
123
+ "split_interval": ("FLOAT", {"default": 0.5, "min": 0, "max": 1.5, "step": 0.1}),
124
+ "language": (['JP', 'EN', 'ZH'],{"default":'JP'})
125
+ }
126
+ }
127
+ RETURN_TYPES = ("STRING",)
128
+ RETURN_NAMES = ("save_list",)
129
+ OUTPUT_NODE = True
130
+ FUNCTION = "run"
131
+ CATEGORY = "Auto_Voice_Story"
132
+
133
+ def run(self, model_name, voice_texts, save_folder_path, speaker_id, style, style_weight, length, sdp_ratio, noise, noisew, auto_split, split_interval, language):
134
+ query_data = {
135
+ "text": "",
136
+ "speaker_id": speaker_id,
137
+ "model_name": model_name,
138
+ "length": length,
139
+ "sdp_ratio": sdp_ratio,
140
+ "noise": noise,
141
+ "noisew": noisew,
142
+ "auto_split": auto_split,
143
+ "split_interval": split_interval,
144
+ "language": language,
145
+ "style": style,
146
+ "style_weight": style_weight,
147
+ }
148
+ save_list = "saved files:\n"
149
+ invalid_chars = r'[\\/:*?"<>|]'
150
+ voice_list = voice_texts.split("\n")
151
+ if not os.path.exists(save_folder_path):
152
+ os.mkdir(save_folder_path)
153
+ for voice_text in voice_list:
154
+ voice_text = voice_text.replace("\n", "")
155
+ if not voice_text:
156
+ continue
157
+ query_data["text"] = voice_text
158
+ filename_voice = voice_text.strip("\n")[:15] # テキストの先頭15文字
159
+ filename_voice = re.sub(invalid_chars, "", filename_voice)
160
+ filename_voice = f"{model_name}-{filename_voice}" + ".wav"
161
+ wav_save_path = os.path.join(save_folder_path, filename_voice).replace("\\","/")
162
+ print("wav_save_path", wav_save_path)
163
+ # サーバーにリクエストを送信して音声データを取得
164
+ response = requests.get("http://127.0.0.1:5000/voice", params=query_data, headers={"accept": "audio/wav"})
165
+ if response.status_code != 200:
166
+ raise Exception(f"Error: {response.status_code} - {response.text}")
167
+ # 音声データを保存
168
+ audio_stream = io.BytesIO(response.content)
169
+ data, sample_rate = soundfile.read(audio_stream)
170
+ soundfile.write(wav_save_path, data, sample_rate)
171
+
172
+ save_list += f"{wav_save_path}\n"
173
+ return (save_list, )
174
+
175
+
176
+ class cut_lines:
177
+ @classmethod
178
+ def INPUT_TYPES(s):
179
+ return {
180
+ "required": {
181
+ "original_text": ("STRING", {"forceInput": True}),
182
+ },
183
+ "optional": {
184
+ "digits": ("INT", {"default": 4, "min": 3, "max": 7}),
185
+ "num_every_10": ("BOOLEAN", {"default": True}),
186
+ "delimiters": ("STRING", {"default": ":<:<((「"}),
187
+ "remove_char": ("STRING", {"default": ":<>:<>()()「」"}),
188
+ }
189
+ }
190
+ RETURN_TYPES = ("STRING",)
191
+ RETURN_NAMES = ("output_lines",)
192
+ OUTPUT_NODE = True
193
+ FUNCTION = "run"
194
+ CATEGORY = "Auto_Voice_Story"
195
+
196
+ def run(self, original_text, digits, num_every_10, delimiters, remove_char):
197
+ output_lines = ""
198
+ multiple = 9 * num_every_10 + 1
199
+ # 入力テキストを行ごとに分割し、空行を削除
200
+ lines_list = [
201
+ data.strip()
202
+ for data in original_text.splitlines()
203
+ if data.strip()
204
+ ]
205
+ # 各行を処理
206
+ for i, line in enumerate(lines_list):
207
+ for j, char in enumerate(line): # 文字を左から順番に調べる
208
+ name = ""
209
+ if char in delimiters:
210
+ name = line[:j].strip() # 区切り文字の左側
211
+ voice = line[j:].strip() # 区切り文字を含む右側
212
+ break # 最初の区切り文字を見つけたらループ終了
213
+ else:
214
+ name = ""
215
+ voice = line
216
+ number = str(i * multiple).zfill(digits)
217
+ output_lines += f"{number}_{name}_{voice}\n"
218
+ output_lines = output_lines.translate(str.maketrans("", "", remove_char))
219
+ return (output_lines,)
220
+
221
+
222
+ class Generate_and_Save_Character_Voice:
223
+ @classmethod
224
+ def INPUT_TYPES(s):
225
+ return {
226
+ "required": {
227
+ "lines_text": ("STRING", {"forceInput": True}),
228
+ "save_folder": ("STRING", {"forceInput": True})
229
+ },
230
+ "optional": {
231
+ "character_name": ("STRING", {"default": ""}),
232
+ "reverse": ("BOOLEAN", {"default": False}),
233
+ "model_name": ("STRING", {"default": "jvnv-F1"}),
234
+ "speaker_id": ("INT", {"default": 0, "min": 0, "max": 100}),
235
+ "style": ("STRING", {"default": "Neutral"}),
236
+ "style_weight": ("FLOAT", {"default": 1, "min": 0, "max": 10, "step": 0.1},),
237
+ "length": ("FLOAT", {"default": 1, "min": 0.5, "max": 2, "step": 0.1}),
238
+ "sdp_ratio": ("FLOAT", {"default": 0.2, "min": 0, "max": 1, "step": 0.1}),
239
+ "noise": ("FLOAT", {"default": 0.6, "min": 0, "max": 1, "step": 0.1}),
240
+ "noisew": ("FLOAT", {"default": 0.8, "min": 0, "max": 1, "step": 0.1}),
241
+ "auto_split": ("BOOLEAN", {"default": True}),
242
+ "split_interval": ("FLOAT", {"default": 1, "min": 0, "max": 1.5, "step": 0.1}),
243
+ "language": (['JP', 'EN', 'ZH'],{"default":'JP'}),
244
+ "filename_length": ("INT", {"default": 20, "min": 10, "max": 40, "step": 5}),
245
+ "file_format": (['wav', 'mp3'], {"default": "wav"}),
246
+ }
247
+ }
248
+ RETURN_TYPES = ("STRING",)
249
+ RETURN_NAMES = ("message",)
250
+ OUTPUT_NODE = True
251
+ FUNCTION = "run"
252
+ CATEGORY = "Auto_Voice_Story"
253
+
254
+ def generate_and_save_voice(self, query_data, voice_folder_path, filename, file_format="wav"):
255
+ if file_format not in ["wav", "mp3"]:
256
+ raise ValueError("file_formatは'wav'または'mp3'のいずれかを指定してください。")
257
+ # サーバーにリクエストを送信してWAVデータを取得
258
+ response = requests.get(
259
+ "http://127.0.0.1:5000/voice",
260
+ params=query_data,
261
+ headers={"accept": "audio/wav"}
262
+ )
263
+ if response.status_code != 200:
264
+ raise Exception(f"Error: {response.status_code} - {response.text}")
265
+ # 保存先パスを作成
266
+ if file_format == "wav":
267
+ # WAV形式で保存
268
+ wav_path = os.path.join(voice_folder_path, f"{filename}.wav").replace("\\", "/")
269
+ with open(wav_path, "wb") as wav_file:
270
+ wav_file.write(response.content)
271
+ elif file_format == "mp3":
272
+ # 一時WAVファイルの保存
273
+ temp_wav_path = os.path.join(voice_folder_path, "temp.wav").replace("\\", "/")
274
+ with open(temp_wav_path, "wb") as temp_wav_file:
275
+ temp_wav_file.write(response.content)
276
+ # MP3形式で保存
277
+ mp3_path = os.path.join(voice_folder_path, f"{filename}.mp3").replace("\\", "/")
278
+ command = [
279
+ "ffmpeg", "-y", "-i", temp_wav_path, # 入力ファイル
280
+ "-vn", # ビデオを無効化
281
+ "-ar", "44100", # サンプリングレート(オプション)
282
+ "-ac", "2", # チャンネル数(オプション)
283
+ "-b:a", "192k", # ビットレート
284
+ mp3_path # 出力ファイル
285
+ ]
286
+ subprocess.run(command, check=True)
287
+ # 一時ファイルの削除
288
+ os.remove(temp_wav_path)
289
+
290
+ def run(self, lines_text, save_folder, character_name, reverse, model_name, speaker_id, style, style_weight, length, sdp_ratio, noise, noisew, auto_split, split_interval, language, filename_length, file_format):
291
+ query_data = {
292
+ "text": "",
293
+ "speaker_id": speaker_id,
294
+ "model_name": model_name,
295
+ "length": length,
296
+ "sdp_ratio": sdp_ratio,
297
+ "noise": noise,
298
+ "noisew": noisew,
299
+ "auto_split": auto_split,
300
+ "split_interval": split_interval,
301
+ "language": language,
302
+ "style": style,
303
+ "style_weight": style_weight,
304
+ }
305
+ invalid_chars = r'[\\/:*?"<>|]'
306
+ lines = lines_text.splitlines() # 改行で分割してリスト化
307
+ voice_text = ""
308
+ voice_counter = 0
309
+ os.makedirs(save_folder, exist_ok=True)
310
+ character_name = character_name.replace(" ", "").replace(" ", "")
311
+ name_list = [item for item in character_name.split(",") if item]
312
+ if lines:
313
+ message = ""
314
+ for line in lines:
315
+ name = ""
316
+ parts = line.split("_")
317
+ # 最初と2つ目のアンダースコアに挟まれた部分を取得
318
+ if len(parts) > 2:
319
+ name = parts[1] # 最初と2つ目のアンダースコアに挟まれた部分
320
+ voice_text = "_".join(parts[2:])
321
+ else:
322
+ continue
323
+ condition1 = not reverse and name_list and any(char in name for char in name_list)
324
+ condition2 = reverse and bool(name_list) and not any(char in name for char in name_list)
325
+ condition3 = not name_list and not name
326
+ # message += f"line:\n{line}\n"
327
+ # message += f"name : {name} , name_list : {name_list}\n"
328
+ # message += f"condition1 : {condition1} , condition2 : {condition2}, condition3 : {condition3}\n"
329
+ if condition1 or condition2 or condition3:
330
+ if voice_text:
331
+ query_data["text"] = voice_text
332
+ line = re.sub(r"[  ]+", "", line)
333
+ filename_voice = line[:filename_length] # strip()は不要
334
+ filename = re.sub(invalid_chars, "", filename_voice)
335
+ self.generate_and_save_voice(query_data, save_folder, filename, file_format)
336
+ message += f"{voice_text}\n\n"
337
+ voice_counter += 1
338
+ message += f"Read {len(lines)} lines\n"
339
+ message += f"Saved {voice_counter} voices\n"
340
+ else:
341
+ message = "No Lines."
342
+ return (message, )
343
+
344
+
345
+ class Play_Voice_in_Folder:
346
+ @classmethod
347
+ def INPUT_TYPES(s):
348
+ return {
349
+ "required":{
350
+ "voice_folder": ("STRING", {"forceInput": True, "default": ""}),
351
+ },
352
+ "optional":{
353
+ "split_interval": ("FLOAT", {"default": 0.5, "min": 0, "max": 2, "step": 0.5}),
354
+ }
355
+ }
356
+ RETURN_TYPES = ("STRING",)
357
+ RETURN_NAMES = ("message",)
358
+ OUTPUT_NODE = True
359
+ FUNCTION = "run"
360
+ CATEGORY = "Auto_Voice_Story"
361
+
362
+ def run(self, voice_folder, split_interval):
363
+ if not voice_folder or not os.path.isdir(voice_folder): # voice_folderが無効でないか確認
364
+ message = ("Invalid folder path.")
365
+ return message
366
+ files = os.listdir(voice_folder)
367
+ if files is None: # ファイルリストが取得できなかった場合のチェック
368
+ message = (f"Failed to list files in folder: {voice_folder}")
369
+ return message
370
+ # 数字で始まるファイル名かつ拡張子が mp3 または wav のファイルをフィルタリング
371
+ audio_files = [
372
+ file for file in files
373
+ if file.lower().endswith((".mp3", ".wav")) and file[0].isdigit()
374
+ ]
375
+ # 数字順にソート(ファイル名の先頭の数字をキーとして並び替え)
376
+ sorted_files = sorted(
377
+ audio_files,
378
+ key=lambda x: int("".join([c for c in os.path.splitext(x)[0] if c.isdigit()])) if any(c.isdigit() for c in x) else float('inf') # 数字部分を抽出
379
+ )
380
+ print("audio_files:\n", audio_files)
381
+ counter = 0
382
+ message = ""
383
+ # 1つずつ順番に再生
384
+ for audio_file in sorted_files:
385
+ full_path = os.path.join(voice_folder, audio_file).replace("\\","/") # フルパスを生成
386
+ if os.path.exists(full_path): # ファイルが存在するか確認
387
+ subprocess.run(["ffplay", "-nodisp", "-autoexit", full_path])
388
+ time.sleep(split_interval)
389
+ counter += 1
390
+ else:
391
+ message += f"File not found:\n{audio_file}\n"
392
+ message += f"Read {len(sorted_files)} lines\n"
393
+ message += f"Played {counter} files."
394
+ return message
395
+
396
+
397
+ class Single_Voice:
398
+ @classmethod
399
+ def INPUT_TYPES(s):
400
+ return {
401
+ "required":{
402
+ "voice_path": ("STRING", {"forceInput": True, "default": ""}),
403
+ },
404
+ "optional":{
405
+ "split_interval": ("FLOAT", {"default": 0.5, "min": 0, "max": 2, "step": 0.5}),
406
+ }
407
+ }
408
+ RETURN_TYPES = ("STRING",)
409
+ RETURN_NAMES = ("message",)
410
+ OUTPUT_NODE = True
411
+ FUNCTION = "run"
412
+ CATEGORY = "Auto_Voice_Story"
413
+
414
+ def run(self, voice_path, split_interval):
415
+ if os.path.exists(voice_path) and voice_path.lower().endswith((".mp3", ".wav")):
416
+ subprocess.run(["ffplay", "-nodisp", "-autoexit", voice_path])
417
+ time.sleep(split_interval)
418
+ message = f"play:\n{voice_path}"
419
+ return message
420
+
421
+
422
+ class modulo_operation:
423
+ @classmethod
424
+ def INPUT_TYPES(s):
425
+ return {
426
+ "required":{
427
+ "dividend": ("INT", {"forceInput": True}),
428
+ },
429
+ "optional":{
430
+ "divisor": ("INT", {"default": 1, "min": 1},),
431
+ }
432
+ }
433
+ RETURN_TYPES = ("INT",)
434
+ RETURN_NAMES = ("divisor",)
435
+ OUTPUT_NODE = True
436
+ FUNCTION = "run"
437
+ CATEGORY = "Auto_Voice_Story"
438
+
439
+ def run(self, dividend, divisor):
440
+ modulo = dividend % divisor
441
+ return(modulo, )
442
+
443
+
444
+ NODE_CLASS_MAPPINGS = {
445
+ "Multiple_lines_to_SBV2": Multiple_lines_to_SBV2,
446
+ "Play_Voice_SBV2": Play_Voice_SBV2,
447
+ "cut_lines": cut_lines,
448
+ "Generate_and_Save_Character_Voice": Generate_and_Save_Character_Voice,
449
+ "Play_Voice_in_Folder": Play_Voice_in_Folder,
450
+ "Single_Voice": Single_Voice,
451
+ "modulo_operation": modulo_operation,
452
+ }
453
+
454
+ NODE_DISPLAY_NAME_MAPPINGS = {
455
+ "Multiple_lines_to_SBV2": "Multiple_lines_to_SBV2",
456
+ "Play_Voice_SBV2": "Play_Voice_SBV2",
457
+ "cut_lines": "cut_lines",
458
+ "Generate_and_Save_Character_Voice": "Generate_and_Save_Character_Voice",
459
+ "Play_Voice_in_Folder": "Play_Voice_in_Folder",
460
+ "Single_Voice": "Single_Voice",
461
+ "modulo_operation": "modulo_operation",
462
+ }
__init__.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ from .Auto_Voice_Story import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
2
+ __all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']