@minto-ai/huoshan-tts
Version:
借助“火山引擎在线语音合成API”实现浏览器端“文本转语音
12 lines (11 loc) • 336 B
TypeScript
interface EventCallback {
(...args: any[]): any;
}
declare class EventBus<E = any> {
private listeners;
on(eventName: E, callback: EventCallback): void;
emit<T = any>(eventName: E, data?: T): void;
}
declare function createEventBus<E>(): EventBus<E>;
export type { EventBus, EventCallback, };
export { createEventBus };