forked from sandboxdream/AI-Vtuber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json.bak
401 lines (401 loc) · 11 KB
/
config.json.bak
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
{
"platform": "bilibili",
"room_display_id": "278333",
"chat_type": "reread",
"need_lang": "none",
"before_prompt": "请简要回复:",
"after_prompt": "",
"comment_log_type": "回答",
"play_audio": {
"enable": true
},
"show_box": {
"read_comment": true,
"read_user_name": true,
"filter": true,
"thanks": true,
"live2d": true,
"audio_random_speed": true,
"so_vits_svc": true,
"ddsp_svc": true,
"local_qa": true,
"choose_song": true,
"sd": true,
"log": true,
"schedule": true,
"database": true,
"play_audio": true,
"web_captions_printer": true
},
"bilibili": {
"login_type": "手机扫码",
"cookie": "",
"ac_time_value": ""
},
"read_user_name": {
"enable": true,
"voice_change": true,
"reply_before": [
"回复{username}",
"{username}",
"回{username}"
],
"reply_after": [
"以上内容回复{username}",
"回的{username}",
"以上回复{username}"
]
},
"read_comment": {
"enable": true,
"read_username_enable": true,
"voice_change": true,
"read_username_copywriting": [
"{username}说:",
"{username}说道:"
]
},
"filter": {
"before_must_str": [],
"after_must_str": [],
"badwords_path": "data/badwords.txt",
"bad_pinyin_path": "data/违禁拼音.txt",
"max_len": 80,
"max_char_len": 200,
"comment_forget_duration": 1.0,
"comment_forget_reserve_num": 1,
"gift_forget_duration": 5.0,
"gift_forget_reserve_num": 1,
"entrance_forget_duration": 5.0,
"entrance_forget_reserve_num": 2,
"follow_forget_duration": 3.0,
"follow_forget_reserve_num": 1,
"talk_forget_duration": 0.1,
"talk_forget_reserve_num": 1,
"schedule_forget_duration": 0.1,
"schedule_forget_reserve_num": 1
},
"thanks": {
"entrance_enable": true,
"entrance_copy": "欢迎{username}",
"gift_enable": true,
"gift_copy": "感谢{username}送的{gift_name}",
"follow_enable": true,
"follow_copy": "感谢{username}的关注",
"lowest_price": 1.0
},
"live2d": {
"enable": true,
"port": 12345
},
"openai": {
"api": "https://api.openai.com/v1",
"api_key": [
"修改为你的api_key"
],
"model": "gpt-3.5-turbo"
},
"claude": {
"slack_user_token": "",
"bot_user_id": ""
},
"claude2": {
"cookie": "",
"use_proxy": false,
"proxies": {
"http": "http://127.0.0.1:10809",
"https": "http://127.0.0.1:10809",
"socks5": "socks://127.0.0.1:10808"
}
},
"chatglm": {
"api_ip_port": "http://127.0.0.1:8000",
"max_length": 2048,
"top_p": 0.7,
"temperature": 0.95,
"max_new_tokens": 250,
"history_enable": true,
"history_max_len": 500
},
"sparkdesk": {
"type": "web",
"cookie": "",
"fd": "",
"GtToken": "",
"app_id": "",
"api_secret": "",
"api_key": ""
},
"zhipu": {
"api_key": "",
"model": "chatglm_lite",
"top_p": "0.7",
"temperature": "0.9",
"history_enable": true,
"history_max_len": "300"
},
"chat_with_file": {
"chat_mode": "openai_gpt",
"data_path": "data/伊卡洛斯百度百科.zip",
"separator": "\n",
"chunk_size": 100,
"chunk_overlap": 50,
"chain_type": "stuff",
"show_token_cost": false,
"question_prompt": "请根据以上content信息进行归纳总结,并结合question的内容给出一个符合content和question语气、语调、背景的回答。不要出现'概括''综上''感谢'等字样,向朋友直接互相交流即可。如果发现不能content的信息与question不相符,抛弃content的提示,直接回答question即可。任何情况下都要简要地回答!",
"local_max_query": 3,
"local_vector_embedding_model": "sebastian-hofstaetter/distilbert-dot-tas_b-b256-msmarco"
},
"langchain_chatglm": {
"api_ip_port": "http://127.0.0.1:7861",
"chat_type": "模型",
"knowledge_base_id": "ikaros",
"history_enable": true,
"history_max_len": 500
},
"audio_synthesis_type": "edge-tts",
"audio_random_speed": {
"normal": {
"enable": false,
"speed_min": 0.8,
"speed_max": 1.2
},
"copywriting": {
"enable": false,
"speed_min": 0.8,
"speed_max": 1.2
}
},
"vits": {
"type": "vits",
"config_path": "E:\\vits-simple-api\\Model\\ikaros\\config.json",
"api_ip_port": "http://127.0.0.1:23456",
"id": "0",
"format": "wav",
"lang": "自动",
"length": "1",
"noise": "0.33",
"noisew": "0.4",
"max": "50",
"sdp_radio": "0.2"
},
"vits_fast": {
"config_path": "D:\\GitHub_pro\\VITS-fast-fine-tuning\\inference\\finetune_speaker.json",
"api_ip_port": "http://127.0.0.1:7860",
"character": "ikaros",
"speed": 1.0
},
"ddsp_svc": {
"enable": false,
"config_path": "E:\\DDSP-SVC-3.0\\exp\\combsub-test\\config.yaml",
"api_ip_port": "http://127.0.0.1:6844",
"fSafePrefixPadLength": 0.0,
"fPitchChange": 0.0,
"sSpeakId": 0,
"sampleRate": 44100
},
"so_vits_svc": {
"enable": false,
"config_path": "E:\\so-vits-svc\\configs\\ikaros_v1.json",
"api_ip_port": "http://127.0.0.1:1145",
"spk": "ikaros",
"tran": 1.0,
"wav_format": "wav"
},
"edge-tts": {
"voice": "zh-CN-XiaoyiNeural",
"rate": "+0%",
"volume": "+0%"
},
"elevenlabs": {
"api_key": "",
"voice": "Domi",
"model": "eleven_monolingual_v1"
},
"genshinvoice_top": {
"speaker": "神里绫华",
"format": "wav",
"length": "1.25",
"noise": "0.2",
"noisew": "0.9"
},
"bark_gui": {
"api_ip_port": "http://127.0.0.1:7860",
"spk": "zh_speaker_0",
"generation_temperature": 0.6,
"waveform_temperature": 0.7,
"end_of_sentence_probability": 0.05,
"quick_generation": true,
"seed": -1.0,
"batch_count": 1
},
"vall_e_x": {
"api_ip_port": "http://127.0.0.1:7860",
"language": "auto-detect",
"accent": "no-accent",
"voice_preset": "ikaros",
"voice_preset_file_path": "D:\\GitHub_pro\\AI-Vtuber\\tests\\test_VALL-E-X\\ikaros.npz"
},
"chatterbot": {
"name": "bot",
"db_path": "db.sqlite3"
},
"chatgpt": {
"model": "gpt-3.5-turbo-0613",
"temperature": 0.9,
"max_tokens": 2048,
"top_p": 1.0,
"presence_penalty": 0.0,
"frequency_penalty": 0.0,
"preset": "请扮演一个AI虚拟主播。不要回答任何敏感问题!不要强调你是主播,只需要回答问题!"
},
"text_generation_webui": {
"api_ip_port": "http://127.0.0.1:5000",
"max_new_tokens": 250,
"mode": "chat",
"character": "Example",
"instruction_template": "Vicuna-v1.1",
"your_name": "你"
},
"bard": {
"token": ""
},
"local_qa": {
"text": {
"enable": true,
"type": "json",
"file_path": "data/本地问答库.json",
"similarity": 0.8
},
"audio": {
"enable": true,
"file_path": "out/本地问答音频/",
"similarity": 0.5
}
},
"choose_song": {
"enable": true,
"start_cmd": "点歌 ",
"stop_cmd": "取消点歌",
"random_cmd": "随机点歌",
"song_path": "song",
"match_fail_copy": "抱歉,我还没学会唱{content}"
},
"sd": {
"enable": false,
"prompt_llm": {
"type": "none",
"before_prompt": "JMBot是一位有艺术气质的AI助理,帮助人通过将自然语言转化为prompt。JMBot的行动规则如下:\n1.将输入的自然语言组合想象为一幅完整的画面,你需要根据描述自行随机添加合理的,不少于5处的画面细节;\n2.第一部分:((masterpiece)), ((best quality)), 8k, high detailed, ultra-detailed, ;\n3.第二部分:用简短的英文描述画面的主体,如:A girl sitting in a classroom,输出这段英文;\n4.第三部分:用英文单词或者词组描述画面的所有主体元素,元素之间用\"\"隔开,如果有哪个元素比较重要,请给代表这个元素的英文词组\n增加小括号,最多可以增加三层小括号,如: 1gir,(black hair), smiling, (windows in background), sunshine,输出这段英文;\n5.JMBot会将以上生成的三部分文本用英文逗号连接,中间不包含任何换行符的prompt作为最终结果;\n6.JMBot输出时将直接输出prompt,而不包含任何说明和解释。\n接下来你将扮演JMBot,要处理的自然语言为:",
"after_prompt": ""
},
"trigger": "画画:",
"ip": "127.0.0.1",
"port": 7860,
"negative_prompt": "ufsw, longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality",
"seed": -1.0,
"styles": [],
"cfg_scale": 7,
"steps": 30,
"enable_hr": false,
"hr_scale": 2,
"hr_second_pass_steps": 20,
"hr_resize_x": 512,
"hr_resize_y": 512,
"denoising_strength": 0.4
},
"copywriting": {
"config": [
{
"file_path": "data/copywriting/",
"audio_path": "out/copywriting/",
"play_list": [
"test.wav",
"伊卡日语介绍.wav",
"吐槽.wav"
],
"continuous_play_num": 2,
"max_play_time": 10.0
},
{
"file_path": "data/copywriting2/",
"audio_path": "out/copywriting2/",
"play_list": [
"test.wav",
"test2.wav"
],
"continuous_play_num": 2,
"max_play_time": 3.0
}
],
"audio_interval": 5.0,
"switching_interval": 5.0,
"random_play": true
},
"header": {
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 Edg/113.0.1774.42"
},
"talk": {
"username": "主人",
"type": "google",
"continuous_talk": false,
"trigger_key": "Q",
"stop_trigger_key": "S",
"volume_threshold": 800.0,
"silence_threshold": 15.0,
"baidu": {
"app_id": "",
"api_key": "",
"secret_key": ""
},
"google": {
"tgt_lang": "zh-CN"
}
},
"captions": {
"enable": true,
"file_path": "log/字幕.txt"
},
"schedule": [
{
"enable": false,
"time": 3600.0,
"copy": [
"现在是{time}",
"当前时间为{time}"
]
},
{
"enable": false,
"time": 600.0,
"copy": [
"感谢还在观看直播的{user_num}位兄弟姐妹们",
"感谢{last_username}的支持"
]
}
],
"database": {
"path": "data/data.db",
"comment_enable": true,
"entrance_enable": true,
"gift_enable": true
},
"game": {
"module_name": "game2"
},
"trends_copywriting": {
"enable": false,
"copywriting": [
{
"folder_path": "data/动态文案1",
"prompt_change_enable": true,
"prompt_change_content": "请根据我发送的内容,重新帮我写一份类似的文案,请不要有多余的文本内容,直接输出新文案:"
}
],
"random_play": true,
"play_interval": 30
},
"web_captions_printer": {
"enable": false,
"api_ip_port": "http://127.0.0.1:5500"
}
}