A simple voice-enabled chatbot using Openrouter Mistral AI API. Users can interact via text or voice, and the bot will generate responses as I would be responding to if some one ask about me otherwise it will give general response.
- Supports both text and voice input.
- Uses Mistral AI API for responses.
- Deployed on Render for public access.
- Interactive UI with a microphone button.
- Python 3.10.6 installed
- Git installed
- A Mistral AI API key
git clone https://github.com/Han9128/Voice-bot.git
cd Voice-botpython -m venv botenv
source botenv/bin/activatepython -m venv botenv
botenv\Scripts\activate pip install -r requirements.txt- Create a
.envfile in the root directory. - Add your Mistral AI API key inside:
API_KEY=your_MistralAI_API_keypython -m Backend.server- Open the deployed web app.
- Click the microphone button and speak your query.
- The bot will process your voice and respond accordingly.
- You can also type queries manually in the text box.
- Customize responses by updating
myInfo.txt
If you want to personalize this bot to respond as per your own persona, update the myInfo.txt file with relevant details. The bot will prioritize your custom information when generating responses.
Steps to customize:
-
Open
myInfo.txtin the project folder. -
Add details about yourself, such as name, interests, profession, or other relevant information.
-
Restart the bot to apply changes.
To deploy this bot on Render:
- Push your code to GitHub.
- Create a Web Service on Render.
- Set up environment variables (API_KEY).
- Use
pip install -r requirements.txtas the build command. - Use
python -m Backend.serveras the start command. - Deploy and test your bot.
Try it here: personaBot.
This project was built using the following technologies:
- Flask – Python web framework for handling backend logic
- JavaScript – Handles frontend interactions
- HTML & CSS – UI design and styling
- Mistral AI API – AI model powering chatbot responses
Contributions are welcome! If you'd like to improve this project:
- Fork the repository
- Create a new branch (
git checkout -b feature-branch) - Commit your changes (
git commit -m "Add feature") - Push the branch (
git push origin feature-branch) - Open a pull request
For major changes, please open an issue first to discuss your proposal.
This project is licensed under two options:
- Open Source License (MIT) – Free for personal and non-commercial use.
- Commercial License – Required for commercial use.
Commercial use, including but not limited to selling, licensing, or distributing this software as part of a paid product/service, is strictly prohibited without explicit permission from the author.
See the LICENSE file for more details.
For commercial licensing inquiries, contact mdshahreyarhannan@gmail.com.
For any queries or collaboration opportunities, feel free to reach out:
📧 Email: mdshahreyarhannan@gmail.com
🔗 GitHub: Han9128