discord-audio-stream
Version:
A small Discord voice audio streaming library with managed ffmpeg playback.
11 lines (10 loc) • 477 B
TypeScript
import type { ChildProcessByStdio } from 'node:child_process';
import type { Readable } from 'node:stream';
import type { FfmpegOptions } from './types';
export type FfmpegProcessHandle = {
process: ChildProcessByStdio<null, Readable, Readable>;
ready: Promise<void>;
stop(): void;
};
export declare function resolveFfmpegExecutable(options?: FfmpegOptions): string;
export declare function startFfmpeg(input: string, options?: FfmpegOptions): FfmpegProcessHandle;