Giter Site home page Giter Site logo

nthnn / tasuke Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7 KB

Customizable personal computer assistant that utilizes AI voice command recognition to help automate tasks and provide a more interactive computing experience.

License: MIT License

Shell 36.19% Python 63.81%
accessibility ai-assistant interactive python-ai python-app python-script speech-processing speech-recognition speech-to-text text-to-speech

tasuke's Introduction

Tasuke

Build CI

Tasuke is a customizable personal computer assistant that utilizes AI voice command recognition to help automate tasks and provide a more interactive computing experience. This project uses Google Text-to-Speech (gTTS), Pygame for audio playback, and the SpeechRecognition library for capturing and transcribing voice commands.

  • Voice Command Recognition: Uses Google's speech recognition API to transcribe voice commands.
  • Text-to-Speech: Provides auditory feedback using gTTS and Pygame.
  • Command Execution: Executes predefined commands based on recognized phrases.
  • Customizable Commands: Easily add or modify commands through a configuration file.

Installation

To get started with Tasuke, follow these comprehensive steps to download, install, and run the software on your system.

  1. Download Tasuke - Download the Debian package of Tasuke from the official release page.

  2. Install the Debian Package - Once the package is downloaded, install it using the dpkg command:

    sudo dpkg -i tasuke_*.deb
  3. Install APT Dependencies - Tasuke relies on several system-level dependencies that must be installed before running the script.

    sudo apt install python3-full libespeak-dev portaudio19-dev python3-pyaudio
  4. Install Python libraries - Tasuke requires several Python libraries to function properly. Install these dependencies using the following command:

    pip install SpeechRecognition pyaudio gtts pygame setuptools --break-system-packages
  5. Run Tasuke - After successfully installing Tasuke and the required dependencies, you can start the application by simply typing tasuke in your terminal:

    tasuke

    This command initializes Tasuke, and it will begin listening for voice commands based on the configured settings.

Running from Source

To run Tasuke from source, follow these steps to ensure all dependencies are installed, the necessary configurations are made, and the script is executed correctly.

  1. Install APT Dependencies - Tasuke relies on several system-level dependencies that must be installed before running the script.

    sudo apt install python3-full libespeak-dev portaudio19-dev python3-pyaudio
  2. Install Python libraries - Tasuke requires several Python libraries to function properly. Install these dependencies using the following command:

    pip install SpeechRecognition pyaudio gtts pygame setuptools --break-system-packages
  3. Configuration File - Tasuke uses a JSON configuration file to define the voice commands it recognizes and the corresponding actions it performs. Create the configuration file at /etc/tasuke/conf.d/commands.json with the following content:

    [
      [
        ["what's the date today"],  // Speech transcriptions
        ["Here's the date today"],  // List of possible replies
        "date"                      // Command to be executed
      ]
    ]
    • Speech Transcriptions: A list of phrases that Tasuke will recognize.
    • List of Possible Replies: Possible responses Tasuke will randomly give upon recognizing a phrase.
    • Command to be Executed: The shell command that Tasuke will execute when a phrase is recognized.
  4. Running the script - After creating the commands.json configuration file, you can now run Tasuke. Use the following command to start the script, redirecting any errors to /dev/null to suppress unnecessary error messages:

    python3 tasuke.py 2>/dev/null

License

This file is part of the tasuke project.

Copyright (c) 2024 Nathanne Isip.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3.
 
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

tasuke's People

Contributors

nthnn avatar

Watchers

 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.