slicePcmMs: (
pcm: Int16Array | Buffer | Uint8Array | number[],
startMs: number,
endMs?: number,
opts?: { sampleRate?: number },
) => Int16Array
Type Declaration
-
- (
pcm: Int16Array | Buffer | Uint8Array | number[],
startMs: number,
endMs?: number,
opts?: { sampleRate?: number },
): Int16Array
-
Parameters
- pcm: Int16Array | Buffer | Uint8Array | number[]
- startMs: number
OptionalendMs: number
Optionalopts: { sampleRate?: number }
Returns Int16Array
Slice a PCM buffer by time window (ms).