.. _adapt_acoustic_model:

Adapt acoustic model to new data ``(mfa adapt)``
================================================

A recent 2.0 functionality for MFA is to adapt pretrained :term:`acoustic models` to a new dataset.  MFA will first align the dataset using the pretrained model, and then update the acoustic model's GMM means with those generated by the data.  See :kaldi_steps:`train_map` for the Kaldi script this functionality corresponds to.  As part of the adaptation process, MFA can generate final alignments and export these files if an output directory is specified in the command.


Command reference
-----------------

.. autoprogram:: montreal_forced_aligner.command_line.mfa:create_parser()
   :prog: mfa
   :start_command: adapt

Configuration reference
-----------------------

- :ref:`configuration_global`
- :ref:`configuration_adapting`

API reference
-------------

- :class:`~montreal_forced_aligner.alignment.AdaptingAligner`
