Merge pull request #121809 from rvolosatovs/init/stt

Deprecate deepspeech in favor of stt

davidak 3ff0ef56 b184f0b0

Changed files
+37 -36
pkgs
misc
deepspeech
tools
audio
top-level
-34
pkgs/misc/deepspeech/default.nix
···
-
{ stdenv, lib, fetchurl, autoPatchelfHook }:
-
-
stdenv.mkDerivation rec {
-
pname = "deepspeech";
-
version = "0.9.3";
-
-
src = fetchurl {
-
url = "https://github.com/mozilla/DeepSpeech/releases/download/v${version}/native_client.amd64.cpu.linux.tar.xz";
-
sha256 = "1qy2gspprcxi76jk06ljp028xl0wkk1m3mqaxyf5qbhhfbvvpfap";
-
};
-
setSourceRoot = "sourceRoot=`pwd`";
-
-
nativeBuildInputs = [
-
autoPatchelfHook
-
];
-
-
buildInputs = [
-
stdenv.cc.cc.lib
-
];
-
-
installPhase = ''
-
install -D deepspeech $out/bin/deepspeech
-
install -D deepspeech.h $out/include/deepspeech.h
-
install -D libdeepspeech.so $out/lib/libdeepspeech.so
-
'';
-
-
meta = with lib; {
-
homepage = https://github.com/mozilla/DeepSpeech;
-
description = "Open source embedded (offline, on-device) speech-to-text engine, which can run in real time on broad range of devices";
-
license = licenses.mpl20;
-
platforms = [ "x86_64-linux" ];
-
maintainers = with maintainers; [ rvolosatovs ];
-
};
-
}
+34
pkgs/tools/audio/stt/default.nix
···
+
{ stdenv, lib, fetchurl, autoPatchelfHook }:
+
+
stdenv.mkDerivation rec {
+
pname = "stt";
+
version = "0.9.3";
+
+
src = fetchurl {
+
url = "https://github.com/coqui-ai/STT/releases/download/v${version}/native_client.tf.Linux.tar.xz";
+
sha256 = "0axwys8vis4f0m7d1i2r3dfqlc8p3yj2nisvc7pdi5qs741xgy8w";
+
};
+
setSourceRoot = "sourceRoot=`pwd`";
+
+
nativeBuildInputs = [
+
autoPatchelfHook
+
];
+
+
buildInputs = [
+
stdenv.cc.cc.lib
+
];
+
+
installPhase = ''
+
install -D stt $out/bin/stt
+
install -D coqui-stt.h $out/include/coqui-stt.h
+
install -D libstt.so $out/lib/libstt.so
+
'';
+
+
meta = with lib; {
+
homepage = https://github.com/coqui-ai/STT;
+
description = "Deep learning toolkit for Speech-to-Text, battle-tested in research and production";
+
license = licenses.mpl20;
+
platforms = [ "x86_64-linux" ];
+
maintainers = with maintainers; [ rvolosatovs ];
+
};
+
}
+1
pkgs/top-level/aliases.nix
···
deadpixi-sam = deadpixi-sam-unstable;
debian_devscripts = debian-devscripts; # added 2016-03-23
deepin = throw "deepin was a work in progress and it has been canceled and removed https://github.com/NixOS/nixpkgs/issues/94870"; # added 2020-08-31
+
deepspeech = throw "deepspeech was removed in favor of stt. https://github.com/NixOS/nixpkgs/issues/119496"; # added 2021-05-05
desktop_file_utils = desktop-file-utils; # added 2018-02-25
devicemapper = lvm2; # added 2018-04-25
digikam5 = digikam; # added 2017-02-18
+2 -2
pkgs/top-level/all-packages.nix
···
streamlit = python3Packages.callPackage ../applications/science/machine-learning/streamlit { };
+
stt = callPackage ../tools/audio/stt { };
+
stuntrally = callPackage ../games/stuntrally {
ogre = ogre1_9;
mygui = mygui.override {
···
});
dbus-map = callPackage ../tools/misc/dbus-map { };
-
-
deepspeech = callPackage ../misc/deepspeech { };
dell-530cdn = callPackage ../misc/drivers/dell-530cdn {};