diff options
author | davidak <davidak@users.noreply.github.com> | 2021-05-21 23:19:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 23:19:29 +0200 |
commit | 3ff0ef56664e7edbc6861fd0a7f52236ea7ada8a (patch) | |
tree | bf1fd3afc84dd3a4b5bfac5e948a1a28aa1bc887 /pkgs/tools | |
parent | b184f0b0b7f8b46948e49ad330773bc4972b55d3 (diff) | |
parent | 2abcc9b3f9df3b2ca8ab25ee3a700ebbfd1bf749 (diff) |
Merge pull request #121809 from rvolosatovs/init/stt
Deprecate deepspeech in favor of stt
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/audio/stt/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/audio/stt/default.nix b/pkgs/tools/audio/stt/default.nix new file mode 100644 index 0000000000000..7834f87a0517d --- /dev/null +++ b/pkgs/tools/audio/stt/default.nix @@ -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 ]; + }; +} |