Skip to content

Commit

Permalink
tts: init at unstable-2020-06-11
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Jun 12, 2020
1 parent faa9100 commit 95a454a
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
46 changes: 46 additions & 0 deletions pkgs/development/python-modules/tts/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ lib, pkgs, python3Packages, fetchFromGitHub }:

python3Packages.buildPythonApplication rec {
pname = "tts";
version = "unstable-2020-06-06";

src = fetchFromGitHub {
owner = "mozilla";
repo = "TTS";
rev = "1d3c0c88467d01e114063b54279693b464ac656a";
sha256 = "1xjwlr0sw8l7rnp0acbs1v3s2l21cl12mxfhx2xk1nwi7v0brb21";
};

patches = [
./loosen-deps.patch
];

propagatedBuildInputs = with python3Packages; [
matplotlib
scipy
pytorch
flask
attrdict
bokeh
soundfile
tqdm
librosa
unidecode
] ++ (with pkgs; [
phonemizer
tensorboardx
]);

preBuild = ''
export HOME=$TMPDIR
'';

doCheck = false;

meta = with lib; {
homepage = "https://github.com/mozilla/TTS";
description = "Deep learning for Text to Speech";
license = licenses.mpl20;
maintainers = with maintainers; [ hexa ];
};
}
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/tts/loosen-deps.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
diff --git a/requirements.txt b/requirements.txt
index 862cb22..403b702 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -11,4 +11,4 @@ scipy
tqdm
soundfile
phonemizer
-bokeh==1.4.0
+bokeh
diff --git a/setup.py b/setup.py
index a784056..3c1d96d 100644
--- a/setup.py
+++ b/setup.py
@@ -94,8 +94,8 @@ setup(
"scipy>=0.19.0",
"torch>=1.5",
"numpy>=1.16.0",
- "librosa==0.6.2",
- "unidecode==0.4.20",
+ "librosa>=0.6.2",
+ "unidecode>=0.4.20",
"attrdict",
"tensorboardX",
"matplotlib",
@@ -103,7 +103,7 @@ setup(
"flask",
# "lws",
"tqdm",
- "bokeh==1.4.0",
+ "bokeh",
"soundfile",
"phonemizer @ https://github.com/bootphon/phonemizer/tarball/master",
],
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24242,6 +24242,8 @@ in

tremulous = callPackage ../games/tremulous { };

tts = callPackage ../applications/audio/tts { };

tuxpaint = callPackage ../games/tuxpaint { };

tuxtype = callPackage ../games/tuxtype { };
Expand Down

0 comments on commit 95a454a

Please sign in to comment.