Skip to content

Commit

Permalink
Add missing files.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Oct 3, 2023
1 parent 683c46a commit 448061d
Show file tree
Hide file tree
Showing 5 changed files with 26,796 additions and 3 deletions.
1 change: 1 addition & 0 deletions website/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ content/doc-$(DEFAULT_VERSION):
git clone --depth=1 -b v$(DEFAULT_VERSION) https://github.com/savonet/liquidsoap.git /tmp/liquidsoap-doc-$(DEFAULT_VERSION)
cp -rf /tmp/liquidsoap-doc-$(DEFAULT_VERSION)/doc/content content/doc-$(DEFAULT_VERSION)
rm -rf /tmp/liquidsoap-doc-$(DEFAULT_VERSION)
rm -rf /tmp/liquidsoap-doc-$(DEFAULT_VERSION)/doc/content content/doc-$(DEFAULT_VERSION)/.gitignore

$(PWD)/content/doc-$(DEFAULT_VERSION)/settings.md:
docker run -e PAGER=none savonet/liquidsoap:v$(DEFAULT_VERSION) liquidsoap --list-settings > $(@)
Expand Down
3 changes: 0 additions & 3 deletions website/content/doc-2.2.1/.gitignore

This file was deleted.

114 changes: 114 additions & 0 deletions website/content/doc-2.2.1/protocols.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
### annotate

Add metadata to a request

The syntax is `annotate:key="val",key2="val2",...:uri`.

### ffmpeg

Decode any file to wave using ffmpeg

The syntax is `ffmpeg:uri`.

### file

File protocol. Only local files are supported

The syntax is `file:///path/to/file`. This protocol is static.

### gtts

Generate speech synthesis using Google translate's text-to-speech API. This requires the `gtts-cli` binary. Result may be mono.

The syntax is `gtts:Text to read`. This protocol is static.

### http

Download http URLs using curl

The syntax is `http://...`.

### https

Download http URLs using curl

The syntax is `https://...`.

### mpd

Finds all files with a tag equal to a given value using mpd.

The syntax is `mpd:tag=value`.

### pico2wave

Generate speech synthesis using pico2wave. Result may be mono.

The syntax is `pico2wave:Text to read`. This protocol is static.

### polly

Generate speech synthesis using AWS polly service. Result might be mono, needs aws binary in the path.

The syntax is `polly:Text to read`. This protocol is static.

### process

Resolve a request using an arbitrary process. `<cmd>` is interpolated with: `[("input",<input>),("output",<output>),("colon",":")]`. `uri` is an optional child request, `<output>` is the name of a fresh temporary file and has extension `.<extname>`. `<input>` is an optional input file name as returned while resolving `uri`.

The syntax is `process:<extname>,<cmd>[:uri]`.

### replaygain

Compute ReplayGain value. Adds returned value as `"replaygain_track_gain"` metadata

The syntax is `replaygain:uri`.

### s3

Fetch files from s3 using the AWS CLI

The syntax is `s3://uri`.

### say

Generate speech synthesis using text2wave. Result is always stereo.

The syntax is `say:Text to read`. This protocol is static.

### stereo

Convert a file to stereo (currently decodes to wav).

The syntax is `stereo:<uri>`. This protocol is static.

### synth

Syntesize audio. Parameters are optional.

The syntax is `synth:shape=sine,frequency=440.,duration=10.`. This protocol is static.

### text2wave

Generate speech synthesis using text2wave. Result may be mono.

The syntax is `text2wave:Text to read`. This protocol is static.

### tmp

Mark the given uri as temporary. Useful when chaining protocols

The syntax is `tmp:uri`.

### youtube-dl

Resolve a request using youtube-dl.

The syntax is `youtube-dl:uri`.

### youtube-pl

Resolve a request as a youtube playlist using youtube-dl. You typically want to use this as `playlist("youtube-pl:...")`.

The syntax is `youtube-pl:uri`.

Loading

0 comments on commit 448061d

Please sign in to comment.