Skip to content

About

A local-first macOS personal radio player with SwiftUI, Apple Music, VoxCPM2 TTS, and a lightweight DJ sidecar.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

VoxRadio

English · 简体中文

VoxRadio is a personal radio for Mac. Listen to a short opening for the day, pick a record on Apple Music, or chat with the DJ about how you like to listen. Music stays in the player; the DJ replies in writing.

A day at the radio

  • Today's opening. When eligible, it plays automatically at most once a day. It won't take over an existing Apple Music track, even a paused one. You can skip it for today or replay it after listening.
  • Music. Search for a song, artist, or album from the toolbar. Pick a track to play; the floating Mini Radio lets you keep the music in view when the main window is out of the way.
  • Text DJ. Type something like “Something quieter for tomorrow morning” in the bottom bar. Replies stay in the chat drawer; they aren't read aloud. When local memory is enabled, the adjacent memory tab lets you see and manage the listening preferences the DJ has picked up.
  • Coding Companion, if you use it. The Mini Radio can show whether a connected coding session is running or needs attention. Return to the original tool to act; there is no approval queue in the player.

Try it with Mock TTS

This is a source preview, not a prebuilt, signed app with a configured runtime. The app targets macOS 15 or later. To build it, use full Xcode with the macOS 26 SDK or newer. For these steps you'll also need Python 3.12 (the TTS service supports 3.11 and 3.12).

From the repository root, start the mock voice service and leave this terminal open:

scripts/start_demo_tts.sh --python python3.12

In another terminal, from the same directory:

open VoxRadio.xcodeproj

In Xcode choose VoxRadio → My Mac, use the Debug configuration with local signing, and press ⌘R. In the app, open 设置 → 本地服务 (Settings → Local Services) to check TTS. You can also check it directly with curl http://127.0.0.1:8765/health. Stop the mock service with Ctrl-C in its terminal.

Mock TTS returns a short test tone as a WAV, not a spoken introduction. No account, model download, or DJBrain service is needed for this preview. An unavailable DJ or an unauthorized music catalog is expected here; starting the mock does not enable those features.

Connect the real station

Prefer not to start services in separate terminals each day? Once your local dependencies are set up, you can build an app that starts DJBrain and TTS itself.

Feature What you need
Apple Music Use the VoxRadioMusicKit scheme with your own MusicKit-capable app identifier and signing configuration, then authorize music access in the app. Full catalog playback also needs an eligible Apple Music subscription. Music and personal signing credentials aren't bundled.
Spoken openings Stop Mock TTS before running the real TTS launcher on the same port. VoxCPM2 needs local Python dependencies and model weights; first use may download them. Personal recordings are not included. Without a matching clip, the app requests synthesis. If it offers 查看进度 (“Check progress”), that checks the existing job rather than starting another.
Text DJ DJBrain listens locally on port 8787, but real replies come from an online provider. With Python 3.12+, use the DJ launcher: PYTHON=python3.12 scripts/voxradio-dj setup, then scripts/voxradio-dj login for your own Codex OAuth device login, then scripts/voxradio-dj start. Music controls do not depend on a DJ reply.

Memory and privacy. The manual DJBrain launch above leaves memory off unless you enable it. To opt in, use VOXRADIO_MEMORY_ENABLED=1 VOXRADIO_MEMORY_BACKEND=local-v1-only scripts/voxradio-dj start instead. DJBrain stores Memory V1 preferences in SQLite on your Mac; no separate memory server is needed. In the app you can pause or delete individual entries. 本次不影响记忆 (“No memory for this session”) stops this conversation from both using existing memories and writing new ones.

That switch doesn't take the DJ offline: your message and the context needed to answer it go to the configured online provider. Apple Music and weather also use external services; location, calendar and reminder access are subject to macOS permissions.

Check the build

swift test --filter RadioEngineTests
xcodebuild -project VoxRadio.xcodeproj -scheme VoxRadio -configuration Debug -derivedDataPath .build/xcode-derived build

See Architecture for the boundary between the player and its services, Security before sharing diagnostics, and Contributing for development notes. The MIT license covers the project code, not music, voices, or third-party model weights.

About

A local-first macOS personal radio player with SwiftUI, Apple Music, VoxCPM2 TTS, and a lightweight DJ sidecar.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages