UNPKG

@minto-ai/huoshan-tts

Version:

借助“火山引擎在线语音合成API”实现浏览器端“文本转语音

19 lines (18 loc) 595 B
import { SerialTaskExecuteContext, SerialHandler } from '../handler'; declare class AudioActuator extends SerialHandler<AudioBuffer, never> { private static FADE_DURATION; private static MUTE_VOLUME; private static UNMUTE_VOLUME; private audioContext; private bufferSource; private gainNode; private isMute; execute(context: SerialTaskExecuteContext<AudioBuffer, never>): void; protected onFinish(): void; protected onBeforeFirstExecute(): void; mute(): void; unmute(): void; pause(): void; resume(): void; } export default AudioActuator;