Skip to content

Commit

Permalink
readme: update & include recent in the changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ideasman42 committed Feb 9, 2023
1 parent ae3053d commit ddac32a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Changelog
#########

- 2023/02/09: Add ``--vosk-grammar-file`` allowing a restricted set of words.
- 2023/02/09: Use ``SIGHUB`` to reload the user configuration at run-time.
- 2023/02/02: Add ``--suspend-on-start`` argument to the ``begin`` sub-command.
- 2023/02/02: Add ``suspend`` & ``resume`` sub-commands for process level suspend/resume.
- 2022/11/03: Add ``dotool`` support with ``--simpulate-input-tool=DOTOOL``.
Expand Down
2 changes: 1 addition & 1 deletion nerd-dictation
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ def argparse_create_begin(subparsers: "argparse._SubParsersAction[argparse.Argum
help=(
"Path to a JSON grammar file. This restricts the phrases recognized by VOSK for\n"
"better accuracy. See `vosk_recognizer_new_grm` in the API reference:\n"
" https://github.com/alphacep/vosk-api/blob/master/src/vosk_api.h"
"https://github.com/alphacep/vosk-api/blob/master/src/vosk_api.h"
),
required=False,
)
Expand Down
6 changes: 5 additions & 1 deletion readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Subcommand: ``begin``
usage::

nerd-dictation begin [-h] [--cookie FILE_PATH] [--config FILE]
[--vosk-model-dir DIR]
[--vosk-model-dir DIR] [--vosk-grammar-file DIR]
[--pulse-device-name IDENTIFIER]
[--sample-rate HZ] [--defer-output] [--continuous]
[--timeout SECONDS] [--idle-time SECONDS]
Expand All @@ -223,6 +223,10 @@ options:
--config FILE Override the file used for the user configuration.
Use an empty string to prevent the users configuration being read.
--vosk-model-dir DIR Path to the VOSK model, see: https://alphacephei.com/vosk/models
--vosk-grammar-file DIR
Path to a JSON grammar file. This restricts the phrases recognized by VOSK for
better accuracy. See `vosk_recognizer_new_grm` in the API reference:
https://github.com/alphacep/vosk-api/blob/master/src/vosk_api.h
--pulse-device-name IDENTIFIER
The name of the pulse-audio device to use for recording.
See the output of "pactl list sources" to find device names (using the identifier following "Name:").
Expand Down

0 comments on commit ddac32a

Please sign in to comment.