Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.78 KB

README.md

File metadata and controls

62 lines (43 loc) · 1.78 KB

Python Powered AI Chatbot

This repository is developed by APU AIC for the "Python Powered AI Chatbot Workshop" held in Asia Pacific University of Technology & Innovation on 31-May-2024.

Users will learn to develop a voice assistant using Python and pre-trained models.

Package Installation

Use the package manager pip to install packages.

Library for performing speech recognition, with support for several engines and APIs, online and offline.

pip install SpeechRecognition

Library for reading key-value pairs from a .env file and can set them as environment variables. In this case, it is used to set up Hugging Face API token access

pip install python-dotenv

LangChain is a framework for developing applications powered by large language models (LLMs)

pip install langchain
pip install langchain-community
pip install langchain_huggingface

Library for interacting with the Hugging Face Hub, a platform democratizing open-source Machine Learning for creators and collaborators.

pip install Huggingface-hub

Library required for using microphone input, Microphone of SpeechRecognition library.

pip install Pyaudio

Library for listening and sending keyboard events to activate and terminate chatbot.

pip install keyboard

Library for text-to-speech conversion

pip install pyttsx3

References

SpeechRecognition 3.10.4 Documentation

python-dotenv 1.0.1 Documentation

langchain 0.2.1 Documentation

huggingface-hub 0.23.2 Documentation

keyboard 0.13.5 Documentation

pyttsx3 2.90 Documentation