forked from Ikaros-521/AI-Vtuber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
213 lines (213 loc) · 6.57 KB
/
config.json
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
{
"platform": "bilibili",
"room_display_id": "278333",
"chat_type": "none",
"need_lang": "none",
"before_prompt": "请简要回复:",
"after_prompt": "",
"commit_log_type": "回答",
"read_user_name": true,
"filter": {
"before_must_str": [],
"after_must_str": [],
"badwords_path": "data/badwords.txt",
"bad_pinyin_path": "data/违禁拼音.txt",
"max_len": 80,
"max_char_len": 200
},
"thanks": {
"entrance_enable": true,
"gift_enable": true,
"entrance_copy": "欢迎 {username}",
"gift_copy": "感谢 {username} 送的 {gift_name}",
"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-0301"
},
"claude": {
"slack_user_token": "",
"bot_user_id": ""
},
"chatglm": {
"api_ip_port": "http://127.0.0.1:8000",
"max_length": 2048,
"top_p": 0.7,
"temperature": 0.95,
"max_new_tokens": 250
},
"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"
},
"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": {
"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": "D:\\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"
},
"chatterbot": {
"name": "bot",
"db_path": "db.sqlite3"
},
"chatgpt": {
"model": "gpt-3.5-turbo",
"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": "你"
},
"local_qa": {
"text": {
"enable": true,
"file_path": "data/本地问答库.txt"
},
"audio": {
"enable": true,
"file_path": "out/本地问答音频/"
},
"similarity": 0.5
},
"choose_song": {
"enable": true,
"start_cmd": "点歌 ",
"stop_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": {
"file_path": "data/copywriting/",
"file_path2": "data/copywriting2/",
"audio_path": "out/copywriting/",
"audio_path2": "out/copywriting2/",
"play_list": [
"伊卡日语介绍.wav",
"吐槽.wav"
],
"play_list2": [
"test.wav"
],
"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"
}
}