hrz
2e64f45a31
update:优化代码排版
2026-01-27 15:59:46 +08:00
hrz
818b4f2f6d
update:增加版本号,解决html引用文件缓存问题
2026-01-27 15:52:34 +08:00
hrz
5d72f9f79d
update:由于现在的模型本身动作有限,使用起来体验不佳,暂时移除动作控制的代码
2026-01-27 15:45:53 +08:00
Sakura-RanChen and GitHub
22d0dcdf58
Merge pull request #2887 from shengzhou1216/refactor/asr-delete_audio
...
refactor(asr): 统一音频预处理逻辑并引入AudioArtifacts
2026-01-27 15:41:46 +08:00
Sakura-RanChen
4dde66339b
补充minimax接口错误信息
2026-01-27 11:22:32 +08:00
hrz and GitHub
0064f975c2
Merge pull request #2903 from spider-yamet/feature/issue-2896-clean
...
feat: implement Issue 2896 - Live2D Actions and Microphone Detection
2026-01-27 11:17:31 +08:00
rainv123 and GitHub
43234f4798
Merge pull request #2836 from xinnan-tech/py_audio_rate
...
update: 自定义配置输出音频采样率
2026-01-27 10:58:32 +08:00
spider-yamet
48034fc000
Translate log messages to Chinese in recorder.js
2026-01-26 15:03:23 -08:00
spider-yamet
3fc33e9095
Optimize code density: simplify changed files while keeping comments (reduce 364 lines)
2026-01-26 14:48:08 -08:00
spider-yamet
da71dce860
Optimize code : minify test files
2026-01-26 14:37:07 -08:00
spider-yamet
b7e4408a0f
Add browser-based unit tests for xiaozhi test modules
...
- Add browser-compatible test files (no npm required)
- recorder.test.browser.js: 8 tests for microphone and HTTP detection
- tools.test.browser.js: 5 tests for Live2D actions and error handling
- Add test runner (test-runner.html) with built-in test framework
- Add null safety checks in tools.js for DOM element access
- Add documentation (English and Chinese versions)
- README_TESTS.md / README_TESTS_CN.md: Complete test guide
- QUICK_START_TEST.md / QUICK_START_TEST_CN.md: Quick start guides
- Total: 13 unit tests covering microphone detection, HTTP detection, Live2D actions, and error handling
2026-01-26 10:18:40 -08:00
spider-yamet
4f4f8ca54e
docs: add testing guide and fix Chinese text in controller.js
2026-01-26 08:30:39 -08:00
spider-yamet
99c12a0fed
fix: translate corrupted Chinese text to proper Chinese in controller.js
2026-01-26 08:05:02 -08:00
spider-yamet
dcd0ef3f40
fix: translate corrupted Chinese text to proper Chinese in controller.js
...
- Fix corrupted Chinese characters in addMCPTool function
- Translate placeholder and button text to proper Chinese
2026-01-26 07:57:13 -08:00
spider-yamet
2f53b921fe
feat: implement Issue 2896 - Live2D Actions and Microphone Detection
...
- Add Live2D action tools (smile, wave, generic actions) as MCP tools
- Implement microphone availability detection
- Handle HTTP non-localhost access scenarios
- Update UI to reflect microphone availability state
- Translate all comments and messages to proper Chinese/English
- Add test files for new functionality
2026-01-26 07:44:33 -08:00
Sakura-RanChen
3051dc8327
更改默认输出采样率与设备端适配
2026-01-26 17:35:45 +08:00
Sakura-RanChen
c313997a61
去除调试输出
2026-01-26 16:33:09 +08:00
hrz
3b1c2d3b1b
add:响应mcp初始化请求
2026-01-26 12:42:11 +08:00
huozaimengli
4b573fb4e2
feat: 为多个模块添加类型注解以增强代码可读性
...
为 ConnectionHandler 相关的函数参数添加类型注解,使用 TYPE_CHECKING 避免循环导入。主要修改包括:
- 在 abortHandle、textHandle 等处理模块中为 conn 参数添加 ConnectionHandler 类型注解
- 在 websocket_server、connection 等核心模块中为方法参数添加类型注解
- 在 plugins_func 下的多个功能模块中为函数参数添加类型注解
- 在 providers 相关模块中为工具执行器和方法添加类型注解
- 统一代码格式,如将单引号字符串改为双引号
Fixes #2034
2026-01-25 17:47:52 +08:00
huozaimengli
6ae0af278b
feat: 统一LLM错误处理并添加系统错误回复配置
...
在多个LLM提供者中移除try-catch块,将错误处理统一到connection.py的流处理层
添加system_error_response配置项,支持自定义系统错误时的回复内容
在意图识别和流处理中捕获异常时返回配置的错误回复,避免硬编码错误信息
Fixes #2075
2026-01-25 16:48:01 +08:00
huozaimengli
15650e1a6c
refactor(asr): 统一音频预处理逻辑并引入AudioArtifacts
...
重构所有ASR提供商的speech_to_text方法,将重复的音频解码、合并和文件保存逻辑提取到基类的speech_to_text_wrapper中。引入AudioArtifacts数据类封装PCM帧、字节数据、文件路径和临时路径,简化各提供商实现。移除各提供商中的冗余文件清理代码,由基类统一处理。
新增requires_file()和prefers_temp_file()方法允许提供商声明文件需求,优化内存和磁盘使用。保持接口兼容性的同时提高代码复用性和可维护性。
2026-01-25 11:27:34 +08:00
Sakura-RanChen
ce00c862fe
HuoshanDoubleStreamTTS增加自定义配置
2026-01-23 17:16:46 +08:00
wengzh and GitHub
3222d6175d
Merge pull request #2879 from xinnan-tech/fix-digital-human
...
update: 拨号成功后自动开启录音
2026-01-23 09:22:03 +08:00
lww155
28f9f23449
update: 拨号成功后自动开启录音
2026-01-23 09:13:19 +08:00
wengzh and GitHub
5e7d192ebc
Merge pull request #2877 from xinnan-tech/fix-digital-human
...
update: 调整配置获取
2026-01-22 17:55:46 +08:00
lww155
d6a32416d7
update: 调整配置获取
2026-01-22 17:48:40 +08:00
wengzh and GitHub
6a2c01763e
Merge pull request #2876 from xinnan-tech/fix-digital-human
...
Fix digital human
2026-01-22 17:27:36 +08:00
lww155
e1dd272708
update: 关闭设置框时保存配置, 阻止按钮事件冒泡, 调整配置获取方式
2026-01-22 17:23:27 +08:00
lww155
3e7bc0606a
update: 优化背景加载代码
2026-01-22 16:16:09 +08:00
lww155
9d9ca1475d
fix: 修复重复请求ota与重复建立连接问题
2026-01-22 15:54:26 +08:00
lww155
43ddc0135c
update: 去除未使用代码
2026-01-22 15:39:40 +08:00
wengzh and GitHub
f83ddf79fa
Merge pull request #2868 from xinnan-tech/fix-digital-human
...
fix: 修复未绑定设备时状态处理
2026-01-20 17:48:35 +08:00
lww155
95b340a7a3
fix: 修复未绑定设备时状态处理
2026-01-20 17:39:06 +08:00
milieyo and GitHub
e3f16f91cf
Merge pull request #2863 from xinnan-tech/fix-digital-human
...
update: 新增聊天输入框
2026-01-20 09:32:23 +08:00
lww155
83304c9ff4
update: 新增聊天输入框
2026-01-20 09:16:45 +08:00
渠磊
bfa638e17f
chore: 更新 powermem 依赖至 0.3.1 版本, 增加角色过滤的能力
2026-01-19 14:16:12 +08:00
3030332422
7094548ecf
fix: 修复开机立刻唤醒导致客户端 MCP 工具列表为空的问题
2026-01-16 18:04:04 +08:00
lww155
778c4560fd
update: 新增模型加载
2026-01-15 09:20:22 +08:00
lww155
fa31096cd8
update: 拨号成功后开启自动录音
2026-01-15 09:19:25 +08:00
Sakura-RanChen
fd1dd39463
update: 自定义配置输出音频采样率
2026-01-14 17:54:50 +08:00
lww9029
ecd3e12a41
fix: 切换背景404问题
2026-01-14 11:18:41 +08:00
hrz
e93f9d7111
update:修复live2d模型加在路径bug
2026-01-12 18:05:39 +08:00
Sakura-RanChen
3bdccfea62
解析json字符串提取相关文本
2026-01-12 17:47:29 +08:00
hrz
6c3609e79e
update:优化图片大小
2026-01-12 17:43:30 +08:00
Sakura-RanChen and GitHub
5fa50339b4
Merge pull request #2824 from wayyoungboy/add-powermem
...
docs(config): 更新配置文件和集成文档
2026-01-12 15:07:08 +08:00
Sakura-RanChen
f0c95bc987
为空时不做相关查询(工具调用function_call时没有相关query)
2026-01-12 15:06:38 +08:00
rainv123
a9aa709502
update:增加live2d模型,修改测试页面样式
2026-01-12 11:00:50 +08:00
渠磊
8edc23b888
docs(config): 更新配置文件和集成文档
...
- 添加embedding_dims配置项注释
- 同步配置文件修改到集成文档
2026-01-09 17:42:30 +08:00
Sakura-RanChen
c4fc510a27
补充相关信息
2026-01-09 17:25:03 +08:00
Sakura-RanChen
134000996b
query只传递相关的文本
2026-01-09 16:09:05 +08:00