Translatify is an innovative, early-stage prototype designed to facilitate real-time translation for elderly immigrant parents who face communication barriers. It aims to bridge generational and linguistic gaps by offering a simple, user-friendly interface that translates conversations in real time, making it easier for families to connect and understand each other.
- Features
- Snapshots
- Installation
- Usage
- Project Structure
- Technology Stack
- Ethics, Security, and Privacy
- External Sources and Attribution
- Support
- Real-time Audio Translation: Seamless translation between English and Chinese during conversations.
- Context Aware Translations: Better translation between different languages during conversations without loss of context.
- User-friendly Interface: Clean, high-contrast design for improved usability, especially for elderly users.
- Dark Mode: Customizable display settings to reduce eye strain.
- Adjustable Font Size: Enhanced readability with adjustable text sizes.
- Seamless Language Switching: Easy toggle between English and Chinese translations.
The main interface showcases real-time translation between English and Chinese. It features:
- Clear, high-contrast text boxes for input and output
- Language selection toggle
- Microphone button for voice input
- Audio playback options for both languages
The Translatify app icon features a stylized smartphone with "A" and Chinese character speech bubbles, representing the app's bilingual translation capability.
The settings screen allows users to customize their experience with options including:
- Font size adjustment
- Dark mode toggle
- Feedback submission
- Access to app information
- Node.js (v14.0.0 or later)
- npm (v6.0.0 or later)
- Expo CLI (
npm install -g expo-cli) - OpenAI API key
-
Clone the repository:
git clone https://github.com/LargePenguin034/Elderly-Immigrant-Integration cd Elderly-Immigrant-Integration -
Install dependencies:
npm install
-
Configure environment variables: Create a Google Service Account key with Speech-to-Text API enabled. Optionally, enable Google Translate API if you want to switch from OpenAI based translation to Google Translate based. Create a
.envfile in thebackendfolder with the following content:GOOGLE_APPLICATION_CREDENTIALS=name_of_google_service_account_file.json OPENAI_API_KEY=your_openai_api_keyReplace the placeholders with your actual credentials.
-
Use own IP address: Edit a
app.jsonfile in the folder with the following content:"WEB_SOCKET": "ws://Your.IPV4.Address:8082"
Find your IPv4 Address:
- On Windows: Open the command prompt (cmd) and type:
ipconfig - On macOS/Linux: Open your terminal and run the following command:
ifconfig | grep inet
- On Windows: Open the command prompt (cmd) and type:
-
Start the backend server:
node backend/server
-
In a new terminal, start the Expo development server:
npx expo start
-
Scan the QR code with the Expo Go app on your mobile device, or use an emulator to run the application.
For detailed instructions on using the app, please refer to our app tutorial option on the main screen.
- Open the Translatify app on your device.
- Select the desired translation direction (English to Chinese or vice versa) using the language toggle.
- Speak into the device or type your text in the input box.
- View the real-time translation in the output box.
- Use the audio playback buttons to hear the translated text if needed.
- Access the settings menu to customize the app according to your preferences.
Our codebase is exceptionally well architected, demonstrating excellent software development practices and quality. Here's an overview of the project structure:
translatify/
├── app/
│ ├── _layout.tsx # App layout component
│ ├── index.tsx # Main entry point
│ ├── settings.js # App configuration
│ ├── SplashScreen.js # Splash screen component
│ └── styles.js # Global styles
├── assets/ # Static assets (images, fonts)
├── backend/
│ ├── context.js # OpenAI API integration
│ └── server.js # WebSocket server for real-time translation
├── components/
│ ├── navigation/ # Navigation components
│ ├── apis.js # API utility functions
│ ├── audioUtils.js # Audio recording and streaming
└── [Other configuration files]
- Frontend: React Native
- Backend: Node.js
- APIs: Google Cloud Speech-to-Text, OpenAI GPT
- Development Platform: Expo
Translatify prioritizes the ethical management of user data. All audio and text are securely processed through OpenAI and Google Cloud, ensuring privacy is maintained. No personally identifiable information is stored or shared. The development team has carefully addressed ethical concerns, aiming to meet top industry standards for security and data protection.
Our project relies on these key technologies:
- Google Cloud Speech-to-Text API
- OpenAI GPT-4
- Expo framework
- React Native
For issues or questions about Translatify, please open an issue on our GitHub repository or contact our support team through the Give Feedback option in the app's settings.


