This project is a Vite-based application that uses Tailwind CSS for styling and integrates speech recognition and translation services. The primary goal is to enable real-time, multilingual translation between patients and healthcare providers.
Develop a web-based prototype that converts spoken input into text, provides a live transcript, and offers a translated version with audio playback. This application aims to facilitate communication in healthcare settings.
Clone the repository:
git clone https://github.com/waqarali5498/Real-Time-Multilingual-Healthcare-Translator.git
cd Real-Time-Multilingual-Healthcare-Translator
Install dependencies:
npm install
# or
yarn install
Create a .env
file in the root directory and add the following environment variables:
VITE_AZURE_TRANSLATOR_KEY="your-azure-translator-key"
VITE_AZURE_TRANSLATOR_ENDPOINT="your-azure-translator-endpoint"
VITE_AZURE_TRANSLATOR_REGION="your-azure-translator-region"
VITE_AZURE_GPT_35_TURBO_ENDPOINT="your-azure-gpt-35-turbo-endpoint"
VITE_AZURE_GPT_35_TURBO_APIKEY="your-azure-gpt-35-turbo-apikey"
To start the development server, run:
npm run dev
# or
yarn dev
To build the project for production, run:
npm run build
# or
yarn build
To lint the project, run:
npm run lint
# or
yarn lint
To format the code, run:
npm run format
# or
yarn format
src/
: Contains the source code of the application.components/
: React components.hooks/
: Custom React hooks.services/
: Service modules for API calls.index.css
: Tailwind CSS imports.tailwind.config.js
: Tailwind CSS configuration..env
: Environment variables.The application supports speech recognition and translation using Azure and Google APIs. The main component for this functionality is MainComponent
.
Tailwind CSS is used for styling. You can customize the styles in tailwind.config.js
and src/index.css
.
This project is licensed under the MIT License.