Skip to content

Commit

Permalink
fix: piper is imported on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedir Zadniprovskyi committed Nov 1, 2024
1 parent e59ebf5 commit 979b201
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/speech_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
import pytest
import soundfile as sf

from faster_whisper_server.routers.speech import (
platform_machine = platform.machine()
if platform_machine != "x86_64":
pytest.skip("Only supported on x86_64", allow_module_level=True)

from faster_whisper_server.routers.speech import ( # noqa: E402
DEFAULT_MODEL,
DEFAULT_RESPONSE_FORMAT,
DEFAULT_VOICE,
Expand All @@ -15,8 +19,6 @@

DEFAULT_INPUT = "Hello, world!"

platform_machine = platform.machine()


@pytest.mark.asyncio
@pytest.mark.skipif(platform_machine != "x86_64", reason="Only supported on x86_64")
Expand Down

0 comments on commit 979b201

Please sign in to comment.