The track to detect voice activity on.
The minimum talking duration in milliseconds to detect voice start.
The minimum silent duration in milliseconds to detect voice stop.
Optionalcallback: (event: "stop" | "start", startTime: number, stopTime: number) => voidThe callback to call with the start and stop times.
The cleanup function to stop the detection.
It detects voice activity on an audio track and calls the callback with the start and stop times.