@voice-ai-workforce/react
Version:
React components with 3-tier interface modes for voice-controlled workforce applications
24 lines (23 loc) • 937 B
TypeScript
import React from 'react';
import { VoiceCommand, VoiceResponse, VoiceAIConfig, VoiceAIError, VoiceModeProps } from '../../../types/src/types';
import { VoiceAIThemeProps, VoiceAIPosition } from '../types/theme';
export interface VoiceButtonProps extends VoiceAIThemeProps, VoiceModeProps {
config: VoiceAIConfig;
showMiniCenter?: boolean;
miniCenterPosition?: VoiceAIPosition;
quickCommands?: string[];
maxRecentCommands?: number;
autoCloseMiniCenter?: boolean;
autoCloseDelay?: number;
disabled?: boolean;
onCommand?: (command: VoiceCommand) => void;
onResponse?: (response: VoiceResponse) => void;
onError?: (error: VoiceAIError) => void;
onMiniCenterToggle?: (isOpen: boolean) => void;
children?: React.ReactNode;
listenText?: string;
stopText?: string;
'aria-label'?: string;
}
export declare const VoiceButton: React.FC<VoiceButtonProps>;
export default VoiceButton;