mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 02:21:20 -08:00
22 lines
542 B
TypeScript
22 lines
542 B
TypeScript
import type Artplayer from 'artplayer';
|
|
|
|
export = artplayerPluginAsr;
|
|
export as namespace artplayerPluginAsr;
|
|
|
|
interface AsrPluginOption {
|
|
length?: number;
|
|
interval?: number;
|
|
sampleRate?: number;
|
|
autoHideTimeout?: number;
|
|
onAudioChunk?: (buffer: ArrayBuffer) => void | Promise<void>;
|
|
}
|
|
|
|
interface AsrPluginInstance {
|
|
name: 'artplayerPluginAsr';
|
|
stop: () => void;
|
|
hide: () => void;
|
|
append: () => void;
|
|
}
|
|
|
|
declare function artplayerPluginAsr(option?: AsrPluginOption): (art: Artplayer) => AsrPluginInstance;
|