npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

voxgen

v1.1.0

Published

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

Downloads

37

Readme

VOX Gen

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

NPM Version NPM Downloads Install Size

Usage

Instant Use (via NPX)

$ npx voxgen lima sector unauthorized

Install Locally

$ npm i -g voxgen
  ...

$ vox forms status india

Basic Usage

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 <voice>    Select voice (choices: "black-mesa", "half-life", default: "black-mesa")
  -f, --path [path]      Set voicepack path (override -v option)
  -l, --list [letter]    List words
  -s, --search <search>  Search in available words
  -c, --compact          Compact result
  -r, --repeat <n>       Repeat n times
  -p, --pause <n>        Pause between repeats (default: 1400)
  -d, --delay <n>        Delay between words (default: 350)
  -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

Options

Change Voice-pack

-v, --voice <voice>

Change the voice to use

Example:

$ vox -v half-life helium warm expect
 λ  Synthesizing speech — using half-life voicepack
 λ  "helium warm expect"
 λ  Complete in 2261ms.

Custom Voice-pack path

-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 (./).

List Words

-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.

Search Words

-s, --search <search>

Like --list but search term is matched in any position of the word.

Compact Mode

-c, --compac

Reduces the output footprint on --list and when vocalizing.

Repeat Mode

-r, --repeat <n>

Repeat the vocalization n times.

Pause Duration

-p, --pause <n>

Adjust the pause between repeats when using with --repeat.

Delay Duration

-d, --delay <n>

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.

Ignore Errors

-i, --ignore

Ignore any errors (non-existing words) and continue playing.

Random

-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.

wait

Use wait:1234 as a word anywhere to generate a pause of 1234ms or any other duration.

Example:

$ 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.