Skip to main content

HomeSetup - AskAI

Project description

AskAI

Unleash the Power of AI in Your Terminal

Terminal License Release Donate build-and-test


Born from the idea of empowering individuals with disabilities to navigate the digital world effortlessly, AskAI stands as a beacon of accessibility in the realm of computing. It emerges as a revolutionary solution, harnessing the prowess of AI to bridge the gap between users and the terminal interface. With its intuitive design, AskAI welcomes users of all abilities, eliminating the need for extensive familiarity with shells like bash or zsh. Now, individuals with disabilities can effortlessly command their machines, whether it involves listing files and folders, summarizing documents, accessing real-time data, or delving into a myriad of other functions.

At the heart of AskAI lies its innovative integration of Speech-to-Text and Text-to-Speech technologies, offering a seamless experience for both visually and hearing impaired users. Through these cutting-edge features, individuals can interact with their computers using their natural voice, transcending the barriers imposed by traditional input methods. Moreover, AskAI introduces a unique push-to-talk input mechanism, enabling users to issue commands effortlessly, enhancing the fluidity and ease of interaction.

Furthermore, AskAI embraces diversity by breaking language barriers, ensuring that no matter the tongue spoken, users can communicate effectively with their systems. Its adaptive language capabilities ensure that commands are understood and executed accurately, regardless of linguistic nuances. By championing inclusivity on all fronts, AskAI redefines the landscape of computing accessibility, empowering individuals with disabilities to navigate the digital realm with confidence and autonomy.

The world speaks many languages. AskAI understands them all.

🔥 HOT 🔥 Checkout the YouTube video with our Demo!

YouTube Video

Key Features

  • Seamlessly Integrate AI Models (Currently Supporting OpenAI).
  • Activate Speech-to-Text Inputs via Push-to-Talk Keybinding.
  • Control Text-to-Speech Outputs with Adjustable Speed.
  • Enable Assistive Technology for Visually Impaired Terminal Usage.
  • Enjoy a Natural Typewriter Effect Synced with Speaking Text.
  • Automate Offline Language Translations for Enhanced Accessibility.
  • Interactive and Non-Interactive modes.
  • Image captions to provide textual descriptions for visual content.
  • Enhanced accuracy in responses is achieved through the implementation of a Retrieval-Augmented Generation (RAG) system.

Installation

Requirements

Python

  • Python 3.10 and higher

Operating Systems

  • Darwin
    • High Sierra and higher
  • Linux
    • Ubuntu 16 and higher
    • CentOS 7 and higher
    • Fedora 31 and higher

You may want to install HsPyLib on other OS's and it will probably work, but there are no guarantees that it WILL ACTUALLY WORK.

Applications / Libraries

The following software are required:

  • FFMPEG (To allow playing audio and video files from your terminal).
  • PORTAUDIO (To allow microphone recordings).
macOS installation

Use Homebrew to install the prerequisite portaudio:

$ brew install portaudio ffmpeg libmagic
GNU/Linux installation

Debian-based systems:

$ sudo apt install python3-pyaudio ffmpeg libmagic-dev

RedHat-based systems:

$ sudo dnf install portaudio-devel redhat-rpm-config ffmpeg libmagic-dev

AskAI installation

AskAI is available at PyPi

$ python3 -m pip install hspylib-askai

ApiKeys

In order to use AskAI you need to have the following Api Keys:

  • DEEPL_API_KEY (for translations).
  • GOOGLE_API_KEY (for internet browsing).
  • OPENAI_API_KEY (to use ChatGPT api).
Google Search API Integration

To enable the Custom Search API:

  1. Navigate to the APIs & Services→Dashboard panel in Cloud Console.
  2. Click Enable APIs and Services.
  3. Search for Custom Search API and click on it.
  4. Click Enable.

URL for it: https://console.cloud.google.com/apis/library/customsearch.googleapis.com

To create an API key:

  1. Navigate to the APIs & Services → Credentials panel in Cloud Console.
  2. Select Create credentials, then select API key from the drop-down menu.
  3. The API key created dialog box displays your newly created key.
  4. You now have an GOOGLE_API_KEY.

Alternatively, you can just generate an API key here: https://developers.google.com/custom-search/docs/paid_element#api_key

DeepL API

To enable the DeepL online translation:

  1. Navigate to you account settings.
  2. Select the tab API Keys.
  3. Click on Create key + .
  4. You now have a DEEPL_API_KEY.
OpenAI API

To enable your OpenAI LLM:

  1. Access the OpenAI API Section:
  2. Navigate to the API section of the OpenAI dashboard.
  3. Create a New API Key by clicking on “Create API Key” or a similar button.
  4. Name Your API Key:
  5. You now have a OPENAI_API_KEY.

Support

Your support and contributions are greatly appreciated in helping us improve and enhance HomeSetup. Together, we can make it even better!

You can support HomeSetup by donating or contributing code. Feel free to contact me for further details. When making code contributions, please make sure to review our guidelines and adhere to our code of conduct.

"Buy Me A Coffee"

You can also sponsor it by using our GitHub Sponsors page.

This project is already supported by:

Thank you <3 !!

Contacts

Enjoy!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hspylib_askai-1.2.1.tar.gz (544.0 kB view details)

Uploaded Source

Built Distribution

hspylib_askai-1.2.1-py3-none-any.whl (611.0 kB view details)

Uploaded Python 3

File details

Details for the file hspylib_askai-1.2.1.tar.gz.

File metadata

  • Download URL: hspylib_askai-1.2.1.tar.gz
  • Upload date:
  • Size: 544.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for hspylib_askai-1.2.1.tar.gz
Algorithm Hash digest
SHA256 6315b37537ba7244f4ae2b0dcfb20d6cca9edada93e671681240f5a4300fef82
MD5 1410b7b0d85f9c140d9917128f6a9aea
BLAKE2b-256 778e0f532cb6d9b1b86f72b6eeae49741dbcd960447b612ca17225ea409ea859

See more details on using hashes here.

File details

Details for the file hspylib_askai-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hspylib_askai-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4734275f9fbdc549399d7697985638d2b5fa69e6a85990f3988aee62887c9ac5
MD5 87bedcd4aa0aba0da57a486c12b85825
BLAKE2b-256 d85820d86103f5b28fc5fe38adb0a59da7ffb3f8255e291146515d3d1a36fc41

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page