@tencentcloud/roomkit-web-vue3
Version:
<h1 align="center"> TUIRoomKit</h1> Conference (TUIRoomKit) is a product suitable for multi-person audio and video conversation scenarios such as business meetings, webinars, and online education. By integrating this product, you can add room management,
47 lines (45 loc) • 1.36 kB
TypeScript
import { IRoomService } from '../';
export interface SubtitleMessage {
sender: string;
text: string;
translationText: string;
end?: boolean;
startMsTs: number;
}
export declare enum AI_TASK {
TRANSCRIPTION_TASK = "transcription"
}
export interface AITaskEvent {
[AI_TASK.TRANSCRIPTION_TASK]: {
subtitleMessages: {
[key: string]: SubtitleMessage;
};
transcribedMessageList: SubtitleMessage[];
};
[key: string]: unknown;
[key: symbol]: unknown;
}
export declare class AITask {
private emitter;
private trtc;
private service;
subtitleMessages: {
[key: string]: SubtitleMessage;
};
transcribedMessageList: SubtitleMessage[];
private subtitleTimeout;
private transcriptionTimeout;
constructor(service: IRoomService);
private bindCtx;
on<T extends keyof AITaskEvent>(eventType: T, callback: (data?: AITaskEvent[T]) => void): void;
off<T extends keyof AITaskEvent>(eventType: T, callback: (data?: AITaskEvent[T]) => void): void;
emit<T extends keyof AITaskEvent>(eventType: T, data: AITaskEvent[T]): void;
dispose(): void;
private handleMount;
private handleUnmount;
private bindEvent;
private resetSubtitleTimeout;
private resetTranscriptionTimeout;
private handleAIMessage;
private handleMessage;
}