Welcome to the Immigration Consulting Services project. This web application is designed to assist users with various immigration-related tasks, including filling out and editing PDF forms, recording and transcribing voice inputs, and providing real-time translations.
- Project Structure
- Environment Setup
- Voice Recorder and Translator
- Voice Recorder
- Translator
- Google Cloud Setup
- API Keys
Clone the repository
Set up a virtual environment
Install the required dependencies
Create a .env file in the project root and add the following environment variables:
Voice Recorder The voice recorder feature allows users to record their voice, transcribe it into text in real-time, and display the transcription on the webpage.
The translator feature converts the transcribed text into the desired language in real-time.
Create a project in Google Cloud Console:
- Go to Google Cloud Console.
- Create a new project.
- Enable necessary APIs:
- Enable the Google Cloud Translation API.
- Create a service account:
- Go to the IAM & Admin section.
- Create a new service account.
- Download the JSON key file and save it in your project directory.
- Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the path of this file.
API Keys Ensure you have the following keys set up in your .env file: