An advanced AI-powered language learning application that provides interactive conversations with text-to-speech capabilities across multiple languages. Practice your language skills with a patient, adaptive AI tutor!
-
Multiple Language Support:
- Spanish 🇪🇸
- French 🇫🇷
- German 🇩🇪
- Italian 🇮🇹
- Japanese 🇯🇵
- Korean 🇰🇷
- Chinese 🇨🇳
-
Interactive Learning Experience:
- Real-time conversations with AI tutor
- Text-to-Speech functionality for pronunciation practice
- Adjustable proficiency levels (Beginner, Intermediate, Advanced)
- Quick example phrases for common situations
-
Customizable Learning Components:
- Pronunciation guides
- English translations
- Grammar corrections and suggestions
- Save conversations for later review
-
User-Friendly Interface:
- Clean, intuitive design
- Mobile-responsive layout
- Easy-to-use chat interface
- Visual language selection
- Visit GenAI Language Tutor
- Select your target language and proficiency level
- Choose your preferred learning components
- Start practicing with quick examples or type your own phrases
- Listen to pronunciations and receive instant feedback
-
Clone the repository:
git clone https://github.com/lhiebert01/openAI_language_tutor.git cd openAI_language_tutor -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
cp .env.template .env
Edit
.envand add your OpenAI API key:OPENAI_API_KEY=your-api-key-here -
Run the application:
streamlit run app.py
The application can be configured through the following environment variables:
OPENAI_API_KEY: Your OpenAI API key (required)
Additional configuration options are available through the Streamlit interface:
- Language selection
- Proficiency level
- Display components (pronunciation, translation, corrections)
- AI Model: Uses OpenAI's GPT-4 for natural language understanding and generation
- Text-to-Speech: Implements gTTS (Google Text-to-Speech) for pronunciation
- Frontend: Built with Streamlit for a responsive web interface
- Session Management: Maintains conversation history and user preferences
- File Handling: Supports conversation export and audio generation
To contribute to the project:
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature-name
- Make your changes and commit:
git commit -m "Add your feature description" - Push to your fork:
git push origin feature/your-feature-name
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Developed by Lindsay Hiebert (GitHub)
- OpenAI for providing the GPT-4 API
- Streamlit for the web framework
- Google Text-to-Speech for pronunciation capabilities