From ed05deca5f1caf476021223c1ffd1c0c0bdfb2d3 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Fri, 12 Jul 2024 00:14:50 +0000 Subject: [PATCH] Update cheatsheets --- tldr/accelerate | 2 +- tldr/linux/factorio | 17 +++++++++++++++++ tldr/linux/terraria | 17 +++++++++++++++++ tldr/piper | 30 ++++++++++++++++++++++++++++++ 4 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 tldr/linux/factorio create mode 100644 tldr/linux/terraria create mode 100644 tldr/piper diff --git a/tldr/accelerate b/tldr/accelerate index cd3282a7..42b2e87a 100644 --- a/tldr/accelerate +++ b/tldr/accelerate @@ -3,7 +3,7 @@ syntax: markdown tags: [tldr, common] source: https://github.com/tldr-pages/tldr.git --- -# Accelerate +# accelerate > A library that enables the same PyTorch code to be run across any distributed configuration. > More information: . diff --git a/tldr/linux/factorio b/tldr/linux/factorio new file mode 100644 index 00000000..d291ca9a --- /dev/null +++ b/tldr/linux/factorio @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# factorio + +> Create and start a headless Factorio server. +> More information: . + +- Create a new save file: + +`{{path/to/factorio}} --create {{path/to/save_file.zip}}` + +- Start a Factorio server: + +`{{path/to/factorio}} --start-server {{path/to/save_file.zip}}` diff --git a/tldr/linux/terraria b/tldr/linux/terraria new file mode 100644 index 00000000..d2bab755 --- /dev/null +++ b/tldr/linux/terraria @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# terraria + +> Create and start a headless Terraria server. +> More information: . + +- Start an interactive server setup: + +`{{path/to/TerrariaServer}}` + +- Start a Terraria server: + +`{{path/to/TerrariaServer}} -world {{path/to/world.wld}}` diff --git a/tldr/piper b/tldr/piper new file mode 100644 index 00000000..de6d96fa --- /dev/null +++ b/tldr/piper @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# piper + +> A fast, local neural text to speech system. +> Try out and download speech models from . +> More information: . + +- Output a WAV [f]ile using a text-to-speech [m]odel (assuming a config file at model_path + .json): + +`echo {{Thing to say}} | piper -m {{path/to/model.onnx}} -f {{outputfile.wav}}` + +- Output a WAV [f]ile using a [m]odel and specifying its JSON [c]onfig file: + +`echo {{'Thing to say'}} | piper -m {{path/to/model.onnx}} -c {{path/to/model.onnx.json}} -f {{outputfile.wav}}` + +- Select a particular speaker in a voice with multiple speakers by specifying the speaker's ID number: + +`echo {{'Warum?'}} | piper -m {{de_DE-thorsten_emotional-medium.onnx}} --speaker {{1}} -f {{angry.wav}}` + +- Stream the output to the mpv media player: + +`echo {{'Hello world'}} | piper -m {{en_GB-northern_english_male-medium.onnx}} --output-raw -f - | mpv -` + +- Speak twice as fast, with huge gaps between sentences: + +`echo {{'Speaking twice the speed. With added drama!'}} | piper -m {{foo.onnx}} --length_scale {{0.5}} --sentence_silence {{2}} -f {{drama.wav}}`