From 33b0e0d7920378f2d83dfe490eef0dabcea7b5bb Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Thu, 20 May 2021 17:52:52 +0200 Subject: [PATCH 1/2] deepspeech: rename to stt --- pkgs/{misc/deepspeech => tools/audio/stt}/default.nix | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename pkgs/{misc/deepspeech => tools/audio/stt}/default.nix (100%) diff --git a/pkgs/misc/deepspeech/default.nix b/pkgs/tools/audio/stt/default.nix similarity index 100% rename from pkgs/misc/deepspeech/default.nix rename to pkgs/tools/audio/stt/default.nix From 2abcc9b3f9df3b2ca8ab25ee3a700ebbfd1bf749 Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Wed, 5 May 2021 16:43:23 +0200 Subject: [PATCH 2/2] deepspeech,stt: deprecate deepspeech in favor of stt Mozilla fired the team and they founded a new company to continue their work https://github.com/NixOS/nixpkgs/issues/119496 --- pkgs/tools/audio/stt/default.nix | 16 ++++++++-------- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 4 ++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/audio/stt/default.nix b/pkgs/tools/audio/stt/default.nix index eddeea6eb542..7834f87a0517 100644 --- a/pkgs/tools/audio/stt/default.nix +++ b/pkgs/tools/audio/stt/default.nix @@ -1,12 +1,12 @@ { stdenv, lib, fetchurl, autoPatchelfHook }: stdenv.mkDerivation rec { - pname = "deepspeech"; + pname = "stt"; 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"; + url = "https://github.com/coqui-ai/STT/releases/download/v${version}/native_client.tf.Linux.tar.xz"; + sha256 = "0axwys8vis4f0m7d1i2r3dfqlc8p3yj2nisvc7pdi5qs741xgy8w"; }; setSourceRoot = "sourceRoot=`pwd`"; @@ -19,14 +19,14 @@ stdenv.mkDerivation rec { ]; installPhase = '' - install -D deepspeech $out/bin/deepspeech - install -D deepspeech.h $out/include/deepspeech.h - install -D libdeepspeech.so $out/lib/libdeepspeech.so + 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/mozilla/DeepSpeech; - description = "Open source embedded (offline, on-device) speech-to-text engine, which can run in real time on broad range of devices"; + 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 ]; diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index a275fbd80575..4c2492f5533b 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -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 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a332d6dbed54..332614ea6439 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { @@ -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;