VAD
@auvious/media-tools / Exports / VAD
Class: VAD
Generic for input
Implements
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new VAD()
Properties
events
• events: Events<IVadEventMap>
hark
• Private hark: any = null
name
• name: string = "auvious.vad"
distinct effect name
Implementation of
options
• Private options: IVadOptions
streamIn
• Private streamIn: null | MediaStream = null
audioContext
▪ Static audioContext: AudioContext
Methods
dispose
▸ dispose(): void
Returns
void
onOutput
▸ onOutput(callback): () => void
output is not transformative and can be ignored
Parameters
| Name | Type |
|---|---|
callback | (stream: MediaStream) => void |
Returns
fn
▸ (): void
Returns
void
Implementation of
onUnload
▸ onUnload(callback): () => void
listen for effect removal
Parameters
| Name | Type |
|---|---|
callback | () => void |
Returns
fn
▸ (): void
Returns
void
Implementation of
setInput
▸ setInput(stream): void
Parameters
| Name | Type |
|---|---|
stream | MediaStream |
Returns
void
Implementation of
setup
▸ setup(options?): void
setup or update options (threshold, interval)
Parameters
| Name | Type |
|---|---|
options | Partial<IVadOptions> |
Returns
void
stop
▸ stop(): void
Returns
void