g-flite is a command-line utility which lets you run flite
text-to-speech app on Golem Network.
g-flite currently requires that you have Golem instance running on the same machine
and only testnet is currently supported due to the fact that
our WASM platform is only available on the testnet.
You can grab a precompiled version of the program for each OS, Linux, Mac, and Win, from here.
Building from source
If you wish however, you can also build the program from source. To do this, you'll first need
to clone the repo. Note that the actual WASM binary of the
flite app is stored using Git-LFS
so you need to take extra care when cloning the repo
$ git clone --depth 50 https://github.com/golemfactory/g-flite $ cd g-flite $ git lfs install $ git lfs pull
Afterwards, you need to ensure you have Rust installed in version at least
1.34.0. A good place
to get your hands on the latest Rust is rustup website.
With Rust installed on your OS, you then need to simply run from within
$ cargo build
for debug version, or
$ cargo build --release
for release version. Your program can then be found in
for debug version, or
for release version.
Typical usage should not differ much or at all from how you would use the original
$ g_flite some_text_input.txt some_speech_output.wav
Note that it is required to specify the name of the output file. All of this assumes that you have your Golem installed using the default settings
$APP_DATA_DIR is platform specific:
- on Linux will usually refer to
- on Mac will usually refer to
- on Windows will usually refer to
If any of the above information is not correct for your Golem configuration, you can adjust them directly in the command-line as follows
$ g_flite --address 127.0.0.1 --port 61000 --datadir /abs/path/to/golem/datadir some_text_input.txt some_speech_output.wav
Finally, by default
g-flite will split your input text into 6 subtasks and compute them
on Golem Network. You can also adjust this option in the command-line as follows
$ g_flite --subtasks 2 some_text_input.txt some_speech_output.wav
All of this information can also be extracted from the command-line with the
$ g_flite -h g_flite 0.1.0 Golem RnD Team <email@example.com> flite, a text-to-speech program, distributed over Golem network USAGE: g_flite [FLAGS] [OPTIONS] <TEXTFILE> <WAVFILE> FLAGS: -h, --help Prints help information -V, --version Prints version information -v, --verbose Turns verbose logging on OPTIONS: --address <ADDRESS> Sets RPC address to Golem instance --datadir <DATADIR> Sets path to Golem datadir --port <PORT> Sets RPC port to Golem instance --subtasks <NUM> Sets number of Golem subtasks ARGS: <TEXTFILE> Input text file <WAVFILE> Output WAV file
This program is still very much a work-in-progress, so if you find (and you most likely will) any bugs, please submit them in our issue tracker.