Skip to content
프로젝트

소개

Fast audio player, recorder, converter for Linux, macOS, Windows, and Android

디자인 및 미디어

이 수치를 측정하는 방법

What you can do

  • Play audio: .mp3, .ogg(Vorbis/Opus), .mp4/.mov(AAC/ALAC/MP3), .mkv/.webm(AAC/ALAC/MP3/Vorbis/Opus/PCM), .caf(AAC/ALAC/PCM), .avi(AAC/MP3/PCM), .ts(AAC/MP3), .aac, .mpc; .flac, .ape, .wv, .wav.
  • Record audio: .m4a(AAC), .aac(AAC-LC), .mp3, .ogg(Vorbis), .opus; .flac, .wav
  • Broadcast audio over HTTP
  • List/search file metadata; edit file tags, write ReplayGain tags (.mp3, .ogg/.opus, .flac)

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

phiola

phiola is a fast audio player, recorder, converter, and streaming server for Linux, macOS, Windows, and Android. It can play audio files from your device or a remote server, record audio from your microphone or an internet radio stream, and convert audio into various formats. Its low CPU consumption helps extend the battery life of laptops and phones. You can control phiola via CLI, TUI, GUI, HTTP, IPC socket (UNIX socket / named pipe), or its API (C / Java). Its fast startup time makes it ideal for custom scripts used on a "play-and-exit" or "record-and-exit" basis.

It is completely portable (all codecs are bundled), meaning you can run it directly from a read-only flash drive. phiola is free and open-source; use it as a standalone application or integrate it as a library into your own software.

Screenshots of phiola GUI on Android, KDE/Linux and Windows 10: phiola GUI on Android, KDE/Linux and Windows 10

Contents:

Features

  • Play audio: .mp3, .ogg(Vorbis/Opus), .mp4/.mov(AAC/ALAC/MP3), .mkv/.webm(AAC/ALAC/MP3/Vorbis/Opus/PCM), .caf(AAC/ALAC/PCM), .avi(AAC/MP3/PCM), .ts(AAC/MP3), .aac, .mpc; .flac, .ape, .wv, .wav.
  • Record audio: .m4a(AAC), .aac(AAC-LC), .mp3, .ogg(Vorbis), .opus; .flac, .wav
  • Convert audio
  • Broadcast audio over HTTP
  • List/search file metadata; edit file tags, write ReplayGain tags (.mp3, .ogg/.opus, .flac)
  • List available audio devices
  • Input: file, directory, ICY/HLS/HTTP/HTTPS URL, console (stdin), playlists: .m3u, .pls, .cue
  • Audio filters:
    • DynamicAudioNormalizer, auto loudness and ReplayGain normalizer
    • multi-band equalizer
    • noise gate
  • Remote control over HTTP: start phiola on PC, then control playback (play/pause, next/prev, volume, etc.) remotely from a phone or web browser on your local network
  • Remote control (pipe): ability to start a background process and stop it from another terminal
  • Command Line Interface for Desktop OS
  • Terminal/Console UI for interaction at runtime
  • GUI for Windows, Linux, Android: manage your playlists and audio files
  • Instant startup time: very short initial delay until the audio starts playing (e.g. Linux/PulseAudio: TUI: ~25ms, GUI: ~50ms)
  • Fast (small footprint, low overhead): keeps your CPU, memory & disk I/O at absolute minimum; spends 99% of its time inside codec algorithms

Bonus: Convenient API with plugin support which allows using all the above features from any C/C++/Java app!

Features and notes by platform:

Feature Linux macOS Windows Android
Dark themed GUI ✅ (GTK default) ❌ ✅ ✅
File formats ✅ all supported ✅ ✅ except .mpc, .ape, .wv
Record what you hear ✅ (PulseAudio) ❌ ✅ ❌
Audio Streaming Server ✅ (AAC,Opus) ✅ (AAC,Opus) ✅ (AAC,Opus) ❌
Requirements glibc-2.41 macOS 14 Windows 7 Android 8 (ARM64)
HW Requirements AMD64, ARM64 ARM64 AMD64 ARM64

Important: the ALAC decoder is disabled by default because of potential security issues (see https://github.com/macosforge/alac). You can still enable it on Android via Settings -> Enable Deprecated Modules (ALAC); on desktop — by adding DeprecatedMods to phiola.conf.

Install

Download the latest package for your OS and CPU from phiola Releases

Note: phiola is no longer built for Android 6 (ARM) or Windows XP (x86). If you need one, look for an older release.

Linux

Debian/Ubuntu:

sudo dpkg -i phiola_....deb

Fedora/RHEL:

sudo dnf install phiola-....rpm

Or if you want the portable version (tar.zst):

VER=...
mkdir -p ~/bin
curl -L "https://github.com/stsaz/phiola/releases/download/v$VER/phiola-$VER-linux-amd64.tar.zst" | tar -x --zstd -f - -C ~/bin
ln -s ~/bin/phiola-2/phiola ~/bin/phiola
cp ~/bin/phiola-2/mod/gui/phiola.desktop ~/.local/share/applications

If you choose another directory rather than ~/bin, then you should also edit Icon= value in ~/.local/share/applications/phiola.desktop.

macOS

VER=...
mkdir -p ~/bin
curl -L "https://github.com/stsaz/phiola/releases/download/v$VER/phiola-$VER-macos-arm64.tar.gz" | tar -x -f - -C ~/bin
ln -s ~/bin/phiola-2/phiola ~/bin/phiola

Windows

The easiest way to install phiola on Windows is to execute phiola-...-windows-x64-setup.exe and specify the installation directory. It is also the only way to register file associations (so you can open or enqueue audio files from Windows Explorer).

Another option is to manually unpack phiola-...-windows-x64.zip and add the phiola directory to your PATH environment.

Android

Install from IzzyOnDroid:

Or install .apk manually:

  • To be able to install .apk you need to enable "Allow installation from unknown sources" option in your phone's settings (you can disable it again after installation)
  • Tap on .apk file to install it on your phone

Or you can install an .apk file from the PC connected to your phone with adb install.

How to Use CLI

Important: enclose file names containing spaces or special characters in quotes, e.g.: phiola play "My Music"; phiola play "My Recordings" -include "*.wav".

Play:

# Play files, directories and URLs
phiola play file.mp3 *.flac "My Music" http://server/music.m3u
# or just
phiola file.mp3 *.flac "My Music" http://server/music.m3u

# Play all files within a directory in random order and auto-skip the first 20 seconds from each track
phiola "My Music" -shuffle -seek 0:20

# Play on Linux directly via ALSA (and not PulseAudio)
phiola file.mp3 -audio alsa

# Play audio with 3-band Equalizer:
#  (low-shelf +3 dB; 600Hz band, 1.5 Q-factor width, -6 dB gain; high-shelf +3 dB)
phiola file.mp3 -equalizer "t bass g 3, f 600 w 1.5q g -6, t treble g 3"

# Play audio with ncurses TUI interface
phiola -tui2 "My Music"

While audio is playing, you can control phiola via the keyboard. The most commonly used commands are:

Key Action
Space Play/Pause
Right Arrow Seek forward
n Play next track
p Play previous track
q Quit
h Show all supported commands

Record:

# Record from the default audio device until stopped
phiola record -o audio.flac

# Record for 1 minute, then stop automatically
phiola record -o audio.flac -until 1:0

# Record and set meta data
phiola record -meta "artist=Great Artist" -o audio.flac

# Record to the automatically named output file
phiola record -o @[email protected]

# Record with a specific audio format
phiola record -aformat int16 -rate 48000 -channels 2 -o audio.flac

# Record what is currently playing on your system ("what you hear")
# * WASAPI:
phiola record -loopback -o audio.flac
# * PulseAudio:
phiola record -dev $(phiola dev list -f Monitor -n) -o audio.flac

# Start recording in background, controllable from another terminal:
#   Step 1: start background recording with remote control enabled
phiola -Background record -o audio.flac -remote
#   Step 2: stop it from another terminal
phiola remote stop

# Record and split the output files by 1 hour
phiola record -split 1:00:00 -o @[email protected]

# Record and pass the audio through Dynamic Audio Normalizer filter
phiola record -danorm 'frame 500 size 15' -o audio.flac

# Record and pass the audio to another program
phiola record -o @stdout.wav | your_program

Note: the output audio format is chosen automatically by the file extension you specify.

Note: it's not required to always type the whole name of a command or an option - you may type just its prefix (enough for phiola to recognize it), e.g. instead of phiola record -aformat int16 you may type phiola rec -af int16.

For more advanced recording workflows (background recording, remote stop), see the Recording Tutorial.

Convert:

# Convert
phiola convert audio.flac -o audio.m4a

# Convert with parameters
phiola convert file.mp3 -aformat int16 -o file.wav
phiola convert file.wav -vorbis_q 7 -o file.ogg
phiola convert file.wav -rate 48000 -aac_q 5 -o file.m4a

# Convert multiple files from .wav to .flac
phiola convert *.wav -o .flac

# Convert all .wav files inside a directory,
#  preserving the original file names and file modification time
phiola convert "My Recordings" -include "*.wav" -o @filepath/@filename.flac -preserve_date

# Copy (without re-encoding) MP3 audio region from 1:00 to 2:00 to another file
phiola convert -copy -seek 1:0 -until 2:0 input.mp3 -o output.mp3

# Extract (100% accurately) several tracks from a .cue file
phiola convert input.cue -tracks 3,5-7,13 -o "@tracknumber. @artist - @title.flac"

# Increase .wav file's volume by 6 dB
phiola convert file.wav -gain 6 -o file-louder.wav

Note: the output audio format is chosen automatically by the file extension you specify.

Show file info:

# Show meta info on all .wav files inside a directory
phiola info "My Recordings" -include "*.wav"

# Show meta info including all tags
phiola info -tags file.mp3

# Search for the .mp3 files containing a specific tag
phiola info -tags -inc "*.mp3" . | grep -B10 "Purple Haze"

# Analyze and show PCM info
phiola info -peaks file.mp3

# Analyze audio loudness
phiola info -loudness file.mp3

Edit file tags:

# Replace/add MP3 tags in-place
# WARNING: please test this first before using it on real files (or at least make backups)!
phiola tag -m "artist=Great Artist" -m "title=Cool Song" file.mp3

# Remove all existing tags; add new tags
phiola tag -clear -m "artist=Great Artist" -m "title=Cool Song" file.mp3

# Write ReplayGain tag for all .mp3 & .flac files in the directory
phiola tag -rg track_gain "My Music" -include "*.mp3" -include "*.flac"

Create/edit playlist files:

# Create a playlist from all .mp3 files in the directory
phiola list create "My Music" -include "*.mp3" -o my-music.m3u

# Sort entries (by file name) in all playlists in the current directory
phiola list sort *.m3u

# Automatically correct the file paths inside playlist (e.g. after some files were moved)
phiola list heal Music/playlist.m3u

Other use-cases:

# List all available audio playback and recording devices
phiola device list

# Auto-rename all .opus files according to a pattern
phiola rename *.opus -o "@tracknumber. @artist - @title"

Currently supported commands:

Command Description
convert Convert audio
device List audio devices
gui Start graphical interface
info Analyze audio files
list Process playlist files
play Play audio
record Record audio
remote Send remote command
rename Auto-rename files
server Start audio streaming server
tag Edit file tags
tui Start ncurses TUI

For the details on each command you can click on the links above or execute phiola COMMAND -h on your PC.

See also: phiola Wiki

How to Use TUI

phiola TUI

Start phiola in interactive Terminal/Console UI mode:

phiola tui [INPUT...]

Where INPUT can be file names, directories, or URLs.

To add more files to the current playlist you can:

  • Press Tab to switch view to file explorer
  • Navigate to a target directory
  • Press A to add the selected directory to the current playlist

Controls

Key Action
Space Play/Pause
P / N Previous/Next track
Left/Right Seek backward/forward
Ctrl+Up/Down Volume down/up
. Stop
Tab Switch between Explorer and Playlist
Q or F10 Quit

Press F1 to see the full command list.

How to Use GUI

Start phiola GUI:

  • On Windows: via phiola-gui.exe

  • On Linux:

    phiola gui
    

Then add some files to your playlist via drag-n-drop from your File Manager, or via List->Add menu command.

Customize

You can customize the appearance and text:

  • Appearance: Modify the GUI source file phiola-2/mod/gui/ui.conf.

  • Text: Edit language files, e.g., phiola-2/mod/gui/lang_en.conf.

  • Color Themes (Windows only): Edit theme files, e.g., phiola-2/mod/gui/theme-purple.conf:

    background 222222
    text       cc99ff
    text-alt   cc99ff
    

    background is the background color; text is the main text color; text-alt is the text color for main menu bar, tabs, listview header, and status bar.

Restart phiola GUI after making any changes to these files.

100% Portable Mode

By default, phiola GUI saves and restores its state (including your playlists) on each restart at these locations:

  • Windows: %APPDATA%\phiola
  • Linux: $HOME/.config/phiola

To run phiola entirely self-contained (e.g., from USB drives), enable portable mode by creating an empty file phiola-2/mod/gui/user.conf, e.g.:

  • Windows (Command Prompt):
    > phiola-2\mod\gui\user.conf
    
  • UNIX:
    > phiola-2/mod/gui/user.conf
    

As long as this file is present, phiola GUI will store its state within the application directory, not the system user directory.

How to Use on Android

Starting for the first time:

  • Run phiola app
  • Tap on Explorer tab
  • Android will ask you to grant/deny permissions to phiola. Allow phiola to read your storage files.
  • Tap on the music file you want to listen to
  • Or long-press on the directory with your music, it will be added to the playlist; tap Play
  • Tap on Playlist tab to switch the view to your playlist

Starting/Stopping Recording via Intent Actions

phiola can be controlled externally using Android intent actions — this is useful for automation, accessibility tools, or mapping hardware buttons:

  • Start Recording: android.provider.MediaStore.RECORD_SOUND
  • Stop Recording: com.github.stsaz.phiola.RECORD_STOP

Package: com.github.stsaz.phiola.

CLI examples:

adb shell am start -a android.provider.MediaStore.RECORD_SOUND -n com.github.stsaz.phiola/.MainActivity
adb shell am start -a com.github.stsaz.phiola.RECORD_STOP -n com.github.stsaz.phiola/.MainActivity

How to Record from Radio

CLI

# Play an internet radio and save the tracks as local files.
# These files will be named automatically using the metadata sent by the server.
phiola http://server/stream -tee "@artist - @title.mp3"

# Play an internet radio with on-demand recording
phiola http://server/stream -recordable
# Then at any time press Shift+R to start/stop recording

# Play MP3 audio via HTTP and convert to a local 64-kbit/sec AAC file
phiola http://server/music.mp3 -dup @stdout.wav | phiola convert @stdin -aac_q 64 -o output.m4a

Note: The phiola CLI can either save the original stream (AAC or MP3) or convert to another supported format.

Desktop GUI

By default, the Start Recording command starts recording from the microphone. Here's how you can reconfigure phiola for recording audio from an internet radio:

  1. Go to List -> Add... and paste the URL; press Add.
  2. Double-click on the URL in the playlist to start playback.
  3. Go to Record -> Record..., then check the Record from Radio box.
  4. Click the Start Recording button.

Note: phiola supports recording from AAC or MP3 radio streams.

Android

By default, the Record button starts recording from the microphone. Here's how you can reconfigure phiola for recording audio from an internet radio:

  1. Go to Settings, then under the First Control Button setting, choose Record From Radio; return to the main screen.
  2. Go to List -> List: Add... and paste the URL; tap Add.
  3. Tap on the URL in the playlist to start playback.
  4. Tap the Record button (bottom-left button) to start recording; tap again to stop recording. Your recorded files are stored inside the Recordings directory.

Note: phiola supports recording from AAC or MP3 radio streams.

How to Stream Audio

phiola can act as an audio streaming server — just point it at a directory containing your audio files:

# Start an HTTP audio streaming server (Opus, 128kbps)
phiola server "My Music" -inc "*.flac" -shuffle -opus_q 128

# Start an HTTPS audio streaming server on port 443
phiola server "My Music" -inc "*.flac" -shuffle -ssl your/cert.pem -port 443

TCP port 21014 is used by default. To check if the server works, run phiola http://localhost:21014/ — it will play the stream. For testing, use -ssl "" to enable TLS with phiola's built-in self-signed certificate.

Note: phiola supports streaming in AAC or Opus.

How to Use HTTP Remote Control

phiola can accept remote control commands over HTTP. This is useful when you want to start playback on your PC and then control it from another device on the same network (e.g., a phone) without returning to the PC. No app installation needed — it works with a web browser.

Step 1. Start playback with the HTTP remote control interface. phiola starts an HTTP server on port 21014 by default.

phiola -remote_proto http -ssl your/cert.pem -remote_pass mypassword "My Music"

For testing, use -ssl "" to enable TLS with phiola's built-in self-signed certificate.

Step 2. Open https://<your-pc-ip>:21014/ in a browser on your phone, where <your-pc-ip> is your PC's address on the local network (you'll be asked to enter the password you previously set with -remote_pass). Here's what this web interface provides:

  • Current track info (artist, title) and playback position
  • Play / Pause, Stop, Previous / Next
  • Seek bar and Volume control

Done — your phone is now a remote control for phiola.

HTTP API

You can issue commands and read status from your own app or a terminal:

# Log in
curl -c cookies.txt -X POST https://<host>:21014/login -d '{"pass":"mypassword"}'

# Get info for the currently playing track
curl -b cookies.txt https://<host>:21014/play/status

# Play next track
curl -b cookies.txt -X POST https://<host>:21014/play/next

Endpoints:

HTTP Method and Path Meaning
POST /login Authenticate with {"pass": "..."}
GET /play/status Get current status
POST /play/play Play or resume after pause
POST /play/pause Pause
POST /play/stop Stop
POST /play/next Next track
POST /play/prev Previous track
POST /play/seek Seek to position in percents (e.g., {"pos_pct": 50})
POST /play/volume Set volume (e.g., {"vol_pct": 50})

How to Use API

The best example of how to use the phiola software interface is to see the source code of phiola executor in src/exe, e.g. src/exe/play.h contains the code that adds input files into a playlist and starts the playback.

  • src/phiola.h describes all interfaces implemented either by phiola Core or dynamic modules
  • android/.../Phiola.java is a Java interface
  • src/track.h contains internal declarations for a phiola track, and you'll need it only if you want to write your own filter

Here's how phiola works:

  • When the user launches the phiola app, the top-level module, the Executor, begins running.
  • The Executor loads the Core module, which provides access to all of phiola's functions.
  • In graphical mode, the Executor waits for and analyzes user commands to decide the next action.
  • For audio playback, the Executor prepares a queue of tracks and initiates playback.
  • A Track represents a single job (e.g., a single file being played) and consists of several Filters linked together to form a processing pipeline. While a track is running, the Core calls these Filters in sequence until the entire pipeline is complete. Multiple tracks can run in parallel.
  • A Filter is a piece of code located within a Module that performs a single, specific task on a Track.
  • A Module is a shared library that may contain one or more Filters. It provides access for those Filters to the Executor, Core, or other Modules. All necessary Modules are loaded on-demand while Tracks are running.
  • Before a Track begins, it is assigned to a Worker — a system thread that executes the Filter code.
  • When a Track starts, stops, or is updated, the Executor's internal Filters are called to relay status updates to the user interface.

Configuration

Global settings can be specified in phiola-2/phiola.conf file. See the contents of phiola-2/phiola-example.conf for more info.

Available options:

  • AllowHibernate — don't prevent the system from hibernating while playing or recording.
  • Codepage — code page for non-Unicode text (win1251, win1252, win866).
  • DeprecatedMods — enable the deprecated ALAC decoder (disabled by default due to unpatched security issues in the upstream library).

External Libraries

phiola uses modified versions of these third party libraries: libALAC, libfdk-aac, libFLAC, libebur128, libMAC, libmpg123, libmp3lame, libmpc, libopus, libvorbis, libwavpack, libsox, libsoxr, libzstd, libDynamicAudioNormalizer. And these unmodified libraries: openssl. Many thanks to their creators for the great work!!! Please consider their licenses before commercial use. See contents of alib3/ for more info.

Additionally:

  • ffbase library and ffsys interface make it easy to write high level cross-platform code in C language
  • avpack library provides multimedia file read/write capabilities
  • ffaudio interface provides cross-platform audio I/O capabilities
  • ffgui - cross-platform GUI
  • winapi-dark-theme - dark theme for Windows GUI
  • netmill provides network capabilities

Build

Build Instructions

Bug report

If you encounter a bug, please report it via phiola GitHub Issues. When filing a bug report, please provide as much information as possible to help developers understand and fix the problem.

When using CLI, additional debug messages may help sometimes - just add -D after phiola when executing a command, e.g.:

phiola -D play file.mp3

With phiola on Android, there's a button in "About" screen that will save system logs to a file. It will contain the necessary information about the last time phiola crashed, for example.

Why use phiola

phiola is not a competitor to large-scale commercial projects; instead, its focus is security and speed. Its main advantages are:

  • Open-Source. phiola and all its dependencies are completely open-source. You aren't running private, potentially insecure code on your device — this is critical for software that runs for hours every day.

  • High Flexibility. phiola is highly adaptable and can easily accommodate a wide range of functions. It is also designed to be embedded as a module in other projects. For example, if you were building a smart coffee machine that needed to play music, phiola would be the perfect choice!

  • Minimal Resource Footprint. While powerful and user-friendly, phiola uses the absolute minimum amount of CPU and memory — often significantly less than many mainstream alternatives. This efficiency extends device battery life and contributes to lower overall power consumption.

License

phiola is licensed under BSD-2. Please review the licenses of all third-party libraries before any commercial use.

관련 프로젝트 살펴보기

불러오는 중…