Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chat-apropo/mpd_irc_bot
The irc radio bot used on irc.dot.org.es! It can manage mpd playlist, upload files using DCC or youtube links. It also features a sonic pi repl!
https://github.com/chat-apropo/mpd_irc_bot
chatbot icecast irc irc-bot mpd mpd-client radio sonic-pi
Last synced: 20 days ago
JSON representation
The irc radio bot used on irc.dot.org.es! It can manage mpd playlist, upload files using DCC or youtube links. It also features a sonic pi repl!
- Host: GitHub
- URL: https://github.com/chat-apropo/mpd_irc_bot
- Owner: chat-apropo
- License: other
- Created: 2022-05-14T06:30:36.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-27T04:07:28.000Z (over 2 years ago)
- Last Synced: 2024-11-14T00:20:32.714Z (3 months ago)
- Topics: chatbot, icecast, irc, irc-bot, mpd, mpd-client, radio, sonic-pi
- Language: Python
- Homepage:
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MPD BOT
A radio bot that integrates mpd and even features a live sonic pi repl. This is the bot I use in radio for the irc at irc.dot.org.es.
Blog post about it: https://blog.mattf.tk/series/coding/3.html
## Running sonic pi on a vps
- Launch pulseaudio
`pulseaudio --start`- Launch jack
`jackd -d dummy`- Launch sonic pi
`sonic-pi-tool start-server`- Comfort noise
Genereate wav: `sox -c1 -n result.wav synth 10 sin 25000 vol 1`
Play in loop: `mpv -loop result.wav`- Stream:
`darkice -c .darkice.conf`Config
```
[general]
duration = 0
bufferSecs = 5
reconnect = yes
realtime = yes
rtprio = 3[input]
device = pulse
#paSourceName = 0.monitor
sampleRate = 44100
bitsPerSample = 16
channel = 2[icecast2-0]
bitrateMode = cbr
format = vorbis
bitrate = 128
server = radio.dot.org.es
port = 8000
password = passwordherehahaha
mountPoint = playground.ogg
name = Sonic Pi
description = Sonic Pi REPL
url = https://radio.dot.org.es
genre = radio
public = yes
```Make sure to redirect the "Pulseaudio to jack" source into the "jack to pulseaudio" sink for jack so that the mpv comfort noise is streamed. This is needed because ogg doesn't stream silence.