功能: - 基于 ONNX 的语音识别引擎 - 多语言支持(中文、英文、日语、韩语) - 模型加载器(支持 SenseVoice/Whisper/Paraformer) - 音频采集和处理模块(VAD、重采样、归一化) - 文本输出模块(剪贴板) - CLI 命令行工具 - Electron GUI 界面 - Windows x64 打包配置 文档: - PRD 产品需求文档 - README 项目说明 - 开发指南 - Windows 构建指南 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
76 lines
2.0 KiB
JSON
76 lines
2.0 KiB
JSON
{
|
|
"name": "impress-asr-input",
|
|
"version": "0.1.0",
|
|
"description": "基于 ONNX 的本地语音识别输入工具,支持多语言实时识别",
|
|
"main": "dist/main.js",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "tsx watch src/main.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/main.js",
|
|
"dev:electron": "electron .",
|
|
"build:electron": "tsc && electron-builder",
|
|
"build:win": "cross-env ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ npm run build:electron -- --win --x64",
|
|
"build:win:zip": "cross-env ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ tsc && electron-builder --win zip --x64 --publish=never",
|
|
"build:win:dir": "cross-env ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ tsc && electron-builder --win --x64 --dir --publish=never",
|
|
"test": "vitest run",
|
|
"lint": "eslint src --ext .ts"
|
|
},
|
|
"keywords": [
|
|
"asr",
|
|
"speech-to-text",
|
|
"onnx",
|
|
"voice-input",
|
|
"electron"
|
|
],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@types/node": "^20.11.0",
|
|
"cross-env": "^7.0.3",
|
|
"electron": "^28.0.0",
|
|
"electron-builder": "^24.9.0",
|
|
"typescript": "^5.3.0",
|
|
"vitest": "^1.2.0"
|
|
},
|
|
"dependencies": {
|
|
"clipboardy": "^4.0.0",
|
|
"commander": "^12.0.0",
|
|
"onnxruntime-web": "^1.17.0"
|
|
},
|
|
"build": {
|
|
"appId": "com.impress.asr-input",
|
|
"productName": "Impress ASR Input",
|
|
"buildVersion": "1.0.0",
|
|
"publish": null,
|
|
"directories": {
|
|
"output": "release",
|
|
"buildResources": "build"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"src/ui/**/*",
|
|
"models/**/*"
|
|
],
|
|
"extraResources": [
|
|
"models/*.onnx"
|
|
],
|
|
"win": {
|
|
"target": "zip",
|
|
"requestedExecutionLevel": "asInvoker",
|
|
"artifactName": "${productName}-${version}-win-${arch}.${ext}"
|
|
},
|
|
"mac": {
|
|
"target": ["dmg", "zip"],
|
|
"category": "public.app-category.utilities"
|
|
},
|
|
"linux": {
|
|
"target": ["AppImage", "deb"],
|
|
"category": "Utility"
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
}
|
|
}
|