A modern, voice assistant built with React, TypeScript, and the Hugging Face Inference API. This application features a sleek UI with glowing effects, voice recognition, and text-to-speech capabilities.
- 🎙️ Voice Recognition - Speak to your AI assistant
- 🔊 Text-to-Speech - Listen to AI responses
- ✨ Real-time Streaming - See responses as they're generated
- 🎨 Futuristic UI - Glowing effects and smooth animations
- 📱 Responsive Design - Works on all devices
- 🤖 Powered by Llama 3.2 - Advanced language model from Meta
- React + TypeScript
- Tailwind CSS
- Hugging Face Inference API
- Web Speech API
- Lucide React Icons
-
Clone the repository
git clone https://github.com/alwalid54321/ai-voice-assistant.git cd ai-voice-assistant
-
Install dependencies:
npm install
-
Create a
.env
file with your Hugging Face API key:VITE_HUGGINGFACE_API_KEY=your_api_key_here
-
Start the development server:
npm run dev
- Click the microphone icon to start/stop voice recognition.
- Click the speaker icon to mute/unmute AI responses.
- Type in the input field or use voice recognition to interact.
- Press enter or click the send button to submit your message.
src/
├── components/ # React components
│ ├── Header.tsx
│ ├── InputForm.tsx
│ └── MessageList.tsx
├── hooks/ # Custom React hooks
│ ├── useSpeechRecognition.ts
│ └── useSpeechSynthesis.ts
├── services/ # External services
│ └── ai.ts
├── types/ # TypeScript types
│ └── index.ts
└── App.tsx # Main application component
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the GPL License - see the LICENSE file for details.