# aigcpanel **Repository Path**: yuji/aigcpanel ## Basic Information - **Project Name**: aigcpanel - **Description**: AigcPanel 是一个简单易用的一站式AI数字人系统,支持视频合成、声音合成、声音克隆,简化本地模型管理、一键导入和使用AI模型。 - **Primary Language**: Unknown - **License**: AGPL-3.0 - **Default Branch**: main - **Homepage**: https://aigcpanel.com - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 138 - **Created**: 2025-02-25 - **Last Updated**: 2025-02-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AigcPanel  ## 软件介绍 `AigcPanel` 是一个简单易用的一站式AI数字人系统,小白也可使用。 支持视频合成、声音合成、声音克隆,简化本地模型管理、一键导入和使用AI模型。 > 禁止使用本产品进行违法违规业务,使用本软件请遵守中华人民共和国法律法规。 ## 功能特性 - 支持视频数字人合成,支持视频画面和声音换口型匹配 - 支持语音合成、语音克隆,多种声音参数可设置 - 支持多模型导入、一键启动、模型设置、模型日志查看 - 支持国际化,支持简体中文、英语 - 支持多种模型一键启动包 - 声音模型 `CosyVoice-300M` - 声音模型 `CosyVoice-300M-Instruct` - 声音模型 `CosyVoice2-0.5b` - 视频模型 `MuseTalk` - 视频模型 `LatentSync` - 视频模型 `Wav2Lip` ## 效果预览 参考 [demo](demo/) 中的视频文件。 ## 功能预览 ### 视频合成  ### 语音克隆  ### 语音合成  ### 模型管理  ### 模型添加  ### 模型日志  ### 关于  ## 安装使用 ### Windows - 访问 [https://aigcpanel.com](https://aigcpanel.com) 下载 Windows 安装包,一键安装即可 安装完成后,打开软件,下载模型一键启动包,即可使用。 ## 模型自定义接入 如果有第三方一键启动的模型,可以按照以下方式接入。 模型文件夹格式,只需要编写 `config.json` 和 `server.js` 两个文件即可。 ``` |- 模型文件夹/ |-|- config.json - 模型配置文件 |-|- server.js - 模型对接文件 |-|- xxx - 其他模型文件,推荐将模型文件放在 model 文件夹下 ``` ### config.json 文件示例 ```json5 { "name": "server-xxx", // 模型名称 "version": "0.1.0", // 模型版本 "title": "语音模型", // 模型标题 "description": "模型描述", // 模型描述 "platformName": "win", // 支持系统,win, osx, linux "platformArch": "x86", // 支持架构,x86, arm64 "entry": "server/main", // 入口文件,一键启动包文件 "functions": [ "videoGen", // 支持视频生成 "soundTTS", // 支持语音合成 "soundClone" // 支持语音克隆 ], "settings": [ // 模型配置项,可以显示在模型配置页面 { "name": "port", "type": "text", "title": "服务端口", "default": "", "placeholder": "留空会检测使用随机端口" } ] } ``` ### server.js 文件示例 > 以下以 MuseTalk 为例 ```js const serverRuntime = { port: 0, } let shellController = null let isRunning = false module.exports = { ServerApi: null, ServerInfo: null, url() { return `http://localhost:${serverRuntime.port}/` }, async start() { this.send('starting', this.ServerInfo) let command = [] if (this.ServerInfo.setting && this.ServerInfo.setting.port) { serverRuntime.port = this.ServerInfo.setting.port } else if (!serverRuntime.port || !await this.ServerApi.app.isPortAvailable(serverRuntime.port)) { serverRuntime.port = await this.ServerApi.app.availablePort(50617) } // 模型启动命令 command.push(`"${this.ServerInfo.localPath}/main"`) shellController = await this.ServerApi.app.spawnShell(command, { stdout: (data) => { this.sendLog(data) }, stderr: (data) => { this.sendLog(data) }, success: (data) => { this.send('success', this.ServerInfo) }, error: (data, code) => { this.sendLog(data) this.send('error', this.ServerInfo) }, env: await this.ServerApi.env(), cwd: this.ServerInfo.localPath, }) }, async ping() { try { const res = await this.ServerApi.request(`${this.url()}ping`) return true } catch (e) { } return false }, async stop() { this.send('stopping', this.ServerInfo) try { shellController.stop() shellController = null } catch (e) { console.log('stop error', e) } this.send('stopped', this.ServerInfo) }, async config() { return { code: 0, msg: "ok", data: { httpUrl: shellController ? this.url() : null, content: ``, functions: { videoGen: { param: [] } } } } }, async videoGen(data) { const resultData = { // success, querying, retry type: 'success', start: 0, end: 0, data: { filePath: null } } if (isRunning) { resultData.type = 'retry' return { code: 0, msg: 'ok', data: resultData } } isRunning = true const param = data.param || {} resultData.start = Date.now() try { this.send('taskRunning', {id: data.id}) // 模型调用请求 resultData.end = result.endTime resultData.data.filePath = result.result.url return { code: 0, msg: 'ok', data: resultData } } catch (e) { throw e } finally { isRunning = false } }, } ``` ## 技术栈 - `electron` - `vue3` - `typescript` ## 本地运行开发 > 仅在 node 20 测试过 ```shell # 安装依赖 npm install # 调试运行 npm run dev # 打包 npm run build ``` ## 加入交流群
微信群 | QQ群 |
---|---|
|
|