Unverified Commit 0a0f3f5d authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #262827 from mweinelt/piper-tts-2023.9.27

piper-tts: 1.2.0 -> 2023.9.27-1; piper-phonemize: 1.1.0 -> 2023.9.27-2
parents d3104ecc 20550edf
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -17,8 +17,8 @@ let
    src = fetchFromGitHub {
      owner = "rhasspy";
      repo = "espeak-ng";
      rev = "61504f6b76bf9ebbb39b07d21cff2a02b87c99ff";
      hash = "sha256-RBHL11L5uazAFsPFwul2QIyJREXk9Uz8HTZx9JqmyIQ=";
      rev = "0f65aa301e0d6bae5e172cc74197d32a6182200f";
      hash = "sha256-2V0D3QO+v9OqffpNmwJQd3NIBd/IFeLkjaJ3Y0HHw7E=";
    };

    patches = [
@@ -28,13 +28,13 @@ let
in
stdenv.mkDerivation rec {
  pname = "piper-phonemize";
  version = "1.1.0";
  version = "2023.9.27-2";

  src = fetchFromGitHub {
    owner = "rhasspy";
    repo = "piper-phonemize";
    rev = "refs/tags/v${version}";
    hash = "sha256-cMer7CSLOXv3jc9huVA3Oy5cjXjOX9XuEXpIWau1BNQ=";
    rev = "refs/tags/${version}";
    hash = "sha256-Rwl8D5ZX9sGdxEch+l7pXdbf4nPCuSfGrK5x/EQ+O60=";
  };

  nativeBuildInputs = [
@@ -42,6 +42,11 @@ stdenv.mkDerivation rec {
    pkg-config
  ];

  cmakeFlags = [
    "-DONNXRUNTIME_DIR=${onnxruntime.dev}"
    "-DESPEAK_NG_DIR=${espeak-ng'}"
  ];

  buildInputs = [
    espeak-ng'
    onnxruntime
+10 −5
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
, pkg-config

# runtime
, fmt
, onnxruntime
, pcaudiolib
, piper-phonemize
@@ -18,22 +19,26 @@

stdenv.mkDerivation (finalAttrs: {
  pname = "piper";
  version = "1.2.0";
  version = "2023.9.27-1";

  src = fetchFromGitHub {
    owner = "rhasspy";
    repo = "piper";
    rev = "refs/tags/v${finalAttrs.version}";
    hash = "sha256-6WNWqJt0PO86vnf+3iHaRRg2KwBOEj4aicmB+P2phlk=";
    rev = "refs/tags/${finalAttrs.version}";
    hash = "sha256-U7yOiqNvE0WqZB8qaKf3U7gnTJ6q+9W5lviW79b6h/o=";
  };

  sourceRoot = "${finalAttrs.src.name}/src/cpp";

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  cmakeFlags = [
    "-DFMT_DIR=${fmt}"
    "-DSPDLOG_DIR=${spdlog.src}"
    "-DPIPER_PHONEMIZE_DIR=${piper-phonemize}"
  ];

  buildInputs = [
    onnxruntime
    pcaudiolib