

fix: piper is imported on ARM
@9c3d7298560864cb2cba10688153cb4ca9cd8183
--- tests/speech_test.py
+++ tests/speech_test.py
... | ... | @@ -5,7 +5,11 @@ |
5 | 5 |
import pytest |
6 | 6 |
import soundfile as sf |
7 | 7 |
|
8 |
-from faster_whisper_server.routers.speech import ( |
|
8 |
+platform_machine = platform.machine() |
|
9 |
+if platform_machine != "x86_64": |
|
10 |
+ pytest.skip("Only supported on x86_64", allow_module_level=True) |
|
11 |
+ |
|
12 |
+from faster_whisper_server.routers.speech import ( # noqa: E402 |
|
9 | 13 |
DEFAULT_MODEL, |
10 | 14 |
DEFAULT_RESPONSE_FORMAT, |
11 | 15 |
DEFAULT_VOICE, |
... | ... | @@ -14,8 +18,6 @@ |
14 | 18 |
) |
15 | 19 |
|
16 | 20 |
DEFAULT_INPUT = "Hello, world!" |
17 |
- |
|
18 |
-platform_machine = platform.machine() |
|
19 | 21 |
|
20 | 22 |
|
21 | 23 |
@pytest.mark.asyncio |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?