Refactor ASR module and remove deprecated AliAsrServer

- Introduced AsrRelatime class for real-time ASR using WebSocket.
- Removed AliAsrServer and related files from the aliyun provider.
- Updated base class for ASR to use WSServer for WebSocket connections.
- Added new test cases for the updated ASR functionality.
- Cleaned up unused imports and files across the project.
- Adjusted TypeScript configuration for better module resolution.
- Implemented silence generation for audio streaming.
This commit is contained in:
2025-12-21 18:56:32 +08:00
parent 9e94a4d898
commit 58b27b86fe
20 changed files with 858 additions and 3626 deletions

View File

@@ -1,33 +1,27 @@
{
"extends": "@kevisual/types/json/backend.json",
"compilerOptions": {
"module": "nodenext",
"module": "NodeNext",
"target": "esnext",
"noImplicitAny": false,
"outDir": "./dist",
"sourceMap": false,
"allowJs": true,
"newLine": "LF",
"baseUrl": "./",
"baseUrl": ".",
"typeRoots": [
"node_modules/@types",
"node_modules/@kevisual/types"
"./node_modules/@types",
"./node_modules/@kevisual/types/index.d.ts"
],
"declaration": true,
"noEmit": false,
"allowImportingTsExtensions": true,
"emitDeclarationOnly": true,
"moduleResolution": "NodeNext",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"paths": {
"@/*": [
"src/*"
],
"@agent/*": [
"agent/*"
],
"@kevisual/video-tools/*": [
"src/*"
]
}
},
},
"include": [
"src/**/*.ts",
"src/**/*",
"agent/**/*",
],
"exclude": [],
}