Speech synthesising from the cli using Half-Life and Black Mesa VOX voice packs
npm install voxgen


``bash`
$ npx voxgen lima sector unauthorized
`bash
$ npm i -g voxgen
...
$ vox forms status india
`
`bash
Usage: vox [options] [words...]
λ Speech synthesising from the cli using Half-Life and Black Mesa VOX voice packs
Arguments:
words words to say
Options:
-V, --version output the version number
-v, --voice
-f, --path [path] Set voicepack path (override -v option)
-l, --list [letter] List words
-s, --search
-c, --compact Compact result
-r, --repeat
-p, --pause
-d, --delay
-i, --ignore Ignore errors
-x, --random [n] Pick random (n) words
-h, --help display help for command
You can use the wait:1234 modifier to add a custom delay (in milliseconds) between specific words.
e.g. $ vox echo go wait:1200 helium
`
Change the voice to use
Example:
`bash
$ vox -v half-life helium warm expect
λ Synthesizing speech — using half-life voicepack
λ "helium warm expect"
λ Complete in 2261ms.
`
$3
#### -f, --path [path]Use a custom directory, which is expected to have several .wav files, for the voxgen voice-pack.
Default path is the current working directory (
./).
$3
#### -l, --list [letter]List the available words for the chosen voice-pack.
If
letter provided it will be used to match words starting with letter (can be more than one letter).Use in conjunction with
-c for compact display result.
$3
#### -s, --search Like
--list but search term is matched in any position of the word.
$3
#### -c, --compacReduces the output footprint on
--list and when vocalizing.
$3
#### -r, --repeat Repeat the vocalization
n times.
$3
#### -p, --pause Adjust the pause between repeats when using with
--repeat.
$3
#### -d, --delay Adjust the delay between individual words.
Note: Using
wait:400 modifier will stagger with the delay - e.g. a wait:400 with a --delay 600 will result in a 1000ms pause.
$3
#### -i, --ignoreIgnore any errors (non-existing words) and continue playing.
$3
#### -x, --random [n]Generate a random vocalization - provide
n number to specify the length in words of vocalization to generate.
Modifiers
Modifiers allow to use in place of words to execute a command such as a pause.
$3
Use
wait:1234 as a word anywhere to generate a pause of 1234ms or any other duration.Example:
`bash
$ vox green alert wait:1200 lima sector wait:1200 buzwarn wait:1200 buzwarn λ Synthesizing speech — using black-mesa voicepack
λ "green alert wait:1200 lima sector wait:1200 buzwarn wait:1200 buzwarn"
λ Complete in 10577ms.
``