2025-05-24 17:13:22 +02:00
|
|
|
{ lib, python312Packages, pkgs }:
|
|
|
|
|
with python312Packages;
|
2024-12-18 17:32:24 +01:00
|
|
|
let
|
2025-05-24 17:13:22 +02:00
|
|
|
# Maintained fork of the original TTS package
|
|
|
|
|
coqui-tts =
|
2024-12-18 17:32:24 +01:00
|
|
|
let
|
2025-05-24 17:13:22 +02:00
|
|
|
pname = "coqui_tts";
|
|
|
|
|
version = "0.26.2";
|
2024-12-18 17:32:24 +01:00
|
|
|
in
|
|
|
|
|
buildPythonPackage {
|
|
|
|
|
inherit pname version;
|
|
|
|
|
src = pkgs.fetchPypi {
|
|
|
|
|
inherit pname version;
|
2025-05-24 17:13:22 +02:00
|
|
|
sha256 = "sha256-DSD5W3Pl82hH0RxO0Vnme/2fozZlRmBRMbmKMRboNjc=";
|
2024-12-18 17:32:24 +01:00
|
|
|
};
|
|
|
|
|
doCheck = false;
|
2025-05-24 17:13:22 +02:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
|
hatchling
|
|
|
|
|
|
|
|
|
|
];
|
2024-12-18 17:32:24 +01:00
|
|
|
|
2024-12-18 18:41:25 +01:00
|
|
|
nativeBuildInputs = [ pkgs.espeak-ng ];
|
|
|
|
|
|
2024-12-18 17:32:24 +01:00
|
|
|
dependencies = [
|
|
|
|
|
cython
|
|
|
|
|
numpy
|
|
|
|
|
torch
|
|
|
|
|
torchaudio
|
|
|
|
|
coqpit
|
|
|
|
|
trainer
|
|
|
|
|
pysbd
|
|
|
|
|
pandas
|
|
|
|
|
matplotlib
|
|
|
|
|
anyascii
|
|
|
|
|
inflect
|
|
|
|
|
bangla
|
|
|
|
|
bnnumerizer
|
|
|
|
|
bnunicodenormalizer
|
|
|
|
|
gruut
|
|
|
|
|
jamo
|
|
|
|
|
jieba
|
|
|
|
|
pypinyin
|
2024-12-18 18:41:25 +01:00
|
|
|
pkgs.espeak
|
2025-05-24 17:13:22 +02:00
|
|
|
einops
|
|
|
|
|
encodec
|
|
|
|
|
librosa
|
|
|
|
|
monotonic-alignment-search
|
|
|
|
|
scipy
|
|
|
|
|
tqdm
|
|
|
|
|
transformers
|
2024-12-18 17:32:24 +01:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
in
|
|
|
|
|
buildPythonApplication {
|
|
|
|
|
pname = "mensa-tts";
|
|
|
|
|
version = "1.0";
|
|
|
|
|
pyproject = true;
|
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
|
setuptools
|
|
|
|
|
setuptools-scm
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
|
requests
|
2025-05-24 17:13:22 +02:00
|
|
|
coqui-tts
|
2024-12-18 17:32:24 +01:00
|
|
|
librosa
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Satnogs Demo Display";
|
|
|
|
|
homepage = "https://forgejo.zenerdio.de/sebastian/satnogs-demo-display";
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
};
|
|
|
|
|
}
|