Fedir Zadniprovskyi 2024-11-01
fix: piper is imported on ARM
@9c3d7298560864cb2cba10688153cb4ca9cd8183
tests/speech_test.py
--- tests/speech_test.py
+++ tests/speech_test.py
@@ -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,
@@ -14,8 +18,6 @@
 )
 
 DEFAULT_INPUT = "Hello, world!"
-
-platform_machine = platform.machine()
 
 
 @pytest.mark.asyncio
Add a comment
List