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
This commit is contained in:
Martin Weinelt 2023-10-24 00:23:47 +02:00 committed by GitHub
commit 0a0f3f5de2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 10 deletions

View File

@ -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

View File

@ -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