diff --git a/pkgs/by-name/pi/piper-tts/cmake-system-libs.patch b/pkgs/by-name/pi/piper-tts/cmake-system-libs.patch index f891b36ce183..1ac95e44342d 100644 --- a/pkgs/by-name/pi/piper-tts/cmake-system-libs.patch +++ b/pkgs/by-name/pi/piper-tts/cmake-system-libs.patch @@ -28,7 +28,7 @@ index 04dd613..7374d25 100644 - -ExternalProject_Add(espeak_ng_external - GIT_REPOSITORY https://github.com/espeak-ng/espeak-ng.git -- GIT_TAG 212928b394a96e8fd2096616bfd54e17845c48f6 # 2025-Mar-22 +- GIT_TAG 724808c # 2026-Apr-06 - PREFIX ${ESPEAKNG_BUILD_DIR} - CMAKE_ARGS - -DCMAKE_INSTALL_PREFIX=${ESPEAKNG_INSTALL_DIR} diff --git a/pkgs/by-name/pi/piper-tts/package.nix b/pkgs/by-name/pi/piper-tts/package.nix index ce1ab826fc62..fd3f5c27d9fd 100644 --- a/pkgs/by-name/pi/piper-tts/package.nix +++ b/pkgs/by-name/pi/piper-tts/package.nix @@ -16,7 +16,7 @@ }: let - # https://github.com/OHF-Voice/piper1-gpl/blob/v1.3.0/CMakeLists.txt#L33-L40 + # https://github.com/OHF-Voice/piper1-gpl/blob/v1.7.0/CMakeLists.txt#L33-L40 espeak-ng' = espeak-ng.override { asyncSupport = false; klattSupport = false; @@ -29,14 +29,14 @@ in python3Packages.buildPythonApplication rec { pname = "piper-tts"; - version = "1.4.2"; + version = "1.7.0"; pyproject = true; src = fetchFromGitHub { owner = "OHF-Voice"; repo = "piper1-gpl"; tag = "v${version}"; - hash = "sha256-FHO+1d1iJimc6KweY/O6lEvWqGCyUwnDrslEfkxYR7A="; + hash = "sha256-oQhDFhB2GXlAdxW1K7BM7RJkzihAwyoB6QbOpaMUVHM="; }; patches = [ @@ -92,6 +92,7 @@ python3Packages.buildPythonApplication rec { jsonargparse librosa lightning + onnx pysilero-vad tensorboard tensorboardx @@ -104,6 +105,15 @@ python3Packages.buildPythonApplication rec { alignment = with python3Packages; [ onnx ]; + zh = with python3Packages; [ + # g2pw # not packaged + transformers + sentence-stream + unicode-rbnf + ]; + ja = [ + # pyopenjtalk-plus # not packaged + ]; }; postInstall = '' @@ -115,6 +125,14 @@ python3Packages.buildPythonApplication rec { cp -Rv src/piper/train/vits $train/ ''; + pythonImportsCheck = [ + "piper" + "piper.tashkeel" + "piper.hebrew" + "piper.train" + "piper.train.vits" + ]; + meta = { changelog = "https://github.com/OHF-Voice/piper1-gpl/releases/tag/v${version}"; description = "Fast, local neural text to speech system";