From c5f3de74cad8fa425fd249689c8bbdd24421f9ab Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Mon, 26 Dec 2022 20:38:45 +0100 Subject: [PATCH] stt: 0.9.3 -> 1.4.0 Closes #193775 --- pkgs/tools/audio/stt/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/audio/stt/default.nix b/pkgs/tools/audio/stt/default.nix index 91e18f409a21..31256c191ecc 100644 --- a/pkgs/tools/audio/stt/default.nix +++ b/pkgs/tools/audio/stt/default.nix @@ -1,12 +1,12 @@ -{ stdenv, lib, fetchurl, autoPatchelfHook }: +{ stdenv, lib, fetchurl, autoPatchelfHook, bzip2, lzma }: stdenv.mkDerivation rec { pname = "stt"; - version = "0.9.3"; + version = "1.4.0"; src = fetchurl { - url = "https://github.com/coqui-ai/STT/releases/download/v${version}/native_client.tf.Linux.tar.xz"; - sha256 = "0axwys8vis4f0m7d1i2r3dfqlc8p3yj2nisvc7pdi5qs741xgy8w"; + url = "https://github.com/coqui-ai/STT/releases/download/v${version}/native_client.tflite.Linux.tar.xz"; + hash = "sha256-RVYc64pLYumQoVUEFZdxfUUaBMozaqgD0h/yiMaWN90="; }; setSourceRoot = "sourceRoot=`pwd`"; @@ -15,12 +15,16 @@ stdenv.mkDerivation rec { ]; buildInputs = [ + bzip2 + lzma stdenv.cc.cc.lib ]; installPhase = '' install -D stt $out/bin/stt install -D coqui-stt.h $out/include/coqui-stt.h + install -D libkenlm.so $out/lib/libkenlm.so + install -D libsox.so.3 $out/lib/libsox.so.3 install -D libstt.so $out/lib/libstt.so '';