Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 788bf87
  • /
  • prepare_mfa.sh
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:1e9759e10458af5b0933e054a35990402826cbc9
directory badge
swh:1:dir:788bf876d3ee513d17230cd47b8db638b7e75c08

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
prepare_mfa.sh
# Copyright (c) 2023 Amphion.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

#!/bin/bash

# Navigate to the 'pretrained' directory
cd pretrained || { echo "Failed to change directory to 'pretrained'"; exit 1; }

# Create and navigate to the 'mfa' directory
mkdir -p mfa && cd mfa || { echo "Failed to create or change directory to 'mfa'"; exit 1; }

# Define the MFA file URL and the file name
mfa_url="https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner/releases/download/v1.1.0-beta.2/montreal-forced-aligner_linux.tar.gz"
mfa_file="montreal-forced-aligner_linux.tar.gz"

# Download MFA if it doesn't exist
if [ ! -f "$mfa_file" ]; then
    wget "$mfa_url" || { echo "Failed to download MFA"; exit 1; }
fi

# Extract MFA
tar -zxvf "$mfa_file" || { echo "Failed to extract MFA"; exit 1; }

# Optionally, remove the tar.gz file after extraction
rm "$mfa_file"

echo "MFA setup completed successfully."

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API