|
|
@@ -90,7 +90,6 @@ def on_command(group_id, user_id,command):
|
|
|
/王石:查询王石效果
|
|
|
/猫猫画画:调用自定义AI绘画功能
|
|
|
/整点瑟瑟:不用我多说了吧
|
|
|
-/语音合成+角色名称:合成AI语音(测试用,目前支持诺艾尔,芙宁娜,神里绫华,迪卢克
|
|
|
所有命令均需要@猫猫触发"""
|
|
|
send_group_message_word(group_id, home)
|
|
|
save_group_message(group_id, my_name, home)
|
|
|
@@ -141,27 +140,28 @@ def on_command(group_id, user_id,command):
|
|
|
message_id = send_group_message_pic(group_id, user_id, story_start("nsfw,"+AI_lora_getpic_prompt(pic_word)))['data']['message_id']
|
|
|
time.sleep(10)
|
|
|
del_group_message(message_id)
|
|
|
- elif str(command).startswith("/语音合成"):
|
|
|
- send_group_message_word(group_id, "语音合成开始")
|
|
|
- name = "xxx"
|
|
|
- text = "xxx"
|
|
|
- if str(command).startswith("/语音合成诺艾尔"):
|
|
|
- name = "诺艾尔"
|
|
|
- text = str(command)[len("/语音合成诺艾尔"):]
|
|
|
- elif str(command).startswith("/语音合成芙宁娜"):
|
|
|
- name = "芙宁娜"
|
|
|
- text = str(command)[len("/语音合成芙宁娜"):]
|
|
|
- elif str(command).startswith("/语音合成神里绫华"):
|
|
|
- name = "神里绫华"
|
|
|
- text = str(command)[len("/语音合成神里绫华"):]
|
|
|
- elif str(command).startswith("/语音合成迪卢克"):
|
|
|
- name = "迪卢克"
|
|
|
- text = str(command)[len("/语音合成迪卢克"):]
|
|
|
- result = get_free_tts(name, text)
|
|
|
- if result.startswith("https"):
|
|
|
- send_group_vioce(group_id, result)
|
|
|
- else:
|
|
|
- send_group_message_word(group_id, result)
|
|
|
+ # 暂时弃用
|
|
|
+ # elif str(command).startswith("/语音合成"):
|
|
|
+ # send_group_message_word(group_id, "语音合成开始")
|
|
|
+ # name = "xxx"
|
|
|
+ # text = "xxx"
|
|
|
+ # if str(command).startswith("/语音合成诺艾尔"):
|
|
|
+ # name = "诺艾尔"
|
|
|
+ # text = str(command)[len("/语音合成诺艾尔"):]
|
|
|
+ # elif str(command).startswith("/语音合成芙宁娜"):
|
|
|
+ # name = "芙宁娜"
|
|
|
+ # text = str(command)[len("/语音合成芙宁娜"):]
|
|
|
+ # elif str(command).startswith("/语音合成神里绫华"):
|
|
|
+ # name = "神里绫华"
|
|
|
+ # text = str(command)[len("/语音合成神里绫华"):]
|
|
|
+ # elif str(command).startswith("/语音合成迪卢克"):
|
|
|
+ # name = "迪卢克"
|
|
|
+ # text = str(command)[len("/语音合成迪卢克"):]
|
|
|
+ # result = get_free_tts(name, text)
|
|
|
+ # if result.startswith("https"):
|
|
|
+ # send_group_vioce(group_id, result)
|
|
|
+ # else:
|
|
|
+ # send_group_message_word(group_id, result)
|
|
|
|
|
|
else:
|
|
|
error = "抱歉没有找到你所输入的命令!如有关于命令的问题请@猫猫输入/菜单进行查询\n示例:\n@猫猫 /菜单"
|