Metadata-Version: 2.4
Name: radiobooth
Version: 0.5.12
Summary: Radio Booth's home app: turns your own music library into radio shows, with an AI DJ between the songs.
Keywords: radio,plex,music,dj,playlist
License-Expression: GPL-3.0-or-later
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Sound/Audio :: Players
Requires-Dist: av>=19.0.2
Requires-Dist: mutagen>=1.48.1
Requires-Python: >=3.12
Project-URL: Homepage, https://radiobooth.fm
Project-URL: Source, https://github.com/radiobooth/engineer
Project-URL: Changelog, https://github.com/radiobooth/engineer/blob/main/CHANGELOG.md
Project-URL: Documentation, https://github.com/radiobooth/engineer/blob/main/docs/getting-started.md
Description-Content-Type: text/markdown

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/radiobooth/engineer/main/docs/images/logo-horizontal-on-dark.svg">
  <img alt="Radio Booth" src="https://raw.githubusercontent.com/radiobooth/engineer/main/docs/images/logo-horizontal-on-light.svg" width="280">
</picture>

# Radio Booth Engineer

**Your music, on the air.**

Radio Booth makes personal radio shows from the music you own, with a DJ talking between the songs. You ask
for a show on your phone ("Sunday morning coffee, an hour"), and a few minutes later it's a playlist in Plex,
or in a folder your music player opens.

This is the part that runs at home, next to your music. It reads your library's details when you ask for a
show and puts the finished show where you listen. Your music files stay on your computer, and nothing on the
internet can connect in to it.

Radio Booth is in early testing: you need a Radio Booth account to use it.

## Install

Pick one:

| You have | Install |
| --- | --- |
| A **Windows PC** or a **Mac** | [The app](#windows-or-mac-the-app) (recommended) |
| **Linux**, or you'd like a command | [`uv tool install radiobooth`](#linux-or-the-command-line) |
| A **NAS** or server that runs **Docker** | [`ghcr.io/radiobooth/engineer`](#docker-for-example-on-a-nas) |

Run it on the computer with your music, or on any computer at home that can reach it (a NAS, a media PC).
It needs to be on and awake when you ask for a show.

### Windows or Mac: the app

1. Download it from the [latest release](https://github.com/radiobooth/engineer/releases/latest):
   - **Windows:** `RadioBooth-Windows.exe`
   - **Mac:** `RadioBooth-macOS.zip` (macOS 11 or later, Apple silicon or Intel)
2. Open it. Because the app is new, Windows and macOS warn about it the first time:
   - **Windows:** on "Windows protected your PC", click **More info**, then **Run anyway**.
   - **Mac:** click **Done**, then **System Settings > Privacy & Security > Open Anyway**. The app moves
     itself into Applications.
3. Radio Booth's page opens in your browser. Continue with [First run](#first-run).

The app runs in the background with no window, starts when you sign in, and updates itself. The
[getting started guide](https://github.com/radiobooth/engineer/blob/main/docs/getting-started.md) walks through
every step, browser warnings included.

### Linux, or the command line

Install [uv](https://docs.astral.sh/uv/getting-started/installation/), then:

```sh
uv tool install radiobooth
booth setup
```

`booth setup` is the guided setup in the terminal: it asks whether your music is in Plex (and prints a
sign-in link to open in any browser) or in a folder, asks a few questions, and pairs with your Radio Booth
account. If you'd rather use the browser, `booth app` opens Radio Booth's page instead. Without a browser,
the command does everything the page does: see
[Without a browser](https://github.com/radiobooth/engineer/blob/main/docs/other-setups.md#without-a-browser).
Update later with `uv tool upgrade radiobooth`.

On Linux, setup can install a systemd user service, `radiobooth`, so Radio Booth starts by itself. See
[Linux](https://github.com/radiobooth/engineer/blob/main/docs/other-setups.md#linux) for running it on a headless
machine and for Plex on the same machine.

### Docker, for example on a NAS

The image is `ghcr.io/radiobooth/engineer`, for Intel and ARM. First make a music library in Plex named
`Radio Booth` for the DJ's breaks
([how](https://github.com/radiobooth/engineer/blob/main/docs/getting-started.md#with-plex)), then give the
container its folder as `/breaks`:

```sh
# Once: choose Plex, sign in and pair (when asked where the folder is, type /breaks)
docker run -it --rm -v booth-config:/config -v "/volume1/audio/Radio Booth:/breaks" \
  ghcr.io/radiobooth/engineer setup

# Then for good
docker run -d --name booth --restart unless-stopped -e TZ=America/Chicago \
  -v booth-config:/config -v "/volume1/audio/Radio Booth:/breaks" \
  ghcr.io/radiobooth/engineer
```

Use your own folder and time zone. Music in a folder instead, updating, and what each step does are in
[Docker](https://github.com/radiobooth/engineer/blob/main/docs/other-setups.md#docker-for-example-on-a-nas).
Everything else runs in the container with `docker exec`, for example `docker exec booth booth status`.

## First run

Radio Booth's page (or `booth setup`) asks for two things:

1. **Your music.** Choose **It's in Plex** and sign in to Plex (Radio Booth never sees your password), or
   choose **It's in a folder** and name your music folder and a folder for your shows. With Plex, Radio Booth
   adds a small `Radio Booth` library for the DJ's breaks, so they never mix into your music.
2. **Your Radio Booth account.** On your phone's Radio Booth page, tap **Get a pairing code**, then type the
   code on the computer.

When the light at the top of the page says **On air**, you're set. Ask for a show on your phone: it arrives
under **Playlists** in Plex, or as a playlist in your shows folder.

Music on a NAS or another computer? Read
[Music on another computer](https://github.com/radiobooth/engineer/blob/main/docs/getting-started.md#music-on-another-computer)
first.

### Make shows with Claude, ChatGPT or Gemini

Add Radio Booth to your assistant as a custom connector at `https://my.radiobooth.fm/mcp`. It can then make
shows in a chat: it picks the songs from your library and writes the DJ's breaks, and Radio Booth voices and
delivers them as usual. See
[Make shows with your own AI assistant](https://github.com/radiobooth/engineer/blob/main/docs/getting-started.md#make-shows-with-your-own-ai-assistant).

## What leaves your computer

When you ask for a show, and only then, Radio Booth sends your library's details (titles, artists, albums,
years, genres and the like) so the DJ can pick songs and talk about them. Your music files stay home, with
one exception you ask for: downloading a show on your phone sends that one show, mixed into one MP3, and
Radio Booth deletes it soon after.

It only ever connects out: to Plex, to Radio Booth, and to GitHub for updates. Radio Booth's page is served
only to the computer it runs on (127.0.0.1, behind a random key), so nothing on your network can reach it.
Exactly what is sent, and when, is in [`protocol/`](https://github.com/radiobooth/engineer/tree/main/protocol/).

## More

- [Getting started](https://github.com/radiobooth/engineer/blob/main/docs/getting-started.md): the full guide,
  troubleshooting and updating.
- [Other setups](https://github.com/radiobooth/engineer/blob/main/docs/other-setups.md): Linux, Docker, the
  command on a Mac, and what isn't supported yet.
- [Radio Booth Discord](https://discord.gg/aN2bNKB74y): questions and feedback.

### Music in a folder

Radio Booth reads MP3, FLAC, Ogg, Opus, M4A, WMA, WAV and AIFF files. Each show arrives in your shows folder
as an `.m3u8` playlist, with its DJ breaks in `breaks/` beside it, so any player that opens playlists plays it
(foobar2000, MusicBee, VLC, Winamp, Music on a Mac). Radio Booth only reads your music: it never changes,
moves, renames or uploads it.

It reads your tags at setup (the first read of a big collection takes a while), then only files that are new
or changed, and keeps what it read next to its config file (`folders/`). Radio Booth's page shows what it found:
how many tracks it can use, which files it left out and why. `booth scan ~/Music` prints the same report;
add `--catalog catalog.json` to see exactly what would be sent.

### Taking a show with you

Under each show on Radio Booth's page, with Plex or a folder:

- **Remove** deletes the show's playlist and breaks.
- **Copy to a folder** copies the show's songs and breaks as numbered files in playing order, plus a playlist,
  to put on a phone, a USB stick or a car's drive.
- **Make one file** mixes the show into one MP3 the way it sounds on the radio (levels evened, songs
  crossfaded, the DJ talking over the ends and starts of songs), with a chapter for each song and break and a
  `.cue` sheet beside it for players that don't read MP3 chapters. It's made on your computer.

Both go into `Copies/` in your shows folder (with Plex, the `Radio Booth shows` folder in your home folder,
or `BOOTH_SHOWS_FOLDER`). In a terminal, `booth shows` lists the latest shows, and `booth shows remove`,
`booth shows copy` and `booth shows file` do the same.

### Sharing with someone at home

Someone with their own Radio Booth account can use your Radio Booth: under **Settings**, click **Add another
person** and type the pairing code from their phone. Their shows come from the same music, with their name at
the start of each playlist's title, and count against their own account. With Plex, pick their Plex user and
Radio Booth shares their playlists with them. In a terminal: `booth people add`, `booth people plex` and
`booth people remove`.

### What Radio Booth remembers

So new shows don't repeat what you've just heard, and so the DJ can say what's true ("that's been in two of
your shows"), Radio Booth keeps these next to its config file (normally `~/.config/radiobooth/`):

- `history.json`, and `history-<id>.json` for each other person sharing it: which tracks were in delivered
  shows.
- `library-seen.json`: when tracks first turned up in your library, as Radio Booth saw it (music already there
  when you started never gets a date).

Neither leaves your machine except inside a show's catalog. Delete a file to start it over.

### Settings by hand

The page and `booth setup` save settings in the config file (`BOOTH_CONFIG`, normally
`~/.config/radiobooth/config.json`). Every setting can also come from the environment, which wins over the
config file. With Plex you need a Plex music library of its own for the DJ's breaks, and that library's folder
reachable from where Radio Booth runs:

```sh
export PLEX_URL=http://your-server:32400 PLEX_TOKEN=...      # your Plex server
export BOOTH_MUSIC_LIBRARY="Music"                             # if Plex has more than one music library
export BOOTH_BREAKS_LIBRARY="Radio Booth"                      # the Plex library for breaks
export BOOTH_BREAKS_DIR=/path/to/that/library/folder           # the same folder, as seen from here

booth pair    # once: asks for the code from the Radio Booth page on your phone
booth run     # stays connected; leave it running
```

For a music folder instead of Plex, set `BOOTH_SOURCE=folder`, `BOOTH_MUSIC_FOLDER` and `BOOTH_SHOWS_FOLDER`.

Other commands: `booth index` writes your Plex catalog to a file so you can see exactly what would be sent,
`booth deliver` puts a show folder into Plex by hand, and `booth --help` lists the rest.

## Development

```sh
uv sync
uv run booth --help
uv run pytest
uv run ruff check && uv run ruff format --check
```

## License

Copyright © 2026 Thomas Bohmbach, Jr.

Booth Engineer is licensed under the GNU General Public License, version 3 or later ([LICENSE](https://github.com/radiobooth/engineer/blob/main/LICENSE)).
Code published here up to commit 2349c50 (the last before this license change), including every release up
to v0.2.6, was released under Apache-2.0 and stays available under it for anyone who has it. The packaged
apps also contain Python, the PyInstaller bootloader and mutagen, whose licenses are in `NOTICES-*.txt` next to the
downloads and inside the apps (`booth license` shows them).

The protocol schemas and API docs in [`protocol/`](https://github.com/radiobooth/engineer/tree/main/protocol/) are Apache-2.0 ([protocol/LICENSE](https://github.com/radiobooth/engineer/blob/main/protocol/LICENSE)),
so anyone can build a compatible client or server under any license.

This project is open source but not open to contributions; see [CONTRIBUTING.md](https://github.com/radiobooth/engineer/blob/main/CONTRIBUTING.md).
