2024-09-19 14:19:46 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchurl, cmake }:
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
dataVersion = "191005_v1.0";
|
|
|
|
data = fetchurl {
|
|
|
|
url = "http://rowetel.com/downloads/deep/lpcnet_${dataVersion}.tgz";
|
2022-11-02 22:02:43 +00:00
|
|
|
sha256 = "sha256-UJRAkkdR/dh/+qVoPuPd3ZN69cgzuRBMzOZdUWFJJsg=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
2022-11-02 22:02:43 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2021-10-28 06:52:43 +00:00
|
|
|
pname = "lpcnetfreedv";
|
2022-11-02 22:02:43 +00:00
|
|
|
version = "unstable-2022-08-22";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "drowe67";
|
|
|
|
repo = "LPCNet";
|
2022-11-02 22:02:43 +00:00
|
|
|
rev = "67a6eb74d0c07faddcdce199856862cc45779d25";
|
|
|
|
sha256 = "sha256-eHYZoDgoZBuuLvQn9X7H/zmK5onOAniOgY1/8RVn8gk=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
mkdir build
|
|
|
|
ln -s ${data} build/lpcnet_${dataVersion}.tgz
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://freedv.org/";
|
|
|
|
description = "Experimental Neural Net speech coding for FreeDV";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ mvs ];
|
2022-03-30 09:31:56 +00:00
|
|
|
platforms = platforms.all;
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
}
|