diff options
author | Roman Volosatovs <rvolosatovs@riseup.net> | 2021-05-20 17:52:52 +0200 |
---|---|---|
committer | Roman Volosatovs <rvolosatovs@riseup.net> | 2021-05-20 17:52:52 +0200 |
commit | 33b0e0d7920378f2d83dfe490eef0dabcea7b5bb (patch) | |
tree | ba4a535285eded2e40e25eaa37a9dcc719f972b5 /pkgs/tools | |
parent | 520b4a84967bc9290da418ecf7e5f6d8eb159e74 (diff) |
deepspeech: rename to 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..eddeea6eb5428 --- /dev/null +++ b/pkgs/tools/audio/stt/default.nix @@ -0,0 +1,34 @@ +{ 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 ]; + }; +} |