A real-time medical translation platform designed to bridge language barriers between healthcare providers and patients. MediSpeak enables secure, accurate, and efficient communication in multilingual healthcare settings.
MediSpeak is a Next.js-based web application that provides real-time bidirectional translation capabilities for medical consultations. The platform prioritizes patient privacy through data anonymization and offers an intuitive interface designed specifically for healthcare environments.
- Secure login and logout functionality for authorized healthcare personnel
- Password recovery system
- Session management with automatic routing
- Bidirectional translation between multiple languages and English
- Auto-detection of patient's spoken language
- High-accuracy AI-powered translations using Google's Genkit AI
- Translation confidence scoring
- Automatic anonymization of patient data (names, dates of birth)
- HIPAA-compliant data handling
- Secure processing before AI translation
- Speech-to-text functionality for both doctors and patients
- Text-to-speech output for translated conversations
- Support for multiple language voice synthesis
- Real-time conversation transcript display
- Editable transcript entries with re-processing capability
- Conversation timer for consultation duration tracking
- Session management and consultation end functionality
Currently supports:
- English
- Bangla (Bengali)
- Urdu
- Somali
- Arabic
- Polish
- Clean, professional interface designed for medical environments
- Calm blue color scheme (#5DADE2) for healthcare settings
- Intuitive layout optimized for quick access during consultations
- Responsive design for various devices
- Next.js 15.3.3 - React framework with app directory structure
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first CSS framework
- React Hook Form - Form management with Zod validation
- Radix UI - Accessible component library
- Google Genkit AI - AI workflow orchestration
- Custom AI Flows:
- Real-time translation
- Auto language detection
- Data anonymization
- Lucide React - Icon library
- Firebase - Authentication and backend services
- Date-fns - Date manipulation
- Recharts - Data visualization
- Web Speech API - Speech recognition and synthesis
src/
βββ ai/ # AI-powered features
β βββ flows/
β β βββ real-time-translation.ts # Translation logic
β β βββ auto-detect-language.ts # Language detection
β β βββ anonymize-data.ts # Data anonymization
β βββ genkit.ts # AI configuration
β βββ dev.ts # Development setup
βββ app/ # Next.js app directory
β βββ dashboard/ # Main application interface
β βββ forgot-password/ # Password recovery
β βββ privacy-policy/ # Legal pages
β βββ terms-of-service/
βββ components/ # React components
β βββ conversation/ # Translation interface
β βββ layout/ # App layout components
β βββ shared/ # Shared components
β βββ ui/ # UI component library
βββ contexts/ # React contexts
β βββ AuthContext.tsx # Authentication state
βββ hooks/ # Custom React hooks
βββ lib/ # Utility libraries
β βββ tts.ts # Text-to-speech
β βββ utils.ts # General utilities
- Node.js 18+ and npm
- Modern web browser with microphone access
- Clone the repository:
git clone <repository-url>
cd MediSpeak- Install dependencies:
npm install- Set up environment variables:
cp .env.example .env.local
# Configure your environment variables- Start the development server:
npm run devThe application will be available at http://localhost:9002
For AI feature development with Genkit:
# Start Genkit development server
npm run genkit:dev
# Watch mode for AI development
npm run genkit:watchnpm run dev- Start development server (port 9002)npm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLintnpm run typecheck- Run TypeScript type checkingnpm run genkit:dev- Start Genkit AI development servernpm run genkit:watch- Start Genkit in watch mode
- Login: Access the secure login portal
- Language Selection: Choose the patient's primary language
- Translation:
- Type or speak your message in English
- The system automatically translates to the patient's language
- Audio playback is provided for translated text
- Patient Response:
- Enter patient responses manually or use speech-to-text
- Automatic translation back to English
- Session Management: Track consultation time and manage transcripts
- Data Anonymization: Toggle on/off based on consultation requirements
- Transcript Editing: Edit messages in real-time with re-processing capability
- Session Clearing: Secure end-of-consultation cleanup
- All patient data is anonymized before AI processing
- No persistent storage of sensitive patient information
- Secure session management
- HIPAA-compliant data handling practices
- Local browser storage for session data only
- Chrome (recommended for full speech recognition support)
- Firefox
- Safari
- Edge
Note: Speech recognition features work best in Chrome due to Web Speech API support.
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests:
npm run typecheck && npm run lint - Submit a pull request
This project is proprietary software designed for healthcare use. Please contact the development team for licensing information.
For technical support or feature requests, please contact the development team or create an issue in the project repository.
MediSpeak - Bridging language barriers in healthcare, one conversation at a time.