MCPcopy
hub / github.com/MontrealCorpusTools/Montreal-Forced-Aligner

github.com/MontrealCorpusTools/Montreal-Forced-Aligner @v3.3.9 sqlite

repository ↗ · DeepWiki ↗ · release v3.3.9 ↗
2,192 symbols 8,736 edges 135 files 1,345 documented · 61%
README

Montreal Forced Aligner

Continuous Integration codecov Documentation Status Interrogate Status DOI

The Montreal Forced Aligner is a command line utility for performing forced alignment of speech datasets using Kaldi (http://kaldi-asr.org/).

Please see the documentation http://montreal-forced-aligner.readthedocs.io for installation and usage.

If you run into any issues, please check the mailing list for fixes/workarounds or to post a new issue.

Installation

You can install MFA either entirely through conda or a mix of conda for Kaldi and Pynini dependencies and Python packaging for MFA itself

Conda installation

MFA is hosted on conda-forge and can be installed via:

conda install -c conda-forge montreal-forced-aligner

in your environment of choice.

Source installation

If you'd like to install a local version of MFA or want to use the development set up, the easiest way is first create the dev environment from the yaml in the repo root directory:

conda env create -n mfa-dev -f environment.yml

Alternatively, the dependencies can be installed via:

conda install -c conda-forge python=3.11 kaldi librosa praatio tqdm requests colorama pyyaml pynini openfst baumwelch ngram

MFA can be installed in develop mode via:

pip install -e .[dev]

You should be able to see appropriate output from mfa version

Development

The test suite is run via tox -e py38-win or tox -e py38-unix depending on the OS, and the docs are generated via tox -e docs

Quick links

Core symbols most depended-on inside this repo

filter
called by 387
montreal_forced_aligner/utils.py
session
called by 253
montreal_forced_aligner/acoustic_modeling/base.py
update
called by 225
montreal_forced_aligner/config.py
mfa_open
called by 177
montreal_forced_aligner/helper.py
construct_path
called by 136
montreal_forced_aligner/db.py
add
called by 99
montreal_forced_aligner/models.py
thirdparty_binary
called by 54
montreal_forced_aligner/utils.py
cleanup_connections
called by 53
montreal_forced_aligner/abc.py

Shape

Method 1,350
Function 454
Class 357
Route 31

Languages

Python100%

Modules by API surface

tests/conftest.py136 symbols
montreal_forced_aligner/db.py126 symbols
montreal_forced_aligner/data.py100 symbols
montreal_forced_aligner/exceptions.py94 symbols
montreal_forced_aligner/models.py90 symbols
montreal_forced_aligner/abc.py86 symbols
montreal_forced_aligner/transcription/transcriber.py60 symbols
montreal_forced_aligner/g2p/generator.py60 symbols
montreal_forced_aligner/transcription/multiprocessing.py53 symbols
montreal_forced_aligner/g2p/phonetisaurus_trainer.py52 symbols
montreal_forced_aligner/ivector/trainer.py48 symbols
montreal_forced_aligner/corpus/features.py48 symbols

Dependencies from manifests, versioned

praatio6.0.0 · 1×
sqlalchemy2.0 · 1×

For agents

$ claude mcp add Montreal-Forced-Aligner \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact