2021-03-24 00:12:59 +01:00
|
|
|
{ stdenv, lib, fetchurl, autoPatchelfHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-05 16:43:23 +02:00
|
|
|
pname = "stt";
|
2021-03-24 00:12:59 +01:00
|
|
|
version = "0.9.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-05 16:43:23 +02:00
|
|
|
url = "https://github.com/coqui-ai/STT/releases/download/v${version}/native_client.tf.Linux.tar.xz";
|
|
|
|
sha256 = "0axwys8vis4f0m7d1i2r3dfqlc8p3yj2nisvc7pdi5qs741xgy8w";
|
2021-03-24 00:12:59 +01:00
|
|
|
};
|
|
|
|
setSourceRoot = "sourceRoot=`pwd`";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-05-05 16:43:23 +02:00
|
|
|
install -D stt $out/bin/stt
|
|
|
|
install -D coqui-stt.h $out/include/coqui-stt.h
|
|
|
|
install -D libstt.so $out/lib/libstt.so
|
2021-03-24 00:12:59 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-11-10 11:37:56 +01:00
|
|
|
homepage = "https://github.com/coqui-ai/STT";
|
2021-05-05 16:43:23 +02:00
|
|
|
description = "Deep learning toolkit for Speech-to-Text, battle-tested in research and production";
|
2021-03-24 00:12:59 +01:00
|
|
|
license = licenses.mpl20;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
|
|
|
};
|
|
|
|
}
|