Notice: OpenAudio is based on and is a copy of the radiantfalcon/OpenTunes codebase, updated and maintained for use as OpenAudio.
Open-Source Music Aggregator for Spotify, YouTube, and YouTube Music. Downloads songs, albums, and playlists with embedded cover art and lyrics. Available for Linux, Windows, MacOS and Android (Termux)
Documentation
- Python API
- Termux guide
- Architecture
- Components
- Repository script usage
- Contributing
- Security policy
Installation
OpenAudio requires Python 3.10 or newer and FFmpeg.
Install uv if it is not already available, then clone and sync the project:
git clone https://github.com/alphap365/openaudio.git
cd OpenAudio
uv sync
uv run openaudio
uv sync creates and manages the project environment. Prefix project commands with uv run; this works on Linux, macOS, and PowerShell.
Android (Termux)
See the Termux guide for installation, storage permissions, and mobile mode.
Repository scripts
From a checkout, use bash scripts/setup.sh followed by bash scripts/run.sh --help on Linux, macOS, or Termux. On Windows, use .\scripts\setup.bat followed by .\scripts\openaudio.bat --help.
See the script usage guide for the launcher and installer details.
How to Use
1. Interactive Mode
Run without arguments to open the interactive dashboard:
uv run openaudio
Key shortcuts inside the app:
1: Download tab2: Live Search & Discover tab (searches live as you type)3: Settings tab (formats, bitrates, lyrics, output path)Ctrl + C: Quit
2. Command Line Examples
Download a Spotify playlist:
uv run openaudio "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"
Download a Spotify album in lossless FLAC:
uv run openaudio "https://open.spotify.com/album/4m2880jivSbbyEGAKfITCa" -f flac
Download a YouTube / YouTube Music playlist in Opus:
uv run openaudio "https://music.youtube.com/playlist?list=PL..." -f opus -q 160k
Search and download a song directly by name:
uv run openaudio --search "Queen Bohemian Rhapsody"
Download to a custom folder:
uv run openaudio "https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT" -o ~/Music/Rock
Batch download from a text file:
uv run openaudio --batch urls.txt
(urls.txt can have one Spotify link, YouTube link, or song query per line)
Save synced lyrics as a separate .lrc file:
uv run openaudio "https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT" --lrc
Run in simple mobile mode (recommended on narrow terminals / Termux):
uv run openaudio --mobile
Check system environment and FFmpeg installation:
uv run openaudio --check
CLI Reference
| Flag | Short | Description | Default |
|---|---|---|---|
url_or_query |
Spotify/YouTube URL or song name | Launches interactive app | |
--format |
-f |
Audio format: mp3, flac, opus, wav, m4a |
mp3 |
--quality |
-q |
Audio bitrate: 320k, 256k, 192k, 128k, best |
320k |
--output |
-o |
Destination folder for downloads | ~/Music |
--lrc |
Export synced .lrc lyrics file next to audio |
false |
|
--no-lyrics |
Skip fetching and embedding lyrics | false |
|
--batch |
Path to text file with links/queries | none |
|
--search |
Search query to download best match | none |
|
--mobile |
Simple prompt menu for mobile Termux | Auto-detected | |
--overwrite |
Force overwrite existing files | false |
|
--interactive |
-i |
Force full-screen TUI | false |
--check |
Check system dependencies and FFmpeg | ||
--version |
-v |
Print version |
Audio Formats & Bitrates
- MP3: Constant bitrate (
320k,256k,192k,128k) with universal ID3v2.3 tags and embedded artwork. - FLAC: Lossless compression with Vorbis metadata and embedded artwork.
- OPUS: High-efficiency VBR audio (
160k,128k,96k) with Vorbis comments. - WAV: Uncompressed 16-bit PCM audio.
- M4A / AAC: AAC encoding (
256k,320k) with MP4 metadata.
Configuration
Settings persist across runs and are saved at:
- Linux / Android:
~/.config/openaudio/config.json - Windows:
%USERPROFILE%\.config\openaudio\config.json
Example config.json:
{
"format": "mp3",
"bitrate": "320k",
"output_dir": "~/Music",
"fetch_lyrics": true,
"save_lrc": false,
"embed_cover": true,
"overwrite": false,
"max_retries": 3,
"rate_limit_delay": 1.2
}
You can also change these settings interactively through the Settings tab ([3]) in the desktop app or the Settings menu in mobile mode.
Requirements
- Python: 3.13 or newer
- FFmpeg: Required for audio conversion and metadata embedding
Installing FFmpeg:
- Ubuntu / Debian:
sudo apt install ffmpeg - Arch Linux:
sudo pacman -S ffmpeg - macOS:
brew install ffmpeg - Android (Termux):
pkg install ffmpeg - Windows:
winget install Gyan.FFmpeg
Development
Install the development dependencies with uv:
uv sync --group dev
Run the test suite with:
uv run pytest
License
MIT
Contributors
Contributors are updated automatically:
Metadata
Release files for pyopenaudio 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyopenaudio-1.0.0.tar.gz | 37.2 kB | With provenance | Details for pyopenaudio-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyopenaudio-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pyopenaudio-1.0.0-py3-none-any.whl |
Total release size: 78.2 kB
Release files / pyopenaudio-1.0.0.tar.gz
| Download URL | pyopenaudio-1.0.0.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98ccc5e5abf33b38879e29039edbedf68a54deac3246b68f723119b4c9d367fd
|
|
BLAKE2b-256 checksum How to use checksums |
4cc8e2e17e1f2aa89a6f58c342f91d64cbfe867fa82c8376094c036b4f6591b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / pyopenaudio-1.0.0-py3-none-any.whl
| Download URL | pyopenaudio-1.0.0-py3-none-any.whl |
|---|---|
| Size | 41.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9745f2f22f932635b36bafb59d4cc637eecdb4f64e965330757897dc8fe091c6
|
|
BLAKE2b-256 checksum How to use checksums |
196cb33c9f399406aafa3a81bc02e9cd438cd1ffae0024220e1cc9be604b0400
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for pyopenaudio 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pyopenaudio-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.