Skip to content

Commit

Permalink
Merge pull request #371 from cclauss/enable-espeak-ng-on-windows
Browse files Browse the repository at this point in the history
Enable eSpeak-NG on Windows
  • Loading branch information
willwade authored Nov 5, 2024
2 parents 03abb62 + a61ae2e commit 1690394
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/python_publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This workflows will upload a Python Package using Twine when a release is created.
# This workflow will upload a Python Package using Twine when a release is created.
# https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: CI

Expand Down Expand Up @@ -34,6 +34,15 @@ jobs:
run: sudo apt-get update -q -q && sudo apt-get install --yes espeak-ng libespeak1
- if: runner.os == 'macOS'
run: brew install espeak-ng
- name: Download and install eSpeak-NG
if: runner.os == 'Windows'
shell: pwsh
run: |
Invoke-WebRequest -Uri "https://github.com/espeak-ng/espeak-ng/releases/download/1.51/espeak-ng-X64.msi" -OutFile "espeak-ng.msi"
Start-Process msiexec.exe -ArgumentList '/i espeak-ng.msi /quiet /norestart' -Wait
# dir "$env:ProgramFiles\eSpeak NG"
$env:Path += ";$env:ProgramFiles\eSpeak NG"
espeak-ng --version
- if: runner.os != 'Windows'
run: espeak-ng --version

Expand Down
5 changes: 1 addition & 4 deletions tests/test_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
quick_brown_fox = "The quick brown fox jumped over the lazy dog."


@pytest.mark.skipif(
sys.platform == "win32", reason="TODO: Install eSpeak-NG on Windows"
)
@pytest.mark.parametrize("driver_name", pyttsx3.engine.engines_by_sys_platform())
def test_engine_name(driver_name):
engine = pyttsx3.init(driver_name)
Expand All @@ -22,7 +19,7 @@ def test_engine_name(driver_name):


@pytest.mark.skipif(
sys.platform == "win32", reason="TODO: Install eSpeak-NG on Windows"
sys.platform == "win32", reason="TODO: Make this test pass on eSpeak-NG on Windows"
)
@pytest.mark.parametrize("driver_name", pyttsx3.engine.engines_by_sys_platform())
def test_speaking_text(driver_name):
Expand Down

0 comments on commit 1690394

Please sign in to comment.