Skip to content

Commit

Permalink
Windows on Python 3.13 should work with the new PyAudio
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Nov 25, 2024
1 parent 2c054d6 commit 58876a4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- os: macos-latest
python-version: "3.13"
- os: windows-latest
python-version: "3.11"
python-version: "3.13"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -36,25 +36,29 @@ jobs:
- name: Install ffmpeg (for Whisper)
if: runner.os != 'macOS'
uses: FedericoCarboni/setup-ffmpeg@v3
- name: Install standard-aifc on Python 3.13
if: matrix.python-version == '3.13'
run: |
python -m pip install standard-aifc
- name: Install Python dependencies (Ubuntu, <=3.12)
if: runner.os == 'Linux' && matrix.python-version != '3.13'
run: |
python -m pip install .[dev,audio,pocketsphinx,whisper-local,whisper-api]
- name: Install Python dependencies (Ubuntu, 3.13)
if: runner.os == 'Linux' && matrix.python-version == '3.13'
run: |
python -m pip install standard-aifc setuptools
python -m pip install setuptools
python -m pip install --no-build-isolation .[dev,audio,pocketsphinx,whisper-api]
- name: Install Python dependencies (macOS, 3.13)
if: runner.os == 'macOS'
run: |
brew install portaudio
python -m pip install pocketsphinx standard-aifc setuptools
python -m pip install pocketsphinx setuptools
python -m pip install --no-build-isolation .[dev,audio,whisper-api]
- name: Install Python dependencies (Windows)
if: runner.os == 'Windows'
run: |
python -m pip install .[dev,whisper-local,whisper-api]
python -m pip install standard-aifc .[dev,whisper-local,whisper-api]
- name: Test with unittest
run: |
pytest --doctest-modules --strict -v -W="ignore: aifc" speech_recognition/recognizers/ tests/

0 comments on commit 58876a4

Please sign in to comment.