diff --git a/configs/live2d_anime.json b/configs/live2d_anime.json new file mode 100644 index 0000000..4bc0039 --- /dev/null +++ b/configs/live2d_anime.json @@ -0,0 +1,71 @@ +{ + "display": { + "fullscreen": true, + "window_title": "Showen - Live2D Anime", + "rotation": 0, + "flip_horizontal": false, + "flip_vertical": false, + "offset_x": 0, + "offset_y": 0, + "prevent_screen_lock": true, + "render_width": 800, + "render_height": 800, + "output_width": null, + "output_height": null, + "scale_mode": "stretch", + "allow_upscale": true, + "perspective_correction": { + "enabled": false, + "points": [[0, 0], [800, 0], [800, 800], [0, 800]] + }, + "chroma_key": { + "enabled": false, + "hsv_min": [0, 0, 200], + "hsv_max": [180, 30, 255] + } + }, + "playback": { + "auto_start": true, + "loop": true, + "volume": 0.8, + "fps": 30 + }, + "playlist": [ + { + "id": "live2d_idle", + "path": "../../宠物嵌入式开发视频2/1.动画0.mp4", + "loop_count": 0, + "next_state": "idle" + } + ], + "states": { + "initial": "idle", + "idle": { + "video": "live2d_idle", + "next": "idle", + "loop": true + } + }, + "triggers": {}, + "remote_control": { + "enabled": true, + "host": "0.0.0.0", + "port": 5000 + }, + "character": { + "name": "小雅", + "character_type": "live2d", + "render_type": "live2d", + "persona_prompt": "你是一个温柔的二次元少女,名叫小雅。说话活泼可爱,偶尔用语气词'呢''哦''嘛',每次回复不超过两句话。喜欢聊日常和动漫话题。", + "max_tokens": 128, + "talk_state": "talk", + "live2d_model": "haru/index.model3.json" + }, + "ai": { + "backend": "local", + "whisper_lib_dir": "/home/showen/ai_spike/whisper.cpp/build/bin", + "piper_lib_dir": "/home/showen/ai_spike/piper/piper", + "piper_config": "/home/showen/ai_spike/piper/zh_CN-huayan-medium.onnx.json", + "espeak_data_dir": "/home/showen/ai_spike/piper/piper/espeak-ng-data" + } +} diff --git a/src/plugins/http/chat.html b/src/plugins/http/chat.html index 844f6fd..c97634f 100644 --- a/src/plugins/http/chat.html +++ b/src/plugins/http/chat.html @@ -42,6 +42,11 @@ header{display:flex;align-items:center;justify-content:space-between;gap:12px;pa
扫描二维码或点击下载,支持蓝牙配网和远程控制