66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{ lib, python311Packages, pkgs }:
|
|
with python311Packages;
|
|
let
|
|
# Stripped down version of the tts package (original is broken and needs cuda)
|
|
tts =
|
|
let
|
|
pname = "TTS";
|
|
version = "0.22.0";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
src = pkgs.fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-uREZ2n/yrns9rnMo7fmvTbO0jEDrTOFdEe2PXum9cIY=";
|
|
};
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ pkgs.espeak-ng ];
|
|
|
|
dependencies = [
|
|
cython
|
|
numpy
|
|
torch
|
|
torchaudio
|
|
coqpit
|
|
trainer
|
|
pysbd
|
|
pandas
|
|
matplotlib
|
|
anyascii
|
|
inflect
|
|
bangla
|
|
bnnumerizer
|
|
bnunicodenormalizer
|
|
gruut
|
|
jamo
|
|
jieba
|
|
pypinyin
|
|
pkgs.espeak
|
|
];
|
|
};
|
|
in
|
|
buildPythonApplication {
|
|
pname = "mensa-tts";
|
|
version = "1.0";
|
|
pyproject = true;
|
|
src = ./.;
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
requests
|
|
tts
|
|
librosa
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Satnogs Demo Display";
|
|
homepage = "https://forgejo.zenerdio.de/sebastian/satnogs-demo-display";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|