Browse Source

update docs

encrypt 4 years ago
parent
commit
1acf2c5022
1 changed files with 27 additions and 7 deletions
  1. 27 7
      mumble-bot/README.md

+ 27 - 7
mumble-bot/README.md

@@ -3,7 +3,7 @@ mumble-bot
 
 prende l'audio del canale, ne fa stdout.
 
-install
+Install
 --------
 
 ```
@@ -13,18 +13,38 @@ pip3 install --user -r requirements.txt
 python3 setup.py install --user
 ```
 
-ascolta
--------
+Usi
+---
+
+### Ascolta
 
 con pulseaudio
 
 ```
-python3 bot.py | paplay --raw --rate=48000 --format=s16le --channels=2
+python3 bot.py --stream --channel "canale" | paplay --raw --rate=48000 --format=s16le --channels=2
+```
+
+### Stream to icecast
+
+```
+python3 bot.py --stream --channel "canale" | ffmpeg -ac 2 -ar 48000 -f s16le -i pipe: -codec:a libvorbis -qscale:a 3 -content_type 'audio/ogg' -vn -f ogg icecast://username:passwordsicura@ice.cast:8000/test.ogg
 ```
 
-streama
--------
+### Use inside liquidsoap
+
 
 ```
- python3 bot.py | ffmpeg -ac 2 -ar 48000 -f s16le -i pipe: -codec:a libvorbis -qscale:a 3 -content_type 'audio/ogg' -vn -f ogg icecast://username:passwordsicura@ice.cast:8000/test.ogg
+(
+id: "antani",
+buffer: 2.0,
+channels: 2,
+max: 10,
+restart: true,
+restart_on_error: true,
+samplerate: 48000,
+"python3 /path/to/bot.py --channel canale"
+)
+
 ```
+
+Poi entri in chat e fai il comando `/start` per iniziare la diretta, `/stop` per fermarla.