{"id":23070841,"url":"https://github.com/PriyanshuPz/bard-chatbot","last_synced_at":"2025-08-15T13:33:29.816Z","repository":{"id":197756506,"uuid":"699263932","full_name":"PriyanshuPz/bard-chatbot","owner":"PriyanshuPz","description":"A Python-based chatbot project that integrates the Bard API for natural language processing and voice interaction. This chatbot can listen to voice input, process user queries, and respond with audio output.","archived":true,"fork":false,"pushed_at":"2023-10-05T11:32:50.000Z","size":351,"stargazers_count":3,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-11T10:50:31.988Z","etag":null,"topics":["ai","aiassistant","artificial-intelligence","assistant","bard","chatbot","hacktoberfest","hacktoberfest2023","python"],"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/PriyanshuPz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-02T09:29:12.000Z","updated_at":"2025-01-27T04:17:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"3bb1939c-94cd-463c-870a-225551b30086","html_url":"https://github.com/PriyanshuPz/bard-chatbot","commit_stats":null,"previous_names":["p7uverma/bard-chatbot","priyanshuverma-dev/bard-chatbot","priyanshupz/bard-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PriyanshuPz/bard-chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PriyanshuPz%2Fbard-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PriyanshuPz%2Fbard-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PriyanshuPz%2Fbard-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PriyanshuPz%2Fbard-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PriyanshuPz","download_url":"https://codeload.github.com/PriyanshuPz/bard-chatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PriyanshuPz%2Fbard-chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270578402,"owners_count":24610036,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ai","aiassistant","artificial-intelligence","assistant","bard","chatbot","hacktoberfest","hacktoberfest2023","python"],"created_at":"2024-12-16T06:27:51.959Z","updated_at":"2025-08-15T13:33:29.537Z","avatar_url":"https://github.com/PriyanshuPz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bard Chatbot with Voice Input and Audio Playback\n\n![Bard Chatbot](chatbot.png)\n\nA Python-based chatbot project that integrates the Bard API for natural language processing and voice interaction. This chatbot can listen to voice input, process user queries, and respond with audio output.\n\n## Prerequisites\n\nBefore getting started, make sure you have the following dependencies installed:\n\n- Python 3.x\n- Pygame library\n- SpeechRecognition library\n- dotenv library\n- Bard API credentials (You will need to sign up for Bard API and obtain API tokens)\n\nYou can install the required Python libraries using pip:\n\n```bash\npip install -r requirements.txt\n```\n\n## Configuration\n\n1. Create a `.env` file in the project directory and add your Bard API tokens:\n\n   ```env\n   Secure_1PSID=your_secure_1PSID_token\n   Secure_1PSIDCC=your_secure_1PSIDCC_token\n   Secure_1PSIDTS=your_secure_1PSIDTS_token\n   ```\n\n2. Make sure you have an active microphone connected to your system.\n\n3. (Optional) Make changes in\n   `.venv\\Lib\\site-packages\\bardapi\\core.py`\n   if gives any error like requests not found.\n\nadd at top:\n\n```python\nimport requests\n```\n\n4. (Optional) Make changes in\n   `..venv\\Lib\\site-packages\\bardapi\\models\\tools\\map.py`\n   if gives any error like Tuple not found.\n\nadd at top:\n\n```python\nfrom typing import Optional, Tuple, List\n\n```\n\n## Usage\n\nRun the `bard.py` script to start the chatbot with voice input and audio playback:\n\n```bash\npython bard.py\n```\n\nThe chatbot will listen for your voice input, process your queries using Bard API, and respond with audio output. You can speak your queries and receive spoken responses from the chatbot.\n\nTo exit the chatbot, simply say \"exit\" or type \"/exit\" in the text input.\nTo stop audio, simply say \"stop\" or type \"/stop\" in the text input.\n\n## Features\n\n- Voice-based interaction with the chatbot.\n- Natural language processing powered by Bard API.\n- Audio responses for a more interactive experience.\n\n## Contributing\n\nContributions are welcome! If you'd like to improve this project or add new features, please fork the repository and submit a pull request. Feel free to open issues for bug reports or feature requests.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- Thanks to the creators of Bard API for providing powerful natural language processing capabilities.\n- Special thanks to the open-source community for the libraries used in this project.\n\nReplace `your_secure_1PSID_token`, `your_secure_1PSIDCC_token`, and `your_secure_1PSIDTS_token` in the `.env` section with your actual Bard API tokens.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPriyanshuPz%2Fbard-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPriyanshuPz%2Fbard-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPriyanshuPz%2Fbard-chatbot/lists"}