An AI made with Keras ( used the code of NeuralNine's NeuralIntents) to implement Speech Recognition. This pairs the neuralintents with the discord.py inorder to make a chatbot that can recognise speech based on patterns and give recorded responses.
This will guide through on How to deploy your own bot.After Installing it should show something like:
If it doesn't well. Reinstall. Or you might want to check the "Add to PATH option" (You can do it mannually)
- Discord.py
- After installing Python and adding the executable to the PATH in your environment variable(It happens automatically but in case if it doesn't works you have to do it mannually.)
- Type in the Command Prompt/ PowerShell in Windows or Terminal in Mac/Linux:
Windows:
pip install discord.py
Mac/Linux:
pip3 install discord.py
- Tensorflow
- Install it using pip.
Windows:
pip install tensorflow
Mac/Linux:
pip3 install tensorflow
- Now you're good to go.
Windows:
python bot.py
Mac/Linux
python3 bot.py
Make a blank folder named intents and make a blank intents.json file inside it
Sample:
{"intents": [
{"tag": "greeting",
"patterns": ["Hi", "How are you", "Is anyone there?", "Hello", "Good day", "Whats up", "Hey", "greetings"],
"responses": ["Hello!", "Good to see you again!", "Hi there, how can I help?"],
"context_set": ""
},
{"tag": "goodbye",
"patterns": ["cya", "See you later", "Goodbye", "I am Leaving", "Have a Good day", "bye", "cao", "see ya"],
"responses": ["Sad to see you go :(", "Talk to you later", "Goodbye!"],
"context_set": ""
},
{"tag": "stocks",
"patterns": ["what stocks do I own?", "how are my shares?", "what companies am I investing in?", "what am I doing in the markets?"],
"responses": ["You own the following shares: ABBV, AAPL, FB, NVDA and an ETF of the S&P 500 Index!"],
"context_set": ""
}
]
}If you want to contribute in making this something good you can Join us on Discord..
