feat: 更新依赖项版本,添加新功能并重构代码,增强 ASR 服务和灯光控制逻辑

This commit is contained in:
2025-12-23 00:40:09 +08:00
parent 03be62cfe6
commit 4bdebd66d4
6 changed files with 187 additions and 5 deletions

View File

@@ -9,6 +9,7 @@ import path from 'node:path'
import chalk from 'chalk';
import { AssistantApp } from './lib.ts';
import { getBunPath } from './module/get-bun-path.ts';
import { qwenAsr } from './services/asr/qwen-asr.ts';
export const runServer = async (port: number = 51015, listenPath = '127.0.0.1') => {
let _port: number | undefined;
if (port) {
@@ -42,7 +43,8 @@ export const runServer = async (port: number = 51015, listenPath = '127.0.0.1')
id: 'handle-all',
func: proxyRoute as any,
},
...proxyWs()
...proxyWs(),
qwenAsr,
]);
const manager = new AssistantApp(assistantConfig, app);
setTimeout(() => {