blob: 6c8c363e75ec892b6b4587a2232d5cb682e4f312 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# dependencies
einops,
numpy,
torch-bin,
torchaudio-bin,
}:
buildPythonPackage rec {
pname = "encodec";
version = "0.1.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "facebookresearch";
repo = "encodec";
rev = "v${version}";
hash = "sha256-+iJZkX1HoyuNFu9VRxMO6aAzNQybkH9lrQJ5Ao9+/CY=";
};
propagatedBuildInputs = [
einops
numpy
torch-bin
torchaudio-bin
];
pythonImportsCheck = [ "encodec" ];
# requires model data from the internet
doCheck = false;
meta = with lib; {
description = "State-of-the-art deep learning based audio codec supporting both mono 24 kHz audio and stereo 48 kHz audio";
homepage = "https://github.com/facebookresearch/encodec";
changelog = "https://github.com/facebookresearch/encodec/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = teams.tts.members;
};
}
|