Phonia is an open-source toolkit for phonetic research, built for the work phonetics labs do in Praat every day: viewing spectrograms, measuring pitch, formants, and voice quality, annotating recordings, and drawing figures for publication. It runs in the browser with nothing to install, and as a desktop app for native playback and PDF export. Try it: About: Desktop downloads: Analysis Spectrogram — Gaussian-window…
Phonia is an open-source toolkit for phonetic research, built for the work
phonetics labs do in Praat every day:
viewing spectrograms, measuring pitch, formants, and voice quality, annotating
recordings, and drawing figures for publication. It runs in the browser with
nothing to install, and as a desktop app for native playback and PDF export.
Spectrogram — Gaussian-window STFT power spectral density in dB, wideband
through narrowband, computed in viewport-independent tiles; perceptual
colormaps with a grayscale ramp for print.
Pitch — window-corrected autocorrelation candidates with a Viterbi path
finder (Boersma 1993), with the full parameter surface and
Praat-documented defaults.
Formants — pre-emphasis, Burg recursion, and polynomial roots resolved to
frequency and bandwidth, tracked with Xia–Espy–Wilson dynamic programming.
Intensity — squared signal convolved with a Gaussian window, read in dB
SPL.
Voice report — glottal pulse extraction, jitter and shimmer families,
HNR, CPP/CPPS, and spectral moments over a selection.
Editing and export
Interval and point tiers with typed parent/child relations, an IPA input
pad, and label search across the corpus.
Praat TextGrid import and export: the reader takes the long and short text
formats (UTF-8, UTF-16, or Latin-1) and the binary format.
A recordings table with waveform thumbnails, duration and sample-rate
readouts, and tagging; project files autosave and recover after a crash.
Figures export through an SVG scene graph — the on-screen preview and the
saved SVG are byte-identical. PNG export runs in the browser, PDF in the
desktop app.
Every action sits in the command palette (Ctrl-K, ⌘K on macOS), and one
undo stack covers tier edits, imports, and boundary moves.
Architecture
A Rust analysis core drives two interfaces, a browser app and a Tauri desktop
app. The core is a Cargo workspace of small library crates with no UI
dependencies, compiled natively for the desktop and to WebAssembly for the
browser. Library crates carry the phonia- prefix. Each crate owns one concern:
Three app packages sit on the core: apps/web (SvelteKit frontend compiled to
WebAssembly), apps/desktop (Tauri shell with native playback), and apps/ui
(the Svelte component library shared by both).
Building from source
Requires Rust 1.88 or newer, wasm-pack, and Bun.
bun install
bun run --cwd apps/web dev
The dev task compiles the core to WebAssembly first, then serves the web app.
A production build of the web app is bun run build from the repository root;
the desktop app runs with bun run --cwd apps/desktop tauri dev.
Tests: cargo test for the core, bun run test:e2e for the end-to-end suite.
Sponsor
I build Phonia on my own, with no funding behind it, and it’s free for everyone. If it’s useful to you, a tip on Ko-fi or OFUSE gives me time to keep improving it. Companies interested in sponsoring can write to [email protected].
License
Dual-licensed under MIT or
Apache-2.0, at your option.
评论