Giter Site home page Giter Site logo

elograf's Introduction

Elograf

This program is an utility for launching and configuring nerd-dictation for voice recognition.

Usage

It is intended to be launched at start of the desktop environnement to display an icon in the icons tray. Use your favorite desktop settings manager to add the command 'elograf' launched at start.

The icon when pressed with right click has a menu with command to start and stop the dictation. It has also an entry to configure the model and other options.

When selecting the option "Active direct click on icon", and after a restart, a click on the icon launches nerd-dictation. A new press stops it. With right click, the utility can be exited or configured.

The icon reflects the state of the dictation.

The configuration dialogue contains a table list of all models which are installed on the system and which can be selected.
Models can be directly downloaded from alphacei website and stored either in the user or system space. For storing in the system space, root credentials are asked through polkit mechanism.
You can also select a directory where a model resides. You have to give it a unique name.
The configuration dialog is displayed if no model has been set previously.
In Advanced dialogue, you can set an optionnal precommand which is launched before nerd-dictation itself. Another line is for optionnal postcommand which is launched after nerd-dictation is stopped.
You can also select or define some options which are passed to nerd-dictation.
You can select the input simulation tool in XDOTOOL (used by default) and DOTOOL. DOTOOL should be used for Wayland environment and you have to specify the keyboord layout code with a two letters code like 'fr' or 'de' if you don't use the 'us' layout.

The start can take a long time, according to the size of the model.

Options
    -l, --log <level>   : output information according to the level, where <level> is a standard level in Python
    -s, --start         : launch the dictation directly. This is possible only if the model has already been configured. This can for example be associated with a shortcut.


Installation
In command line, as root for system wide installation, or as user for a local installation
pip install .
In case of local installation, be sure that ~/.local/bin is in the PATH variable.
nerd-dictation is not included and needs to be installed separately.
Python modules requirements:
- ujson
- Qt6

Under the hood

This tool is written in Python 3 and use Qt6.
Configuration file is ~/.config/Elograf/Elograf.conf
In user space, models are stored in ~/.config/vosk-models
In system space, models are stored in /usr/share/vosk-models
Translations files are expected in /usr/share/elograf/translations

elograf's People

Contributors

yurchor avatar albanobattistella 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.