2024-06-05 15:53:02 +00:00
|
|
|
{
|
2024-09-19 14:19:46 +00:00
|
|
|
lib,
|
2024-06-05 15:53:02 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
# dependencies
|
2024-06-05 15:53:02 +00:00
|
|
|
huggingface-hub,
|
|
|
|
hyperpyyaml,
|
|
|
|
joblib,
|
|
|
|
numpy,
|
|
|
|
packaging,
|
|
|
|
sentencepiece,
|
|
|
|
scipy,
|
|
|
|
torch,
|
|
|
|
torchaudio,
|
|
|
|
tqdm,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "speechbrain";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.0.1";
|
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "speechbrain";
|
|
|
|
repo = "speechbrain";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-5ZMS1g74G4w83kNrXyt9IUsXe5uYS1qC+MwleQrjhTY=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2023-07-15 17:15:38 +00:00
|
|
|
huggingface-hub
|
|
|
|
hyperpyyaml
|
|
|
|
joblib
|
|
|
|
numpy
|
|
|
|
packaging
|
|
|
|
sentencepiece
|
|
|
|
scipy
|
|
|
|
torch
|
|
|
|
torchaudio
|
|
|
|
tqdm
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # requires sox backend
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "speechbrain" ];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "PyTorch-based Speech Toolkit";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://speechbrain.github.io";
|
|
|
|
changelog = "https://github.com/speechbrain/speechbrain/releases/tag/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|