Coder Social home page Coder Social logo

lok-lib's Introduction

lok-lib

A library to power an AI digital assistant

It is a Python library that I built to use for my own personal projects. It contains modules to build AI assistant and other general-purpose tools. Some modules are built from scratch while others contain dependencies on other libraries or modules, so it may break in the future. Feel free to raise an issue if you encounter any problems.

It is still under development


JAM - AI :

JAM is an AI assistant that I'm currently building using the lok-lib library. check out below

https://github.com/Lokeshwaran-M/Jam-AI

Instalation :

use pip and install it in your local site-packages directory

pip install git+https://github.com/Lokeshwaran-M/lok-lib

or

to add your modification and install in your local site-packages directory

# clone in your project directory
git clone https://github.com/Lokeshwaran-M/lok-lib
cd lok-lib

# after modification run setup.py 
python setup.py sdist bdist_wheel

# run pip to move inside your local site-packages directory
pip install .

edit .env config

config .env
EMAIL_ADDRESS="your-email-id"
PASSWORD="pwd"
BARDTOKEN="your-bard-tocken"

create .env file in your repo with above credentials for the BARDTOKEN see Google Bard


DOCS :

Modules in the library

The documentation for each module will be updated soon


Requirement :

use pip and download the lok-lib in your local site-packages directory

pip install git+https://github.com/Lokeshwaran-M/lok-lib

ffmpeg audio

# on Ubuntu or Debian
sudo apt update && sudo apt install ffmpeg

# on Arch Linux
sudo pacman -S ffmpeg

# on MacOS using Homebrew (https://brew.sh/)
brew install ffmpeg

# on Windows using Chocolatey (https://chocolatey.org/)
choco install ffmpeg

# on Windows using Scoop (https://scoop.sh/)
scoop install ffmpeg

text to speech

sudo apt install alsa-utils
sudo apt install espeak

python module :

If there are errors with the dependencies during installation, you can try installing specific packages using the following pip commands

pip install pyaudio

# whisper
pip install -U openai-whisper
pip install git+https://github.com/openai/whisper.git 
## for updated version
pip install --upgrade --no-deps --force-reinstall git+https://github.com/openai/whisper.git

## whisper dependencies
pip install torch
pip install ffmpeg-python
pip install tiktoken
pip install numba
pip install --pre numba
pip install setuptools-rust

pip install openai

## text to speech
pip install gtts
pip install playsound
pip install pyttsx3

lok-lib's People

Contributors

lokeshwaran-m avatar

Stargazers

Naveen Kumar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.