Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
// Runs enqueued async tasks strictly one at a time, in enqueue order. A
// rejected task rejects its own returned promise but never stalls the queue.
export function createSerialQueue(): <Result>(task: () => Promise<Result>) => Promise<Result> {
let tail: Promise<unknown> = Promise.resolve();
return (task) => {
const run = tail.then(() => task());
tail = run.catch(() => undefined);
return run;
};
}