加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config.json.bak 22.25 KB
一键复制 编辑 原始数据 按行查看 历史
Ikaros 提交于 2023-11-15 19:00 . 接入 睿声AI(新的在线TTS)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
{
"login": {
"enable": false,
"username": "admin",
"password": "123456"
},
"platform": "talk",
"room_display_id": "278333",
"chat_type": "reread",
"need_lang": "none",
"before_prompt": "请简要回复:",
"after_prompt": "",
"comment_log_type": "回答",
"visual_body": "其他",
"xuniren": {
"api_ip_port": "http://127.0.0.1:8800"
},
"unity": {
"api_ip_port": "http://127.0.0.1:5700/add"
},
"play_audio": {
"enable": true,
"out_path": "out",
"player": "pygame"
},
"audio_player": {
"api_ip_port": "http://127.0.0.1:5600"
},
"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,
"idle_time_task": true,
"database": true,
"play_audio": true,
"web_captions_printer": true,
"key_mapping": true,
"unity": true
},
"bilibili": {
"login_type": "手机扫码",
"username": "",
"password": "",
"cookie": "",
"ac_time_value": "",
"open_live": {
"ACCESS_KEY_ID": "",
"ACCESS_KEY_SECRET": "",
"APP_ID": 0,
"ROOM_OWNER_AUTH_CODE": ""
}
},
"twitch": {
"token": "oauth:xxxx",
"user": "love_ikaros",
"proxy_server": "127.0.0.1",
"proxy_port": "10809"
},
"read_user_name": {
"enable": false,
"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,
"idle_time_task_forget_duration": 0.1,
"idle_time_task_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": false,
"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": "",
"version": 3.1
},
"zhipu": {
"api_key": "",
"model": "chatglm_lite",
"top_p": "0.7",
"temperature": "0.9",
"history_enable": true,
"history_max_len": "300",
"user_info": "我是陆星辰,是一个男性,是一位知名导演,也是苏梦远的合作导演。我擅长拍摄音乐题材的电影。苏梦远对我的态度是尊敬的,并视我为良师益友。",
"bot_info": "苏梦远,本名苏远心,是一位当红的国内女歌手及演员。在参加选秀节目后,凭借独特的嗓音及出众的舞台魅力迅速成名,进入娱乐圈。她外表美丽动人,但真正的魅力在于她的才华和勤奋。苏梦远是音乐学院毕业的优秀生,善于创作,拥有多首热门原创歌曲。除了音乐方面的成就,她还热衷于慈善事业,积极参加公益活动,用实际行动传递正能量。在工作中,她对待工作非常敬业,拍戏时总是全身心投入角色,赢得了业内人士的赞誉和粉丝的喜爱。虽然在娱乐圈,但她始终保持低调、谦逊的态度,深得同行尊重。在表达时,苏梦远喜欢使用“我们”和“一起”,强调团队精神。",
"bot_name": "苏梦远",
"user_name": "陆星辰",
"remove_useless": false
},
"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",
"lang": "自动",
"length": "1",
"noise": "0.33",
"noisew": "0.4",
"max": "50",
"format": "wav",
"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",
"language": "自动识别",
"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": "神里绫华_ZH",
"format": "wav",
"length": "1.25",
"noise": "0.2",
"noisew": "0.9",
"language": "ZH"
},
"tts_ai_lab_top": {
"token": "",
"speaker": "白露",
"sdp_ratio": "0.2",
"noise": "0.5",
"noisew": "0.9",
"length": "1.0"
},
"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"
},
"openai_tts": {
"type": "api",
"api_ip_port": "https://ysharma-openai-tts-new.hf.space/--replicas/zcq5n/",
"model": "tts-1",
"voice": "nova",
"api_key": "你的openai api key"
},
"reecho_ai": {
"Authorization": "sk-xxx",
"model": "reecho-neural-voice-001",
"randomness": 97,
"stability_boost": 40,
"voiceId": "b4b885c3-89a7-46d4-badb-015a55bb3a91"
},
"chatterbot": {
"name": "bot",
"db_path": "db.sqlite3"
},
"chatgpt": {
"model": "gpt-3.5-turbo-0613",
"temperature": 0.9,
"max_tokens": 4096,
"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": ""
},
"yiyan": {
"api_ip_port": "http://localhost:3000",
"type": "web",
"cookie": ""
},
"tongyi": {
"type": "web",
"cookie_path": "cookie/tongyi.json"
},
"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,
"auto_play": false
},
"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}的支持"
]
}
],
"idle_time_task": {
"enable": false,
"idle_time": 120,
"random_time": false,
"comment": {
"enable": false,
"random": true,
"copy": [
"请给我简单地介绍一项最新的未来科技,它的原理、应用场景以及对我们生活的影响。控制在100字以内",
"请给我简单地推荐一首流行歌曲,并分享一下它的创作背景、歌词寓意以及为什么你喜欢这首歌。控制在100字以内",
"请给我简单地介绍一种流行的美妆技巧,包括步骤、适用场合以及如何根据自己的特点进行个性化调整。控制在100字以内",
"请给我简单地分享一个健康的食谱,包括食材搭配、烹饪方法以及为什么这个食谱对身体健康有益。控制在100字以内",
"请给我简单地分享一个值得让人思考的故事.控制在100字以内",
"请给我简单地讲一个笑话,让我在忙碌的生活中找到轻松和快乐。控制在100字以内"
]
},
"local_audio": {
"enable": true,
"random": true,
"path": [
"song/ikaros/枝垂樱-缩减版.mp3",
"song/ikaros/glow-缩减版.mp3",
"data/闲时任务/音频/ikaros/不管发生什么,我都会在主人身边.wav",
"data/闲时任务/音频/ikaros/不管是谁下的命令,一旦主人有什么三长两短,我决不轻饶.wav",
"data/闲时任务/音频/ikaros/主人和我一起开心吗.wav",
"data/闲时任务/音频/ikaros/主人在想些什么呢.wav",
"data/闲时任务/音频/ikaros/主人,你刚才是不是说我们会永远在一起.wav",
"data/闲时任务/音频/ikaros/主人,您还好吗.wav",
"data/闲时任务/音频/ikaros/主人,茶泡好了.wav",
"data/闲时任务/音频/ikaros/你醒了吗,主人.wav",
"data/闲时任务/音频/ikaros/好想赶快见到主人.wav",
"data/闲时任务/音频/ikaros/对了,加油努力,让主人表扬我的话,肯定.wav",
"data/闲时任务/音频/ikaros/怎样才能牵主人的手呢.wav",
"data/闲时任务/音频/ikaros/我一点都帮不上主人的忙.wav",
"data/闲时任务/音频/ikaros/我也想牵主人的手.wav",
"data/闲时任务/音频/ikaros/我和主人在一起,怎么说呢,心有种轻飘飘的感觉.wav",
"data/闲时任务/音频/ikaros/我想在主人身边,从今往后.wav",
"data/闲时任务/音频/ikaros/我是主人最讨厌的兵器,这样瞒住主人真的好吗.wav",
"data/闲时任务/音频/ikaros/我是玩赏用天使,我要回到主人的身边.wav",
"data/闲时任务/音频/ikaros/看来我的动力炉,真的出了点毛病,主人.wav",
"data/闲时任务/音频/ikaros/知道主人在哪里吗.wav",
"data/闲时任务/音频/ikaros/遇到麻烦了吗,主人.wav",
"data/闲时任务/音频/ikaros/那个,主人,睡觉是怎么一回事.wav"
]
}
},
"database": {
"path": "data/data.db",
"comment_enable": true,
"entrance_enable": true,
"gift_enable": true
},
"game": {
"enable": true,
"module_name": "game1"
},
"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"
},
"integral": {
"enable": false,
"entrance": {
"enable": true,
"get_integral": 1,
"copywriting": [
{
"entrance_num_interval": "0-3",
"copywriting": [
"{user_name},感谢您的观看,获得{get_integral}点积分",
"欢迎{user_name},获得{get_integral}点积分"
]
},
{
"entrance_num_interval": "4-29",
"copywriting": [
"{user_name},感谢您的观看,获得{get_integral}点积分",
"欢迎{user_name},今天是您看我的{entrance_num}天,我很开心"
]
},
{
"entrance_num_interval": "30-666666",
"copywriting": [
"{user_name},今天是您看我的{entrance_num}天,获得{get_integral}点积分",
"非常感谢{user_name}的陪伴,有您这样的粉丝,主播生涯也是没有遗憾了"
]
}
]
},
"gift": {
"enable": true,
"get_integral_proportion": 10.0,
"copywriting": [
{
"gift_price_interval": "0-1",
"copywriting": [
"感谢{user_name}的{gift_name},获得{get_integral}点积分",
"感谢{user_name}的{gift_name}"
]
},
{
"gift_price_interval": "1.01-10",
"copywriting": [
"感谢{user_name}的{gift_name},老板大气,获得{get_integral}点积分",
"感谢{user_name}的{gift_name},获得{get_integral}点积分"
]
},
{
"gift_price_interval": "10.01-88888888",
"copywriting": [
"感谢{user_name}的{gift_name},获得{get_integral}点积分",
"感谢{user_name}的{gift_name},您真是在下的衣食父母啊"
]
}
]
},
"sign": {
"enable": true,
"cmd": [
"签到",
"打卡",
"打卡喵"
],
"get_integral": 1,
"copywriting": [
{
"sign_num_interval": "0-3",
"copywriting": [
"{user_name}打卡成功,获得{get_integral}点积分,您已打卡{sign_num}天",
"{user_name}打卡成功喵,获得{get_integral}点积分"
]
},
{
"sign_num_interval": "4-30",
"copywriting": [
"{user_name}打卡成功,获得{get_integral}点积分,您已打卡{sign_num}天",
"{user_name}打卡成功喵,获得{get_integral}点积分,感谢您{sign_num}天的陪伴"
]
},
{
"sign_num_interval": "31-666666",
"copywriting": [
"非常感谢{user_name}的陪伴,有您这样的粉丝,主播生涯也是没有遗憾了",
"{user_name}打卡成功喵,获得{get_integral}点积分,感谢您{sign_num}天的陪伴"
]
}
]
},
"crud": {
"query": {
"enable": true,
"cmd": [
"我的积分",
"查询积分"
],
"copywriting": [
"{user_name}查询成功,您当前的积分是{integral}",
"{user_name},您当前的积分是{integral}"
]
}
}
},
"key_mapping": {
"enable": true,
"type": "弹幕",
"start_cmd": "按键 ",
"config": [
{
"keywords": [
"动作1"
],
"keys": [
"ctrlleft",
"1"
],
"similarity": "1"
},
{
"keywords": [
"动作2"
],
"keys": [
"2"
],
"similarity": "1"
},
{
"keywords": [
"动作3"
],
"keys": [
"3"
],
"similarity": "1"
},
{
"keywords": [
"动作4"
],
"keys": [
"4"
],
"similarity": "1"
},
{
"keywords": [
"动作5"
],
"keys": [
"5"
],
"similarity": "1"
},
{
"keywords": [
"动作6"
],
"keys": [
"6"
],
"similarity": "1"
},
{
"keywords": [
"动作7"
],
"keys": [
"7"
],
"similarity": "1"
},
{
"keywords": [
"动作8"
],
"keys": [
"8"
],
"similarity": "1"
},
{
"keywords": [
"动作9"
],
"keys": [
"9"
],
"similarity": "1"
},
{
"keywords": [
"动作0"
],
"keys": [
"0"
],
"similarity": "1"
}
]
},
"translate": {
"enable": false,
"type": "baidu",
"trans_type": "弹幕",
"baidu": {
"appid": "",
"appkey": "",
"from_lang": "auto",
"to_lang": "zh"
}
},
"webui": {
"theme": {
"choose": "蓝粉渐变",
"list": {
"蓝粉渐变": {
"login_card": "width: 100%;height: 100%;display: flex;justify-content: center;align-items: center;position: fixed;left: 0;top: 0;background: linear-gradient(45deg, #3494E6, #EC6EAD);",
"tab_panel": "background: linear-gradient(45deg, #3494E6, #EC6EAD);",
"card": "margin:10px 0px;background: linear-gradient(45deg, #3494E6, #EC6EAD);"
},
"默认黑白": {
"login_card": "width: 100%;height: 100%;display: flex;justify-content: center;align-items: center;position: fixed;left: 0;top: 0;",
"tab_panel": "",
"card": "margin:10px 0px;"
}
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化