|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd pretrained || { echo "Failed to change directory to 'pretrained'"; exit 1; } |
|
|
|
|
|
mkdir -p mfa && cd mfa || { echo "Failed to create or change directory to 'mfa'"; exit 1; } |
|
|
|
|
|
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" |
|
|
|
|
|
if [ ! -f "$mfa_file" ]; then |
|
wget "$mfa_url" || { echo "Failed to download MFA"; exit 1; } |
|
fi |
|
|
|
|
|
tar -zxvf "$mfa_file" || { echo "Failed to extract MFA"; exit 1; } |
|
|
|
|
|
rm "$mfa_file" |
|
|
|
echo "MFA setup completed successfully." |
|
|