SEHAT is a modern, multilingual video consultation platform designed to break down language barriers. Using real-time speech recognition, translation, and synthesis, it enables seamless communication between users speaking different languages.
In an increasingly connected world, language differences can be a significant obstacle to effective communication, especially in critical sectors like healthcare and international business. SEHAT (meaning "health" in Hindi) addresses this challenge head-on by providing an intuitive video calling experience with powerful, real-time translation capabilities.
This project integrates secure WebRTC video streams with the Google Translate API to capture, translate, and voice-synthesize conversations, allowing all participants to communicate effortlessly in their native language.
- Secure Video Meetings: Peer-to-peer, encrypted video and audio streams powered by WebRTC.
- Real-time Translation: Instant speech recognition and translation between multiple languages.
- Multilingual Support: Supports a wide range of languages including English, Hindi, Kannada, and more.
- Voice Synthesis: Reads translated text aloud, creating a natural conversational flow.
- Room-Based Meetings: Simple, shareable links for joining private consultation rooms.
- Responsive UI: A clean, modern, and easy-to-use interface that works on all devices.
This project leverages a modern tech stack to deliver a real-time experience:
- Node.js: Server-side JavaScript runtime.
- Express.js: Minimalist web framework for Node.js.
- Socket.IO: Enables real-time, bidirectional event-based communication.
- WebRTC: Provides peer-to-peer communication capabilities in the browser.
- Google Cloud Translate API: Powers the speech recognition and translation features.
To get a local copy up and running, follow these simple steps.
Ensure you have the following installed on your machine:
- Node.js: Version 16 or higher.
- Google Cloud Translate API Key: You'll need credentials for the Google Cloud Translate API. You can get them here.
-
Clone the repository:
git clone [https://github.com/your-username/sehat-video-platform.git](https://github.com/your-username/sehat-video-platform.git) cd sehat-video-platform -
Install NPM packages:
npm install
-
Set up environment variables: Create a
.envfile in the root of your project and add the following variables:# Your Google Cloud Translate API Key GOOGLE_TRANSLATE_API_KEY=your_google_api_key # The port the server will run on PORT=3000
-
Run the application:
node index.js
The application will be available at http://localhost:3000.
- Open the application in your browser.
- Enter your name to create a new meeting room.
- Share the generated meeting link with others to invite them to the room.
- Once in the call, select your preferred input (speaking) and output (listening) languages from the dropdown menus.
- Start your conversation! The platform will handle the translation in real-time.
This application is ready for deployment on modern cloud platforms.
- Supported Platforms: Railway, Render, Fly.io, Heroku, and similar services.
- HTTPS Required: For production environments, WebRTC requires a secure context (HTTPS) to access user media devices (camera and microphone). Ensure your deployment platform provides SSL termination.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
To contribute:
- Fork the Project.
- Create your Feature Branch (
git checkout -b feature/AmazingFeature). - Commit your Changes (
git commit -m 'Add some AmazingFeature'). - Push to the Branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
Distributed under the MIT License. See LICENSE for more information.
