Skip to content

Commit

Permalink
Add models
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcauliffe committed Apr 1, 2022
1 parent 6e81f3d commit 3e32a0a
Show file tree
Hide file tree
Showing 42 changed files with 331,277 additions and 8 deletions.
395 changes: 395 additions & 0 deletions acoustic/czech/mfa/v2.0.0/LICENSE

Large diffs are not rendered by default.

138 changes: 138 additions & 0 deletions acoustic/czech/mfa/v2.0.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@

# Czech MFA acoustic model v2.0.0

[Link to documentation on mfa-models](https://mfa-models.readthedocs.io/en/main/acoustic/czech_mfa.html)

Jump to section:

- [Model details](#model-details)
- [Installation](#installation)
- [Intended use](#intended-use)
- [Performance Factors](#performance-factors)
- [Metrics](#metrics)
- [Ethical considerations](#ethical-considerations)
- [Troubleshooting issues](#troubleshooting-issues)
- [Training data](#training-data)
- [Evaluation data](#evaluation-data)

## Model details

- **Maintainer:** [Montreal Forced Aligner](https://montreal-forced-aligner.readthedocs.io/)
- **Language:** [Czech](https://en.wikipedia.org/wiki/Czech_language)
- **Dialect:** N/A
- **Phone set:** [MFA](https://mfa-models.readthedocs.io/en/refactor/mfa_phone_set.html#czech)
- **Model type:** `Acoustic`
- **Features:** `MFCC + pitch`
- **Architecture:** `gmm-hmm`
- **Model version:** `v2.0.0`
- **Trained date:** `2022-03-31`
- **Compatible MFA version:** `v2.0.0`
- **License:** [CC BY 4.0](https://github.com/MontrealCorpusTools/mfa-models/tree/main/acoustic/czech/mfa/v2.0.0/LICENSE)
- **Citation:**

```bibtex
@techreport{mfa_czech_mfa_acoustic_2022,
author={McAuliffe, Michael and Sonderegger, Morgan},
title={Czech MFA acoustic model v2.0.0},
address={\url{https://mfa-models.readthedocs.io/acoustic/Czech/Czech MFA acoustic model v2_0_0.html}},
year={2022},
month={Mar},
}
```

- If you have comments or questions about this model, you can check [previous MFA model discussion posts](https://github.com/MontrealCorpusTools/mfa-models/discussions?discussions_q=Czech+MFA+acoustic+model+v2.0.0) or create [a new one](https://github.com/MontrealCorpusTools/mfa-models/discussions/new).

## Installation

Install from the [MFA command line](https://montreal-forced-aligner.readthedocs.io/en/latest/user_guide/models/index.html):

```
mfa models download acoustic czech_mfa
```

Or download from [the release page](https://github.com/MontrealCorpusTools/mfa-models/releases/tag/acoustic-czech_mfa-v2.0.0).

## Intended use

This model is intended for forced alignment of [Czech](https://en.wikipedia.org/wiki/Czech_language) transcripts.

This model uses the [MFA](https://mfa-models.readthedocs.io/en/refactor/mfa_phone_set.html#czech) phone set for Czech, and was trained with the pronunciation dictionaries above. Pronunciations can be added on top of the dictionary, as long as no additional phones are introduced.

## Performance Factors

As forced alignment is a relatively well-constrained problem (given accurate transcripts), this model should be applicable to a range of recording conditions and speakers. However, please note that it was trained on read speech in low-noise environments, so as your data diverges from that, you may run into alignment issues or need to [increase the beam size of MFA](https://montreal-forced-aligner.readthedocs.io/en/latest/user_guide/configuration/#configuring-specific-commands) or see other recommendations in the [troubleshooting section below](#troubleshooting-issues).

Please note as well that MFA does not use state-of-the-art ASR models for forced alignment. You may get better performance (especially on speech-to-text tasks) using other frameworks like [Coqui](https://coqui.ai/).

## Metrics

Acoustic models are typically generated as one component of a larger ASR system where the metric is word error rate (WER). For forced alignment, there is typically not the same sort of gold standard measure for most languages.

As a rough approximation of the acoustic model quality, we evaluated it against the corpus it was trained on alongside a language model trained from the same data. Key caveat here is that this is not a typical WER measure on held out data, so it should not be taken as a hard measure of how well an acoustic model will generalize to your data, but rather is more of a sanity check that the training data quality was sufficiently high.

Using the pronunciation dictionaries and language models above:

- **WER:** `0%`
- **CER:** `0%`

## Ethical considerations

Deploying any Speech-to-Text model into any production setting has ethical implications. You should consider these implications before use.

### Demographic Bias

You should assume every machine learning model has demographic bias unless proven otherwise. For STT models, it is often the case that transcription accuracy is better for men than it is for women. If you are using this model in production, you should acknowledge this as a potential issue.

### Surveillance

Speech-to-Text technologies may be misused to invade the privacy of others by recording and mining information from private conversations. This kind of individual privacy is protected by law in many countries. You should not assume consent to record and analyze private speech.


## Troubleshooting issues

Machine learning models (like this acoustic model) perform best on data that is similar to the data on which they were trained.

The primary sources of variability in forced alignment will be the applicability of the pronunciation dictionary and how similar the speech, demographics, and recording conditions are. If you encounter issues in alignment, there are couple of avenues to improve performance:

1. [Increase the beam size of MFA](https://montreal-forced-aligner.readthedocs.io/en/latest/user_guide/configuration/#configuring-specific-commands)

* MFA defaults to a narrow beam to ensure quick alignment and also as a way to detect potential issues in your dataset, but depending on your data, you might benefit from boosting the beam to 100 or higher.

2. Add pronunciations to the pronunciation dictionary

* This model was trained a particular dialect/style, and so adding pronunciations more representative of the variety spoken in your dataset will help alignment.

3. Check the quality of your data

* MFA includes a [validator utility](https://montreal-forced-aligner.readthedocs.io/en/latest/user_guide/data_validation.html), which aims to detect issues in the dataset.
* Use MFA's [anchor utility](https://montreal-forced-aligner.readthedocs.io/en/latest/user_guide/workflows/anchor.html) to visually inspect your data as MFA sees it and correct issues in transcription or OOV items.

4. Adapt the model to your data

* MFA has an [adaptation command](https://montreal-forced-aligner.readthedocs.io/en/latest/user_guide/workflows/adapt_acoustic_model.html) to adapt some of the model to your data based on an initial alignment, and then run another alignment with the adapted model.

## Training data

This model was trained on the following corpora:



* [Common Voice Czech](../../../../corpus/czech/common_voice_czech/8.0/README.md):
* **Hours:** `66.33`
* **Speakers:** `523`
* **Utterances:** `55,391`

* [GlobalPhone Czech](../../../../corpus/czech/globalphone_czech/3.1/README.md):
* **Hours:** `31.67`
* **Speakers:** `101`
* **Utterances:** `12,322`

* [Large Corpus of Czech Parliament Plenary Hearings](../../../../corpus/czech/large_corpus_of_czech_parliament_plenary_hearings/README.md):
* **Hours:** `450.95`
* **Speakers:** `84`
* **Utterances:** `194,181`

* [Czech Parliament Meetings](../../../../corpus/czech/czech_parliament_meetings/README.md):
* **Hours:** `88.81`
* **Speakers:** `67`
* **Utterances:** `51,494`
16 changes: 16 additions & 0 deletions acoustic/czech/mfa/v2.0.0/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "czech_mfa",
"language": "Czech",
"dialect": "",
"phone_set": "MFA",
"version": "2.0.0",
"maintainer": "[Montreal Forced Aligner](https://montreal-forced-aligner.readthedocs.io/)",
"citation": "@techreport{mfa_czech_mfa_acoustic_2022,\n\tauthor={McAuliffe, Michael and Sonderegger, Morgan},\n\ttitle={Czech MFA acoustic model v2.0.0},\n\taddress={\\url{https://mfa-models.readthedocs.io/acoustic/Czech/Czech MFA acoustic model v2_0_0.html}},\n\tyear={2022},\n\tmonth={Mar},\n}",
"license": "CC BY 4.0",
"license_link": "[CC BY 4.0](https://github.com/MontrealCorpusTools/mfa-models/tree/main/acoustic/czech/mfa/v2.0.0/LICENSE)",
"architecture": "gmm-hmm",
"features": "MFCC + pitch",
"evaluation": {},
"decode": {},
"train_date": "2022-03-31"
}

0 comments on commit 3e32a0a

Please sign in to comment.