{"id":20811458,"url":"https://github.com/cyberfantics/chatbot-with-voice-and-openai","last_synced_at":"2025-08-29T02:38:05.893Z","repository":{"id":249290527,"uuid":"831106902","full_name":"cyberfantics/chatbot-with-voice-and-openai","owner":"cyberfantics","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-19T17:45:51.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T04:43:43.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cyberfantics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-19T17:13:22.000Z","updated_at":"2024-07-19T17:45:54.000Z","dependencies_parsed_at":"2024-07-19T22:46:08.608Z","dependency_job_id":null,"html_url":"https://github.com/cyberfantics/chatbot-with-voice-and-openai","commit_stats":null,"previous_names":["cyberfantics/chatbot-with-voice-and-openai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cyberfantics/chatbot-with-voice-and-openai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberfantics%2Fchatbot-with-voice-and-openai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberfantics%2Fchatbot-with-voice-and-openai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberfantics%2Fchatbot-with-voice-and-openai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberfantics%2Fchatbot-with-voice-and-openai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyberfantics","download_url":"https://codeload.github.com/cyberfantics/chatbot-with-voice-and-openai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberfantics%2Fchatbot-with-voice-and-openai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272612178,"owners_count":24964388,"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-29T02:00:10.610Z","response_time":87,"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":[],"created_at":"2024-11-17T20:42:44.008Z","updated_at":"2025-08-29T02:38:05.856Z","avatar_url":"https://github.com/cyberfantics.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Voice Assistant Chatbot\n\nThis project is a Voice Assistant Chatbot that leverages the power of OpenAI's GPT model and IBM Watson's Text-to-Speech and Speech-to-Text services. The chatbot provides users with a conversational interface to interact with AI, offering functionalities such as answering questions, performing tasks, and providing information.\n\n## Features\n\n- **Voice Interaction**: Users can speak to the chatbot using their microphone, and the chatbot will respond using IBM Watson's Text-to-Speech.\n- **Text Interaction**: Users can also type their queries, and the chatbot will respond with text.\n- **Light/Dark Mode**: A toggle switch allows users to switch between light and dark modes for a comfortable viewing experience.\n- **Voice Selection**: Users can choose from a variety of voices provided by IBM Watson for the chatbot's responses.\n\n## Demo\n[Youtube](https://youtu.be/WVPvZnSw5tE)\n\n## Technologies Used\n\n- **OpenAI GPT**: For generating responses to user queries.\n- **IBM Watson**: For Text-to-Speech and Speech-to-Text capabilities.\n- **HTML, CSS, JavaScript**: For building the front-end interface.\n- **Bootstrap**: For responsive and mobile-friendly design.\n- **jQuery**: For handling DOM manipulations and AJAX requests.\n\n## Getting Started\n\n### Prerequisites\n\n- Python installed on your machine.\n- IBM Watson API credentials.\n- OpenAI API key.\n\n### Installation\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/cyberfantics/chatbot-with-voice-and-openai.git\n    cd chatbot-with-voice-and-openai\n    ```\n\n2. Install the dependencies:\n\n    ```bash\n    npm install\n    ```\n\n3. Set up your environment variables:\n\n    Create a `.env` file in the root of the project and add your IBM Watson and OpenAI API credentials:\n\n    ```env\n    IBM_API_KEY=your_ibm_api_key\n    IBM_URL=your_ibm_url\n    OPENAI_API_KEY=your_openai_api_key\n    ```\n\n4. Run the project:\n\n    ```bash\n    docker build . -t chatbot-with-voice-and-openai\n    docker run -p 8000:8000 chatbot-with-voice-and-openai\n    ```\n\n5. Open your browser and navigate to `http://localhost:8000`.\n\n## Usage\n\n1. **Toggle Light/Dark Mode**: Use the switch at the top to toggle between light and dark modes.\n2. **Choose a Voice**: Select a voice from the dropdown menu to change the voice of the chatbot's responses.\n3. **Interact with the Chatbot**: Type your message in the input box or click the microphone icon to speak to the chatbot.\n\n## File Structure\n\n```plaintext\n.\n├── public\n│   ├── index.html\n│   ├── css\n│   │   └── style.css\n│   ├── js\n│   │   └── script.js\n├── src\n│   ├── app.js\n│   ├── routes\n│   │   └── index.js\n├── .env\n├── package.json\n├── README.md\n```\n\n## Developer\nSyed Mansoor ul Hassan Bukhari\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberfantics%2Fchatbot-with-voice-and-openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyberfantics%2Fchatbot-with-voice-and-openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberfantics%2Fchatbot-with-voice-and-openai/lists"}