Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

390 B
Raw Blame
import type { RealtimeDictationStatus } from './contract';

export type DictationControlMode = 'busy' | 'error' | 'idle' | 'listening';

export const getDictationControlMode = (status: RealtimeDictationStatus): DictationControlMode => {
  if (status === 'listening') return 'listening';
  if (status === 'error') return 'error';
  if (status === 'idle') return 'idle';

  return 'busy';
};