Waveform formats (`EST_Wave`, `EST_WaveFile`):
* Raw audio data (headerless) is likely supported, as `ch_wave` can *add* headers.
* Audlab
* Raw PCM - Already implied in your notes but explicitly supported via `save_raw`/`load_raw` functions.
* RIFF/Wav - Explicitly listed in the `EST_WaveFile` class.
* A-law - Explicitly supported as `wff_alaw`.
* µ-law - Explicitly supported as `wff_ulaw`.
* AIFF (Waveform) - Audio Interchange File Format. This is explicitly supported as per the `EST_WaveFile` class.
* SND (Waveform) - NeXT/Sun sound file format.
Track Formats (`EST_Track`):
* EST Track format (binary, presumably a custom format). This is the primary format used within the library.
* Specific formats are implied by the use of `ch_track` for conversion, but again, not explicitly listed.
For other data:
* Label Files: text, Used for things like phonetic and prosodic annotation, intonation event labels, often in XLabel format. Plain text formats are also used for things like phone lists in `scfg_make`.
* Feature vector files Files: Text-based, Whitespace-separated values, with quoting for values containing whitespace, used for training CARTs, regression models, and grammars. Used by `wagon` and other tools.
* Utterance files
* Grammar Files: Lisp-like S-expressions for SCFGs, regular grammars, etc. Special formats for things like Kay/Kaplan/Koskenniemi rules.
* N-gram model Files:
+ HTK format
* ASCII
* binary
+ ARPA format
+ CSTR format
* ASCII
* binary
* Weighted Finite State Transducer (WFST) Files: Input formats include regular expressions or structured grammar rules that is used for representing grammars and transducers. Two formats:
+ ascii
+ binary
* XML: text, For representing utterances and other structured data, parsed using `EST_XML_Parser` or `RXP`...
* XMG (XML-based format for representing linguistic data) format: text, This format is used for representing linguistic data and is supported by the `EST_XML_Parser` class.
* Scheme Used for scripting and interacting with SIOD.
* Text and Linguistic Data Formats
* SCFG (Stochastic Context-Free Grammar) files define probabilistic grammars in a text-based format and used by tools like `scfg_train` and `scfg_parse`.
* Tilt/RFC label files - text, Contain parameters for Tilt intonation models or Rise-Fall-Connection (RFC) models. Input/output for tools like `tilt_analysis` and `tilt_synthesis`.
* Pitchmark files: Text files with timestamps for glottal closures. Used for pitch-synchronous synthesis.
* Regex-based grammar files: text, Used for creating and manipulating finite state transducers (FSTs).
* Filter coefficient files: Used for FIR and other signal processing filters (e.g., `sigfilter`).
* SPGRAM (Spectrogram): A format for storing spectrogram data, processed by ESPS utilities.
* FILT: A format for filter data (e.g., coefficients), supported by ESPS utilities.
* HTK (HMM Toolkit) format: This format is used for storing Hidden Markov Models and is supported by the `EST_Ngrammar` class.
* HTK Filterbank (FBANK) (Track), Filter bank features format.
- HTK MFCC+E: HTK MFCC format with energy coefficients.
* HTK User:, User-defined HTK format.
* HTK Discrete: Discrete-valued HTK format.
* SSFF (Speech Synthesis Format) format: This format is used for storing speech synthesis data and is supported by the `EST_Track` class.
* SNNS (Stuttgart Neural Network Simulator) format: This format is used for storing neural network data and is supported by the `EST_Track` class.
* ESPS (Entropic Signal Processing System) format: This format is used for storing signal processing data and is supported by the `EST_Track` class.
* EMA (Electromagnetic Articulography) binary format: This format is used for storing articulatory data and is supported by the `EST_Track` class.
* EMA Swapped Format: A variation of the binary Electromagnetic Articulography format, with swapped byte order, supported by `EST_TrackFile`.
* NIST (National Institute of Standards and Technology) format: This format is used for storing speech recognition data and is supported by the `EST_Track` class.
* XGraph format: This format is used for storing graphical data and is supported by the `EST_Track` class.
* Inside-Outside format for SCFG training data
Compose the list of all file formats used, with their purposes, classifications whether they are binary or text, classifications what kind of information they store. Make a GraphViz dot graph describing the flows of information between formats and operations done with the help of the library.
Based on the provided documentation and source code, I have compiled a comprehensive list of supported file formats used in the speech_tools library.
List of Supported File Formats:
- Waveform Formats:
- Raw audio data (headerless) - binary, audio
- Audlab - binary, audio
- Raw PCM - binary, audio
- RIFF/Wav - binary, audio
- A-law - binary, audio
- µ-law - binary, audio
- AIFF - binary, audio
- SND - binary, audio
- Track Formats:
- EST Track format - binary, signal processing data
- ESPS - binary, signal processing data
- EMA - binary, articulatory data
- EMA Swapped Format - binary, articulatory data
- NIST - text, speech recognition data
- XGraph - text, graphical data
- HTK (HMM Toolkit) - binary, Hidden Markov Models
- HTK Filterbank (FBANK) - binary, filter bank features
- HTK MFCC+E - binary, MFCC format with energy coefficients
- HTK User - binary, user-defined format
- HTK Discrete - binary, discrete-valued format
- SSFF (Speech Synthesis Format) - binary, speech synthesis data
- SNNS (Stuttgart Neural Network Simulator) - binary, neural network data
- Label File Formats:
- Text - text, phonetic and prosodic annotation
- XLabel - text, phonetic and prosodic annotation
- Feature Vector File Formats:
- Text - text, feature vectors
- Grammar File Formats:
- Lisp-like S-expressions - text, SCFGs, regular grammars
- [Redacted Person]/[Redacted Person]/[Redacted Person] rules - text, morphological rules
- N-gram Model File Formats:
- HTK format - binary, N-gram models
- ARPA format - text, N-gram models
- CSTR format - binary, N-gram models
- Weighted Finite State Transducer (WFST) File Formats:
- ASCII - text, WFSTs
- Binary - binary, WFSTs
- XML-based Formats:
- XMG - text, linguistic data
- XML - text, utterances and other structured data
- Other Formats:
- Scheme - text, scripting and interacting with SIOD
- Tilt/RFC label files - text, intonation models
- Pitchmark files - text, timestamps for glottal closures
- Regex-based grammar files - text, finite state transducers
- Filter coefficient files - text, FIR and other signal processing filters
- SPGRAM (Spectrogram) - binary, spectrogram data
- FILT - binary, filter data
Here is a GraphViz dot graph describing the flows of information between formats and operations done with the help of the library:
Note that this graph is not exhaustive, and there may be additional formats and operations not represented here.
digraph speech_tools_formats {
node[shape=box, style=filled];
// Waveform formats
raw_audio[label="Raw audio data (headerless)"];
audlab[label="Audlab"];
raw_pcm[label="Raw PCM"];
riff_wav[label="RIFF/Wav"];
a_law[label="A-law"];
u_law[label="µ-law"];
aiff[label="AIFF"];
snd[label="SND"];
// Track formats
est_track[label="EST Track format"];
esps[label="ESPS"];
ema[label="EMA"];
ema_swapped[label="EMA Swapped Format"];
nist[label="NIST"];
xgraph[label="XGraph"];
htk[label="HTK (HMM Toolkit)"];
htk_fb[label="HTK Filterbank (FBANK)"];
htk_mfcc_e[label="HTK MFCC+E"];
htk_user[label="HTK User"];
htk_discrete[label="HTK Discrete"];
ssff[label="SSFF (Speech Synthesis Format)"];
snns[label="SNNS (Stuttgart Neural Network Simulator)"];
// Label file formats
text[label="Text"];
xlabel[label="XLabel"];
// Feature vector file formats
feature_vector[label="Feature vector"];
// Grammar file formats
lisp[label="Lisp-like S-expressions"];
[Redacted Person]_[Redacted Person][label="Kay/Kaplan/Koskenniemi rules"];
// N-gram model file formats
htk_ngram[label="HTK format"];
arpa_ngram[label="ARPA format"];
cstr_ngram[label="CSTR format"];
// WFST file formats
ascii_wfst[label="ASCII"];
binary_wfst[label="Binary"];
// XML-based formats
xmg[label="XMG"];
xml[label="XML"];
// Other formats
scheme[label="Scheme"];
tilt_rfc[label="Tilt/RFC label files"];
pitchmark[label="Pitchmark files"];
regex_grammar[label="Regex-based grammar files"];
filter_coefficient[label="Filter coefficient files"];
spgram[label="SPGRAM (Spectrogram)"];
filt[label="FILT"];
// Operations
ch_wave[label="ch_wave"];
ch_track[label="ch_track"];
sigfilter[label="sigfilter"];
pda[label="pda"];
pitchmark[label="pitchmark"];
scfg_make[label="scfg_make"];
scfg_train[label="scfg_train"];
scfg_parse[label="scfg_parse"];
wagon[label="wagon"];
tilt_analysis[label="tilt_analysis"];
tilt_synthesis[label="tilt_synthesis"];
// Flows
raw_audio -> ch_wave;
audlab -> ch_wave;
raw_pcm -> ch_wave;
riff_wav -> ch_wave;
a_law -> ch_wave;
u_law -> ch_wave;
aiff -> ch_wave;
snd -> ch_wave;
est_track -> ch_track;
esps -> ch_track;
ema -> ch_track;
ema_swapped -> ch_track;
nist -> ch_track;
xgraph -> ch_track;
htk -> ch_track;
htk_fb -> ch_track;
htk_mfcc_e -> ch_track;
htk_user -> ch_track;
htk_discrete -> ch_track;
ssff -> ch_track;
snns -> ch_track;
text -> ch_track;
xlabel -> ch_track;
feature_vector -> wagon;
lisp -> scfg_make;
[Redacted Person] -> scfg_make;
htk_ngram -> scfg_train;
arpa_ngram -> scfg_train;
cstr_ngram -> scfg_train;
ascii_wfst -> scfg_parse;
binary_wfst -> scfg_parse;
xmg -> scfg_parse;
xml -> scfg_parse;
scheme -> tilt_analysis;
tilt_rfc -> tilt_analysis;
pitchmark -> tilt_analysis;
regex_grammar -> tilt_synthesis;
filter_coefficient -> tilt_synthesis;
spgram -> tilt_synthesis;
filt -> tilt_synthesis;
}