项目作者: nalquas

项目描述 :
Voice-based hotkey program
高级语言: C++
项目地址: git://github.com/nalquas/vokey.git
创建时间: 2020-03-17T15:07:35Z
项目社区:https://github.com/nalquas/vokey

开源协议:GNU General Public License v3.0

下载


CMake

Vokey

  1. . . __________ __ _____ ___________ __ __
  2. |\ /| / ____ \ | | / __/ / _______/ | | | |
  3. | \ / | | / \ | | \_/ / | |______ | | | |
  4. \ \ / / | / \ | | / | ______| \ \____/ |
  5. \ \ / / | \ / | | _ \ | | \______ |
  6. \ \/ / | \____/ | | / \ \__ | |_______ ______\ |
  7. \____/ \__________/ |__| \____\ \__________\ /_________/

Vokey is a voice-based hotkey application.

The goal is to have an easily manageable service executing macros when voice commands are spoken.
The planned use case is gaming - Imagine flying a spaceship and just being able to command your vessel by speech.

Vokey is intended for use on Linux systems with Pulseaudio and X11.

Usage

Vokey is split into two sub-programs.

The main program is a background service reacting to your voice in a manner described by the selected profile:

  1. vokey_service

The second program is a GUI-based manager used to configure the service.
You could use the service without this if you prefer editing .json files manually.

  1. vokey_manager

Installation

AUR

If you’re on Arch-based systems, you can get Vokey from the AUR:
https://aur.archlinux.org/packages/vokey-git/

  1. yay -S vokey-git

Compilation

You must have the following libraries installed to your system to compile Vokey yourself:

  1. # On Ubuntu (20.04) systems, install the necessary dev packages and dependencies using:
  2. sudo apt install build-essential git qt5-default libpulse-dev pocketsphinx pocketsphinx-en-us libpocketsphinx-dev libsphinxbase3 libsphinxbase-dev alsa-utils festival nlohmann-json3-dev libx11-dev libxtst-dev
  3. # On Arch-based systems, install the necessary dev packages and dependencies using:
  4. sudo pacman -Syu base-devel qt5-base pulseaudio alsa-utils festival festival-english nlohmann-json
  5. # Pocketsphinx is not in the Arch repositories, you'll have to get it from the AUR:
  6. # https://aur.archlinux.org/packages/pocketsphinx
  7. # https://aur.archlinux.org/packages/sphinxbase/

To compile the project, follow these steps:

  1. # If you're on Ubuntu 20.04 (Workaround for wrong pkg-config configuration of the official pocketsphinx package):
  2. sudo mkdir /usr/include/sphinxbase
  3. # Build
  4. mkdir build
  5. cd build
  6. cmake ..
  7. make
  8. # If you want to install the project without a package manager:
  9. sudo make install
  10. # If you're a package maintainer and want to "install" in a packaging-friendly way:
  11. make install DESTDIR=<Your package directory here>