find espeak with homebrew installation #248
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Test on Linux Ubuntu with festival-2.5 with various Python and espeak versions | |
name: Linux | |
on: [push, pull_request] | |
jobs: | |
python-version: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.10', '3.12'] | |
steps: | |
- name: Checkout phonemizer | |
uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install espeak-ng festival mbrola mbrola-fr1 | |
- name: Install phonemizer | |
run: | | |
pip install --upgrade pip setuptools | |
pip install .[test] | |
- name: Version phonemizer | |
run: phonemize --version | |
- name: Test phonemizer | |
run: pytest -v --cov=phonemizer --cov-report=xml test/ | |
# # Using codecov now requires a secret token. An alternative can be | |
# # https://nedbatchelder.com/blog/202209/making_a_coverage_badge.html | |
# - name: Upload coverage to Codecov | |
# if: ${{ matrix.python-version == '3.12' }} | |
# uses: codecov/codecov-action@v2 | |
# with: | |
# files: coverage.xml | |
# verbose: true | |
espeak-version: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# we used to test espeak-1.49 and 1.50 here but cannot be compiled | |
# anymore (ld error when linking speak-ng executable). I suppose some | |
# incompatbilty between old code / new compiler. | |
espeak-version: ['1.48.15', '1.51.1'] | |
steps: | |
- name: Checkout phonemizer | |
uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install festival mbrola mbrola-fr1 mbrola-af1 | |
- name: Install espeak-1.48 | |
if: ${{ matrix.espeak-version == '1.48.15' }} | |
run: sudo apt-get install espeak | |
- name: Install espeak>=1.49 | |
if: ${{ matrix.espeak-version != '1.48.15' }} | |
env: | |
ESPEAK_VERSION: ${{ matrix.espeak-version }} | |
run: | | |
sudo apt-get install make autoconf automake libtool pkg-config gcc libsonic-dev libpcaudio-dev git | |
git clone --depth 1 --branch $ESPEAK_VERSION https://github.com/espeak-ng/espeak-ng.git | |
cd espeak-ng | |
./autogen.sh | |
./configure | |
make src/espeak-ng | |
sudo make install | |
sudo ldconfig | |
espeak --version | |
- name: Install phonemizer | |
run: | | |
pip install --upgrade pip setuptools | |
pip install .[test] | |
- name: Version phonemizer | |
run: phonemize --version | |
- name: Test phonemizer | |
run: pytest -v |