Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate deepspeech in favor of stt #121809

Merged
merged 2 commits into from
May 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions pkgs/misc/deepspeech/default.nix

This file was deleted.

34 changes: 34 additions & 0 deletions pkgs/tools/audio/stt/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ 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 change: 1 addition & 0 deletions pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ mapAliases ({
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
Expand Down
4 changes: 2 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28568,6 +28568,8 @@ in

streamlit = python3Packages.callPackage ../applications/science/machine-learning/streamlit { };

stt = callPackage ../tools/audio/stt { };

stuntrally = callPackage ../games/stuntrally {
ogre = ogre1_9;
mygui = mygui.override {
Expand Down Expand Up @@ -30066,8 +30068,6 @@ in

dbus-map = callPackage ../tools/misc/dbus-map { };

deepspeech = callPackage ../misc/deepspeech { };

dell-530cdn = callPackage ../misc/drivers/dell-530cdn {};

demjson = with python3Packages; toPythonApplication demjson;
Expand Down