Speech-ChatBot is a simple chatbot that utilizes the brainshop.ai API to provide natural language conversation capabilities. This README will guide you through the process of setting up and using the Speech-ChatBot with the brainshop.ai API.
Before you can use the Speech-ChatBot, you need to have the following prerequisites:
- Python 3.x (<=3.12.0 for compatibility issues) installed on your system.
- An API key from brainshop.ai. You can sign up for an API key at https://brainshop.ai.
-
Clone this repository to your local machine using the following command:
git clone https://github.com/nxrmqlly/speech-chatbot.git
-
Change to the project directory:
cd speech-chatbot
-
Install the required Python packages by running:
pip install -r requirements.txt
1. Before you can use the Speech-ChatBot, you need to configure it with your brainshop.ai API key and Brain ID. Create (in ./
) and open the secret.env
file in a text editor and replace YOUR_API_KEY_HERE
and YOUR_BRAIN_ID_HERE
with your actual API key and Brain ID:
# secret.env
# Replace "YOUR_API_KEY_HERE" with your brainshop.ai API key
BS_KEY="YOUR_API_KEY_HERE"
# Replace "YOUR_BRAIN_ID_HERE" with your brainshop.ai Brain ID
BS_ID="YOUR_BRAIN_ID_HERE"
2. Train your Brain at https://brainshop.ai including attributes and other models.
To start the Speech-ChatBot, simply run the following command:
python . # Or python __main__.py
The chatbot will start and display a prompt for you to speak through your microphone. It will send your messages to the brainshop.ai API and display the chatbot's responses.
Feel free to have a natural conversation with the chatbot. You can use it for various purposes, including answering questions, providing information, or just engaging in casual conversation.
If you'd like to contribute to the development of the Speech-ChatBot, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with clear, descriptive messages.
- Push your branch to your fork.
- Create a pull request to the main repository.
This project is licensed under the Apache-2.0 license - see the LICENSE file for details.