{"id":24848715,"url":"https://github.com/alhadikhan/chatbot_gemini_pro","last_synced_at":"2025-09-01T08:38:29.281Z","repository":{"id":247845282,"uuid":"827000942","full_name":"alhadikhan/ChatBot_Gemini_Pro","owner":"alhadikhan","description":"A powerful voice-activated chatbot using Google Generative AI and Google Search API. It leverages large language models (LLMs) to listen, respond, and search the web for you.","archived":false,"fork":false,"pushed_at":"2024-07-10T20:38:09.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T11:12:28.067Z","etag":null,"topics":["chatbot","gemini-pro","generative-ai","llms","voice-assistant"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alhadikhan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-10T20:17:20.000Z","updated_at":"2025-01-02T16:01:00.000Z","dependencies_parsed_at":"2024-07-11T00:11:25.247Z","dependency_job_id":"da25d17c-9d7a-4b8d-b80b-589e023e5746","html_url":"https://github.com/alhadikhan/ChatBot_Gemini_Pro","commit_stats":null,"previous_names":["alhadikhan/chatbot_gemini_pro"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alhadikhan%2FChatBot_Gemini_Pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alhadikhan%2FChatBot_Gemini_Pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alhadikhan%2FChatBot_Gemini_Pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alhadikhan%2FChatBot_Gemini_Pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alhadikhan","download_url":"https://codeload.github.com/alhadikhan/ChatBot_Gemini_Pro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248601259,"owners_count":21131607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","gemini-pro","generative-ai","llms","voice-assistant"],"created_at":"2025-01-31T12:16:51.668Z","updated_at":"2025-04-12T16:51:54.702Z","avatar_url":"https://github.com/alhadikhan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatBot_Gemini_Pro\nA powerful voice-activated chatbot using Google Generative AI and Google Search API. It listens, responds, and searches the web for you.\n\n# Voice-Activated Chatbot with Google Generative AI and Search Capabilities\n\nThis project is an advanced voice-activated chatbot that leverages Google Generative AI and the Google Search API to provide intelligent responses and web search capabilities. The chatbot listens to user input, generates responses using the Google Generative AI model, speaks the responses back, and performs Google searches when requested.\n\n## Features\n\n- **Voice Recognition**: Uses the `speech_recognition` library to capture and process user speech.\n- **Text-to-Speech**: Utilizes the `pyttsx3` library to convert text responses into speech, providing a seamless conversational experience.\n- **Generative AI Responses**: Employs the Google Generative AI model (`gemini-1.5-pro`) to generate intelligent and context-aware responses.\n- **Google Search Integration**: Incorporates the Google Search API to search the web for user queries and present summarized results.\n\n## Setup and Installation\n\n1. **Clone the Repository**:\n    ```sh\n    git clone https://github.com/yourusername/voice-activated-chatbot.git\n    cd voice-activated-chatbot\n    ```\n\n2. **Install Dependencies**:\n    Ensure you have Python installed. Then, install the required packages:\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n3. **Set Environment Variables**:\n    Create a `.env` file in the root directory of the project and add your API keys:\n    ```sh\n    GOOGLE_API_KEY=your_google_api_key\n    GOOGLE_SEARCH_API_KEY=your_google_search_api_key\n    ```\n\n4. **Run the Chatbot**:\n    ```sh\n    python chatbot.py\n    ```\n\n## Usage\n\n- **Starting the Chatbot**:\n  Run the chatbot script to start the voice-activated chatbot. The chatbot will greet you and indicate that it's listening.\n  \n- **Interacting with the Chatbot**:\n  Speak naturally to the chatbot. It can understand and respond to a variety of queries. To perform a web search, include the word \"search\" followed by your query.\n\n- **Exiting the Chatbot**:\n  To exit, simply say \"quit,\" \"exit,\" or \"goodbye.\"\n\n## Example Conversation\n\nChatbot: Hello! I'm listening.\nYou: What's the weather like today?\nChatbot: I'm sorry, I couldn't understand that. (Example response from AI model)\nYou: Search latest news on AI\nChatbot: I found these results for latest news on AI: \"AI Breakthrough in Machine Learning\" - New AI model surpasses previous benchmarks.\nYou: Goodbye\nChatbot: Goodbye!\n\n## Current Status\n\nThe first project involving a basic voice-activated chatbot with generative AI responses is fully completed.\nThe current project extending the chatbot with Google Search capabilities is still in progress. Further enhancements and features are planned.\n\n## Future Enhancements\n\n- **Improved Natural Language Understanding**: Enhance the chatbot's ability to understand and respond to more complex queries.\n- **Context-Aware Conversations**: Implement features to maintain context across multiple interactions.\n- **Additional APIs**: Integrate other APIs to provide more comprehensive information and services.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit pull requests for any features, bug fixes, or improvements.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falhadikhan%2Fchatbot_gemini_pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falhadikhan%2Fchatbot_gemini_pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falhadikhan%2Fchatbot_gemini_pro/lists"}