This is an AI Agent translater that can translate both text and voice input into different languages of user's choice. It uses a LangChain agent and Groq Llama-3 model.
- Text-to-text translation
- Voice-to-text translation
- Language detection
- Dynamic target language selection
- AI agent using LangChain
- Llama 3 llm used via Groq Api
- Python development
- LangChain
- Groq LLM (Llama 3)
- Faster Whisper
- SoundDevice
- Agent architecture
- Prompt engineering
- LLM API integration
User Input (Text/Voice) ↓ Speech-to-Text/Text-to-Text ↓ LangChain Agent ↓ Tools (Language Detection + Translation) ↓ LLM Processing ↓ Translated Output
- Clone the repository
- Install dependencies
- Add your API key in
.env - Run the program
Welcome to the AI Voice Translator Agent Choose input type (text/voice): text Enter your text: Hello how are you? Enter target language: Hindi
Final Output: The language of the given text is English, and the translation of the text "Hello how are you?" into Hindi is "नमस्ते आप कैसे हैं?"