Fedir Zadniprovskyi 2024-10-31
deps: add `piper-tts`
@61e0e5fd1e3953cf666d855845b6526f7c880ddf
pyproject.toml
--- pyproject.toml
+++ pyproject.toml
@@ -8,7 +8,8 @@
     "faster-whisper>=1.0.3",
     "huggingface-hub>=0.25.1",
     "numpy>=2.1.1",
-    "piper-phonemize",
+    "piper-phonemize ; platform_machine == 'x86_64'",
+    "piper-tts>=1.2.0 ; platform_machine == 'x86_64'",
     "pydantic-settings>=2.5.2",
     "pydantic>=2.9.0",
     "python-multipart>=0.0.10",
@@ -119,3 +120,8 @@
 
 [tool.uv.sources]
 piper-phonemize = { url = "https://github.com/fedirz/piper-phonemize/raw/refs/heads/master/dist/piper_phonemize-1.2.0-cp312-cp312-manylinux_2_28_x86_64.whl" }
+
+[[tool.uv.dependency-metadata]]
+name = "piper-tts"
+version = "1.2.0"
+requires-dist = ["piper-phonemize"]
uv.lock
--- uv.lock
+++ uv.lock
@@ -1,6 +1,13 @@
 version = 1
 requires-python = "==3.12.*"
 
+[manifest]
+
+[[manifest.dependency-metadata]]
+name = "piper-tts"
+version = "1.2.0"
+requires-dist = ["piper-phonemize"]
+
 [[package]]
 name = "aiofiles"
 version = "23.2.1"
@@ -257,7 +264,8 @@
     { name = "faster-whisper" },
     { name = "huggingface-hub" },
     { name = "numpy" },
-    { name = "piper-phonemize" },
+    { name = "piper-phonemize", marker = "platform_machine == 'x86_64'" },
+    { name = "piper-tts", marker = "platform_machine == 'x86_64'" },
     { name = "pydantic" },
     { name = "pydantic-settings" },
     { name = "python-multipart" },
@@ -306,7 +314,8 @@
     { name = "mkdocstrings", extras = ["python"], marker = "extra == 'dev'", specifier = ">=0.26.1" },
     { name = "numpy", specifier = ">=2.1.1" },
     { name = "openai", marker = "extra == 'ui'", specifier = ">=1.48.0" },
-    { name = "piper-phonemize", url = "https://github.com/fedirz/piper-phonemize/raw/refs/heads/master/dist/piper_phonemize-1.2.0-cp312-cp312-manylinux_2_28_x86_64.whl" },
+    { name = "piper-phonemize", marker = "platform_machine == 'x86_64'", url = "https://github.com/fedirz/piper-phonemize/raw/refs/heads/master/dist/piper_phonemize-1.2.0-cp312-cp312-manylinux_2_28_x86_64.whl" },
+    { name = "piper-tts", marker = "platform_machine == 'x86_64'", specifier = ">=1.2.0" },
     { name = "pre-commit", marker = "extra == 'dev'", specifier = ">=4.0.1" },
     { name = "pydantic", specifier = ">=2.9.0" },
     { name = "pydantic-settings", specifier = ">=2.5.2" },
@@ -993,6 +1002,17 @@
 ]
 
 [[package]]
+name = "piper-tts"
+version = "1.2.0"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+    { name = "piper-phonemize" },
+]
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/24/aa/215bced0725cf5b5afe939f86b177c8ddb0d38292a94e85c55b3fcf6d46d/piper_tts-1.2.0-py3-none-any.whl", hash = "sha256:f3410aea0f8051d8a118050a5b954faeb36f6ac0da6d10fc2f8a043a8eaf27b5", size = 29454 },
+]
+
+[[package]]
 name = "platformdirs"
 version = "4.3.6"
 source = { registry = "https://pypi.org/simple" }
Add a comment
List