Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

492 B
Raw Blame
const ONBOARDING_DEMO_KINDS = new Set(["dictation", "assistant"]);
const ONBOARDING_DEMO_STATUSES = new Set([
  "listening",
  "level",
  "processing",
  "partial",
  "replying",
  "success",
  "error",
]);

function isOnboardingInputAllowed(onboardingActive, demoKind, inputKind) {
  if (!onboardingActive) return true;
  return ONBOARDING_DEMO_KINDS.has(demoKind) && demoKind === inputKind;
}

module.exports = { ONBOARDING_DEMO_KINDS, ONBOARDING_DEMO_STATUSES, isOnboardingInputAllowed };