Metadata-Version: 2.1
Name: voice-assistant-linux
Version: 0.0.5
Summary: Virtual assistant from voice commands to control operating system graphical user interface.
Home-page: https://github.com/henrikbeck95/voice_assistant_linux/
Author: Henrik Beck
Author-email: henrikbeck95@gmail.com
License: GPL3
Keywords: val,voice assistant,i3wm,Unix Shell
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: POSIX :: Linux
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE

# Voice Assistant for Linux

Say hi to VAL (Voice Assistant for Linux)!

[![GitHub release](https://img.shields.io/github/release/henrikbeck95/voice_assistant_linux/all.svg)](https://github.com/henrikbeck95/voice_assistant_linux/releases)
[![GitHub license](https://img.shields.io/github/license/henrikbeck95/voice_assistant_linux.svg)](https://github.com/henrikbeck95/voice_assistant_linux/blob/master/LICENSE)
[![PyPI version shields.io](https://img.shields.io/pypi/v/voice-assistant-linux.svg)](https://pypi.org/project/voice-assistant-linux/)
[![Downloads](https://static.pepy.tech/badge/voice-assistant-linux)](https://pepy.tech/project/voice-assistant-linux)
[![Downloads](https://static.pepy.tech/badge/voice-assistant-linux/month)](https://pepy.tech/project/voice-assistant-linux)

## Description

A virtual assistant for Linux for controlling the operating system graphical user interface by using voice commands.

- Project task list status
    1. [x] Human voice recognition.
    1. [x] Human voice transcription.
    1. [x] Detects voice commands from a defined list and executes it.
    1. [x] Debug mode.
    1. [x] Works on i3 tiling window manager.
    1. [ ] Works on Gnome desktop environment.
    1. [ ] Works on KDE Plasma desktop environment.
    1. [ ] Works on XFCE desktop environment.
    1. [ ] Infinite while loop should be implement.

- Warning
    1. The software run only at once. This should be fixed by implementing the infinity while loop. The problem here is to define a strategy to invoke only the voice command after the user say 'Val'. Furthermore the source code must be returned to wait the 'Val' to be called again.

## Requirements

1. [ ] Linux kernel.
1. [ ] Python >= 3.10 (only because the match case and 'f' strings).
1. [ ] PIP3.
1. [ ] [Shell Script Library](https://github.com/henrikbeck95/shell_script_library).

### For all Linux distributions

- Install Shell Script Library
    > $`curl -fsSL github.com/henrikbeck95/shell_script_library/releases/latest/download/shell-script-library -O`

    > $ `mv ./shell-script-library /usr/local/bin/shell-script-library`

### For a specific Linux distribution

- ArchLinux
	> $ `sudo pacman -S festival festival-english festival-us python-pyaudio`

    <!--
    > $ `paru -S python-pyttsx3`
    -->

<!--
- Debian
	> $ `sudo apt-get install festival`

- Fedora
	> $ `sudo dnf install festival`

- Ubuntu
	> $ `sudo apt-get install festival`
-->

## Installation

### Development mode

1. Install Python libraries
    > $ `pip3 install SpeechRecognition`

    > $ `pip3 install yaml-1.3`

    > $ `pip3 install setuptools`

    > $ `pip3 install wheel`

    > $ `pip3 install twine`

    > $ `pip3 install voice-assistant-linux`

1. Clone this repository.
    > $ `git clone https://github.com/henrikbeck95/voice_assistant_linux.git`

1. Build the package for PyPi
    > $ `python3 setup.py sdist bdist_wheel`

1. Upload the package to PyPi repository
    > $ `twine upload dist/*`

<!--
cp ./src/speaking.sh ./build/lib/src/speaking.sh

cp ./src/settings.yml ./build/lib/src/settings.yml

cp ./src/libs/shell-script-library ./build/lib/src/libs/shell-script-library
-->

### Normal usage mode

1. Install from PyPi repository
    > $ `pip3 install voice-assistant-linux`

## Usage

### Development mode

1. Run it.
    > $ `python3 ./src/__init__.py`

<!--
### Normal usage mode

1. Run it.
    > $ `voice-assistant-linux`
-->

## Uninstallation

### Development mode

- Remove the Val project folder
	> $ `rm -fr ./voice_assistant_linux/`

### Normal usage mode

1. Uninstall it.
    > $ `pip3 uninstall voice-assistant-linux`

