lowerquality / gentle

gentle forced aligner
https://lowerquality.com/gentle/
MIT License
1.43k stars 296 forks source link

Install on M1 #316

Closed kai-shimada closed 1 year ago

kai-shimada commented 1 year ago

I'm not sure if this is helpfull but because I finally got it to work on my M1 macOS 12.6.1, I'll just write down what I did.

I'm using python=3.9.15 in a conda environment.

  1. clone repo if you haven't already
    git clone git@github.com:lowerquality/gentle.git
  2. check dependencies using
    ./ext/kaldi/tools/extras/check_dependencies.sh
  3. install all missing packages using brew (in my case, sox, subversion and openblas were missing)
    brew install <package name>
  4. change content of ./ext/install_kaldi.sh to
#!/bin/bash

# Prepare Kaldi
cd kaldi/tools
make
./extras/install_openblas.sh
cd ../src
# make clean (sometimes helpful after upgrading upstream?)
./configure --static --static-math=yes --static-fst=yes --use-cuda=no --openblas-root=../tools/OpenBLAS
make clean
make depend
cd ../../
  1. finally, run
    ./install.sh
  2. run test
    python3 align.py examples/data/lucier.mp3 examples/data/lucier.txt

I hope it helps!

cheers, Kai