Linux Voice Activated Macro
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daniele Scasciafratte 6aa3d4c6a1 remove modules not used 2 years ago
.idea added the initial version for voice command spotting 3 years ago
.img other cleanup 3 years ago
keyboard other cleanup 3 years ago
model/en-us added the initial version for voice command spotting 3 years ago
pynput other cleanup 3 years ago
.gitignore adding gitignore 3 years ago
LICENSE.txt Added GPLv3 licence 3 years ago
README.md Update README.md 3 years ago
command.list Readme tweaks 3 years ago
commandeditwnd.py remove modules not used 2 years ago
commandeditwnd.ui added the initial version for voice command spotting 3 years ago
keyactioneditwnd.py remove modules not used 2 years ago
keyactioneditwnd.ui initial commit 3 years ago
main.py create a config folder 2 years ago
mainwnd.ui initial commit 3 years ago
mouseactioneditwnd.py remove modules not used 2 years ago
mouseactioneditwnd.ui initial commit 3 years ago
pauseactioneditwnd.py remove modules not used 2 years ago
pauseactioneditwnd.ui initial commit 3 years ago
profileeditwnd.py remove modules not used 2 years ago
profileeditwnd.ui initial commit 3 years ago
profileexecutor.py create a config folder 2 years ago
profiles.dat Readme tweaks 3 years ago
set_kws_threshold.py added the initial version for voice command spotting 3 years ago
ui_commandeditwnd.py added the initial version for voice command spotting 3 years ago
ui_keyactioneditwnd.py initial commit 3 years ago
ui_mainwnd.py initial commit 3 years ago
ui_mouseactioneditwnd.py initial commit 3 years ago
ui_pauseactioneditwnd.py initial commit 3 years ago
ui_profileeditwnd.py initial commit 3 years ago

README.md

LinVAM

Linux Voice Activated Macro

Status

This project is currently a work-in-progress and is minimally functional only for english.

Utilising Pocketsphinx, a lightweight voice to text engine you can specify voice commands for the tool to recognise and actions to perform.

Known bugs and planned additions

  • To save and use changes click Ok on the main GUI then reload.
  • Remember last loaded profile and load on start
  • Log window showing spoken words the V2T recognises with ability to right click and assign voice command and actions to current profile
  • Support for joysticks and gaming devices

Requirements

  • python3
  • PyQt5
  • python3-xlib
  • pyaudio
  • pocketsphinx
  • swig3.0

Install

  • $ pip3 install PyQt5
  • $ pip3 install python3-xlib
  • $ pip3 install pyaudio
  • $ pip3 install pocketsphinx
  • $ sudo apt-get install swig3.0
  • $ sudo ln -s /usr/bin/swig3.0 /usr/bin/swig
  • $ git clone https://github.com/aidygus/LinVAM.git

Usage

This script must be run with root privilege because it must hook and simulate input devices such as keyboard, mouse etc.

  • $ cd LinVAM
  • $ xhost +
  • $ sudo ./main.py

Profiles

Multiple profiles are supported. To create a new profile for a specific task/game click new and the main profile editor window will be displayed

Main GUI

Key combinations

To assign key combinations first decide which functional key to press by clicking on Ctrl, Alt, Shift or Win to denote left or right key then press the actual command key

Main GUI

Complex commands

It is possible to add multiple actions to a voice command for complex macros with the ability to add a pause between each action. You can also assign mouse movements and system commands if you require (eg opening applications such as calculator, browser etc)

Main GUI

Threshold

As a rough guide use a value of 10 for each syllable of a word then tweak it down for better accuracy.