piper-tts: 0.0.2 -> 1.2.0
https://github.com/rhasspy/piper/releases/tag/v1.0.0 https://github.com/rhasspy/piper/releases/tag/v1.1.0 https://github.com/rhasspy/piper/releases/tag/v1.2.0
This commit is contained in:
parent
faa7d81bd1
commit
1fd038e11b
2 changed files with 20 additions and 14 deletions
|
@ -10,6 +10,7 @@
|
|||
, librosa
|
||||
, numpy
|
||||
, onnxruntime
|
||||
, piper-phonemize
|
||||
, pytorch-lightning
|
||||
, torch
|
||||
}:
|
||||
|
@ -48,6 +49,7 @@ buildPythonPackage {
|
|||
librosa
|
||||
numpy
|
||||
onnxruntime
|
||||
piper-phonemize
|
||||
pytorch-lightning
|
||||
torch
|
||||
];
|
||||
|
|
|
@ -1,17 +1,24 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
|
||||
# build time
|
||||
, cmake
|
||||
, pkg-config
|
||||
, espeak-ng
|
||||
|
||||
# runtime
|
||||
, onnxruntime
|
||||
, pcaudiolib
|
||||
, piper-phonemize
|
||||
, spdlog
|
||||
|
||||
# tests
|
||||
, piper-train
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "piper";
|
||||
version = "0.0.2";
|
||||
version = "1.2.0";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit pname version;
|
||||
|
@ -19,30 +26,27 @@ stdenv.mkDerivation {
|
|||
src = fetchFromGitHub {
|
||||
owner = "rhasspy";
|
||||
repo = "piper";
|
||||
rev = "70afec58bc131010c8993c154ff02a78d1e7b8b0";
|
||||
hash = "sha256-zTW7RGcV8Hh7G6Braf27F/8s7nNjAqagp7tmrKO10BY=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-6WNWqJt0PO86vnf+3iHaRRg2KwBOEj4aicmB+P2phlk=";
|
||||
};
|
||||
|
||||
sourceRoot = "source/src/cpp";
|
||||
|
||||
patches = [
|
||||
./fix-compilation-with-newer-onnxruntime.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace "/usr/local/include/onnxruntime" "${onnxruntime}"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
espeak-ng
|
||||
onnxruntime
|
||||
pcaudiolib
|
||||
piper-phonemize
|
||||
piper-phonemize.espeak-ng
|
||||
spdlog
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = builtins.toString [
|
||||
"-isystem ${lib.getDev piper-phonemize}/include/piper-phonemize"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
|
|
Loading…
Reference in a new issue