generated from tailored/router-db-template
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:
@@ -1,6 +1,6 @@
|
||||
// import WebSocket from 'ws';
|
||||
import { EventEmitter } from 'eventemitter3';
|
||||
import { WSServer, WSSOptions } from '../../provider/ws-server.ts';
|
||||
import { WSServer, WSSOptions } from '../../ws.ts';
|
||||
export const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
|
||||
export type VideoWSOptions = {
|
||||
url?: string;
|
||||
|
||||
Reference in New Issue
Block a user