Written and maintained by CASRAI Editorial Board
Published
On this page
emuR is the R package at the centre of the EMU Speech Database Management System (EMU-SDMS). It gives researchers who work with speech recordings a way to manage annotated speech databases, query their labels, extract the matching signal data and visualise the results from inside R. On CRAN it is described as the “Main Package of the EMU Speech Database Management System”, with facilities for database management, data extraction, data preparation and data visualization.
What is emuR?
The name is written emuR (lower-case “emu”, capital “R”), and searches for “emur” almost always mean this package. It is the R-side interface of EMU-SDMS, which Winkelmann, Harrington and Jaensch (2017) describe as an “all-in-one solution for generating, manipulating, querying, analyzing and managing speech databases” and as the next iteration of the EMU system, built from “a newly designed and almost entirely rewritten set of modern spoken language database management tools”.
The package is maintained by Markus Jochim; the other listed authors are Raphael Winkelmann, Klaus Jaensch, Steve Cassidy and Jonathan Harrington. CRAN lists version 2.6.0 (published 2025-12-20), a GPL-2 | GPL-3 licence, a dependency on R 3.5.0 or later, and imports that include wrassp, jsonlite, RSQLite, DBI, dplyr, shiny and V8. The CRAN record carries the DOI 10.32614/CRAN.package.emuR (CRAN page read 2026-11-14).
For readers coming from other phonetics tools, the practical contrast is in how annotations are organised. Tools built around time-aligned tiers, such as Praat and ELAN, store labels on tiers. emuR works with annotation levels that can be time-based or timeless and hierarchical, and links between them, so that a phoneme can be tied to the syllable it belongs to without repeating the same information on several tiers (EMU-SDMS manual, read 2026-11-14).
The four components of EMU-SDMS
The manual presents EMU-SDMS as four parts that work together. emuR is one of them, and it is the one that installs the rest of the R-side system. The table below summarises each part as the manual describes it.
| Component | What it is | Role in the workflow |
|---|---|---|
| emuDB | A database format on disk | Holds the recordings, optional signal files and annotation files in a fixed directory structure |
| wrassp | An R package | Signal processing; produces derived signal tracks such as formants |
| emuR | An R package | Creates, loads, queries and analyses emuDBs; serves a database to the web app |
| EMU-webApp | A web-based graphical interface | Viewing and labelling; runs standalone, from emuR through serve(), or collaboratively |
Because the database format is separate from the software that reads it, an emuDB is a folder of ordinary files: audio, JSON and signal tracks. That is a reproducibility advantage worth stating plainly, since the annotation work does not depend on a proprietary container.
How an emuDB is structured
An emuDB is a directory whose name ends in _emuDB. Inside it, the manual describes a single configuration file, _DBconfig.json, which defines the annotation levels, the links between them and the display settings, plus one directory per session (names ending _ses) and, inside each session, one directory per recording bundle (names ending _bndl). A bundle holds the audio file, any signal files and an annotation file, and all of them share one base name: rec1.wav lives in rec1_bndl. The data table below sets out these elements.
Levels, items and links
Annotation levels come in three types in the manual: ITEM (timeless, ordered), SEGMENT and EVENT (both carry time information). Links between levels are declared in the configuration, for example a ONE_TO_MANY link from a Word level to a Phonetic level. A time-based level such as Phonetic resembles a Praat tier, while timeless hierarchical levels such as Phoneme, Syllable and Text are tied to each other through the links.
Signal files
Besides the audio, a bundle can hold signal tracks in SSFF format (the examples given are .fms and .f0 files). The manual distinguishes complementary tracks, such as electromagnetic articulography (EMA) or electropalatography (EPG) recordings, from derived tracks that are computed from the audio, such as formants or root-mean-square energy.
How to query an emuDB: the EMU Query Language
Querying is the central skill in emuR. The function query() runs an EMU Query Language (EQL, version 2) expression against the annotations of a loaded database and returns a segment list, a tibble whose columns include labels, start, end, session, bundle, level, type, sample_start, sample_end and sample_rate. Start and end times are in milliseconds. Follow-up queries start from an existing segment list rather than from the whole database. The manual’s examples, run against its demo database, are shown below.
| Query type | Example expression from the manual |
|---|---|
| Simple | query(ae, "Phonetic == m") |
| Sequence | query(ae, "[Phonetic == @ -> Phonetic == n]") |
| Domination | query(ae, "[Phoneme == p ^ Syllable == S]") |
| Position | query(ae, "[Start(Syllable, Phoneme) == TRUE]") |
A simple query has the form [L OPERATOR A], where the operator is one of ==, !=, =~ or !~, for example query(ae, "Tone != H*"). The manual’s four query types are simple, sequence, domination and position queries.
Requeries: moving from a result to its neighbours
Two functions build on an earlier result. requery_seq() moves along a level by an offset: with offset = -1 it returns the items directly before each hit. requery_hier() moves up or down the hierarchy to a named level, so that a set of syllables can be turned into the phonetic segments linked to them.
Install emuR and run a first query
The manual’s overview chapter states that the whole system is installed with install.packages("emuR"); the general mechanics of CRAN installs are covered in How to Install R Packages. The first-query sequence below is the manual’s own demo workflow.
install.packages("emuR")
library(emuR)
# create the demo data and load the demo database
create_emuRdemoData(dir = tempdir())
path2ae = file.path(tempdir(), "emuR_demoData", "ae_emuDB")
ae = load_emuDB(path2ae, verbose = FALSE)
# all segments labelled "m" on the Phonetic level
sl = query(ae, "Phonetic == m")
head(sl)
To edit or inspect annotations graphically, serve() sends a loaded database to EMU-webApp.
emuR, reproducibility and research data practice
An annotated speech corpus is research data in the full sense: it has provenance, a documented structure and often participants who consented to recording. Three features of the design support good practice. The database format is a documented set of plain files, the annotation structure is declared in one configuration file, and queries are written as code, so that the step from labels to measurements can be re-run. That is the kind of workflow described under computational reproducibility. Recording the emuR version in the analysis script and archiving the database alongside it is a sensible habit that follows from the above; consent and data-sharing terms for the recordings themselves still need to be checked with the relevant ethics body.
How to cite emuR
Cite both the software and the paper that describes the system. The paper is Winkelmann, R., Harrington, J., & Jaensch, K. (2017). EMU-SDMS: Advanced speech database management and analysis in R. Computer Speech & Language, 45, 392-410, https://doi.org/10.1016/j.csl.2017.01.002. For the package, CRAN gives the DOI 10.32614/CRAN.package.emuR and the authors listed above; state the version you used (2.6.0 at the time of reading). Details of the general pattern for software citations are in How to Cite Software, Code and R Packages.
Related linguistics background
emuR sits in phonetics and speech science, a specialisation within the wider field described in What Is Linguistics?. Researchers choose it when they need labelled speech plus the signal data behind each label, rather than labels alone.
Frequently asked questions
What is emuR used for?
emuR is used to manage speech databases and to query their annotations, extract signal data for the matching segments, prepare it for analysis and visualise it, all in R (CRAN description, read 2026-11-14).
Is emuR the same as EMU-SDMS?
No. EMU-SDMS is the whole system of four components; emuR is its main R package, and installing emuR installs the R-side system.
Who maintains emuR and what licence does it use?
CRAN lists Markus Jochim as maintainer and the licence as GPL-2 | GPL-3.
What is an emuDB?
An emuDB is the on-disk database format: a _emuDB directory with one _DBconfig.json file, session directories and bundle directories holding audio, optional signal files and an annotation file.
Does emuR replace Praat?
The sources do not frame it that way. They describe a different organisation of annotations (hierarchical levels plus time-based levels) and a query language over them; Praat remains a separate tool.
How do I cite emuR?
Cite Winkelmann, Harrington and Jaensch (2017) and the CRAN package record with the version used, as shown above.
Sources
- CRAN, emuR package page, https://cran.r-project.org/package=emuR (read 2026-11-14).
- The EMU-SDMS Manual, https://ips-lmu.github.io/The-EMU-SDMS-Manual/, chapters on the overview, the emuDB format and the query system (read 2026-11-14).
- Winkelmann, R., Harrington, J., & Jaensch, K. (2017). EMU-SDMS: Advanced speech database management and analysis in R. Computer Speech & Language, 45, 392-410. https://doi.org/10.1016/j.csl.2017.01.002
Data: emuDB directory elements and naming conventions
Compiled from the EMU-SDMS manual: the directory levels of an emuDB, how each is named, and what each level holds, for researchers who need to organise or archive an emuR database.
| Directory level | Naming convention | Contents |
|---|---|---|
| Database root | Directory name ends in _emuDB | One _DBconfig.json file defining levels, links and display settings; session directories |
| Session | Directory name ends in _ses | Bundle directories |
| Bundle | Directory name ends in _bndl; files share one base name (rec1.wav in rec1_bndl) | Audio (.wav), optional SSFF signal files (e.g. .fms, .f0) and an _annot.json annotation file |
Sources
- The EMU-SDMS Manual: The emuDB format (accessed 2026-11-14)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







