voice-ai-workforce
Version:
Voice AI assistant for workforce management - hands-free task updates, time tracking, and team communication. Built by VenueBoost Inc.
158 lines (122 loc) ⢠3.82 kB
Markdown
# Voice AI Workforce Demo
A live demo showcasing the Voice AI Workforce package capabilities.
## š Quick Start
```bash
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
```
## š¤ Features Demonstrated
### Voice Commands
- **"help"** - Show available commands
- **"clock in"** - Start work session
- **"clock out"** - End work session
- **"complete task"** - Mark task as done
- **"status"** - Check current status
### Interactive Elements
- š¤ **Voice Button** - Click to start/stop listening
- āØļø **Text Input** - Type commands manually
- šÆ **Quick Actions** - One-click command buttons
- š **Command History** - See all interactions
- š **Real-time Status** - Live work session tracking
## šÆ Try These Commands
**Voice Examples:**
- "Hey, help me get started"
- "Clock me in please"
- "I want to complete the setup task"
- "What's my current status?"
- "Clock me out for the day"
**Text Examples:**
- `help`
- `clock in`
- `complete database migration task`
- `status check`
- `clock out`
## š Browser Support
- ā
Chrome (recommended)
- ā
Firefox
- ā
Safari
- ā
Edge
**Note:** Voice recognition requires microphone permissions and HTTPS in production.
## š§ Development
### Project Structure
```
examples/three-tier-demo/
āāā src/
ā āāā App.tsx # Main demo application
ā āāā main.tsx # React entry point
ā āāā index.css # Tailwind styles
āāā public/ # Static assets
āāā package.json # Dependencies
āāā vite.config.ts # Vite configuration
```
### Available Scripts
- `npm run dev` - Start development server (port 3000)
- `npm run build` - Build for production
- `npm run preview` - Preview production build
- `npm run lint` - Run ESLint
## š± Mobile Support
The demo is fully responsive and works on mobile devices. On mobile:
- Tap the microphone button to start voice recognition
- Use text input as an alternative to voice
- All features work the same as desktop
## š Permissions
The demo requires:
- **Microphone access** - For voice recognition
- **HTTPS** - Required for Web Speech API in production
## šØ Customization
### Styling
The demo uses Tailwind CSS. Customize appearance by:
1. Editing `tailwind.config.js`
2. Modifying CSS classes in `App.tsx`
3. Adding custom styles to `index.css`
### Voice Configuration
Modify voice settings in `App.tsx`:
```typescript
const voiceConfig: VoiceAIConfig = {
speechToText: {
provider: 'web-speech',
language: 'en-US', // Change language
continuous: false // Auto-listen mode
},
textToSpeech: {
provider: 'web-speech',
speed: 1.0 // Speech speed
}
// ... other config
};
```
## š Deployment
### Vercel (Recommended)
1. Connect your GitHub repo to Vercel
2. Set build command: `npm run build`
3. Set output directory: `dist`
4. Deploy!
### Netlify
1. Connect repo to Netlify
2. Build command: `npm run build`
3. Publish directory: `dist`
4. Deploy!
### Manual Deploy
```bash
npm run build
# Upload dist/ folder to your web server
```
## šÆ Next Steps
This demo showcases basic Voice AI Workforce functionality. For production use:
1. **Add Authentication** - User login/logout
2. **Connect Real APIs** - Replace mock responses
3. **Add More Commands** - Extend command vocabulary
4. **Error Handling** - Production-ready error management
5. **Analytics** - Track usage and performance
## š Support
- š **Documentation**: Check the main package README
- š **Issues**: Report bugs in the GitHub repo
- š” **Feature Requests**: Open an issue with your ideas
---
Built with ā¤ļø using React, TypeScript, Vite, and Tailwind CSS