pocket-tts: init at 1.0.1 (#479862)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{ python3Packages }: with python3Packages; toPythonApplication pocket-tts
|
||||
@@ -0,0 +1,78 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
hatchling,
|
||||
|
||||
# dependencies
|
||||
beartype,
|
||||
einops,
|
||||
fastapi,
|
||||
huggingface-hub,
|
||||
numpy,
|
||||
pydantic,
|
||||
python-multipart,
|
||||
requests,
|
||||
safetensors,
|
||||
scipy,
|
||||
sentencepiece,
|
||||
torch,
|
||||
typer,
|
||||
typing-extensions,
|
||||
uvicorn,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "pocket-tts";
|
||||
version = "1.0.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kyutai-labs";
|
||||
repo = "pocket-tts";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-VFLpUsHnQYSr5RgNKJOX1TD30o1A8rG4cs2VeZWriaU=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"beartype"
|
||||
"python-multipart"
|
||||
];
|
||||
dependencies = [
|
||||
beartype
|
||||
einops
|
||||
fastapi
|
||||
huggingface-hub
|
||||
numpy
|
||||
pydantic
|
||||
python-multipart
|
||||
requests
|
||||
safetensors
|
||||
scipy
|
||||
sentencepiece
|
||||
torch
|
||||
typer
|
||||
typing-extensions
|
||||
uvicorn
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pocket_tts" ];
|
||||
|
||||
# All tests are failing as the model cannot be downloaded from the sandbox
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Lightweight text-to-speech (TTS) application designed to run efficiently on CPUs";
|
||||
homepage = "https://github.com/kyutai-labs/pocket-tts";
|
||||
changelog = "https://github.com/kyutai-labs/pocket-tts/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||
mainProgram = "pocket-tts";
|
||||
};
|
||||
})
|
||||
@@ -12402,6 +12402,8 @@ self: super: with self; {
|
||||
|
||||
pocket = callPackage ../development/python-modules/pocket { };
|
||||
|
||||
pocket-tts = callPackage ../development/python-modules/pocket-tts { };
|
||||
|
||||
pocketsphinx = callPackage ../development/python-modules/pocketsphinx {
|
||||
inherit (pkgs) pocketsphinx;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user