Merge pull request #18306 from aske/speech
Speech synthesizer improvements
This commit is contained in:
commit
845cb949fc
@ -40,6 +40,7 @@
|
|||||||
arobyn = "Alexei Robyn <shados@shados.net>";
|
arobyn = "Alexei Robyn <shados@shados.net>";
|
||||||
artuuge = "Artur E. Ruuge <artuuge@gmail.com>";
|
artuuge = "Artur E. Ruuge <artuuge@gmail.com>";
|
||||||
ashalkhakov = "Artyom Shalkhakov <artyom.shalkhakov@gmail.com>";
|
ashalkhakov = "Artyom Shalkhakov <artyom.shalkhakov@gmail.com>";
|
||||||
|
aske = "Kirill Boltaev <aske@fmap.me>";
|
||||||
asppsa = "Alastair Pharo <asppsa@gmail.com>";
|
asppsa = "Alastair Pharo <asppsa@gmail.com>";
|
||||||
astsmtl = "Alexander Tsamutali <astsmtl@yandex.ru>";
|
astsmtl = "Alexander Tsamutali <astsmtl@yandex.ru>";
|
||||||
aszlig = "aszlig <aszlig@redmoonstudios.org>";
|
aszlig = "aszlig <aszlig@redmoonstudios.org>";
|
||||||
|
35
pkgs/applications/audio/espeak-ng/default.nix
Normal file
35
pkgs/applications/audio/espeak-ng/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ stdenv, lib, fetchFromGitHub, autoconf, automake, which, libtool, pkgconfig
|
||||||
|
, ronn
|
||||||
|
, pcaudiolibSupport ? true, pcaudiolib
|
||||||
|
, sonicSupport ? true, sonic }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "espeak-ng-${version}";
|
||||||
|
version = "2016-08-28";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "espeak-ng";
|
||||||
|
repo = "espeak-ng";
|
||||||
|
rev = "b784e77c5708b61feed780d8f1113c4c8eb92200";
|
||||||
|
sha256 = "1whix4mv0qvsvifgpwwbdzhv621as3rxpn9ijqc2683h6k8pvcfk";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoconf automake which libtool pkgconfig ronn ];
|
||||||
|
|
||||||
|
buildInputs = lib.optional pcaudiolibSupport pcaudiolib
|
||||||
|
++ lib.optional sonicSupport sonic;
|
||||||
|
|
||||||
|
preConfigure = "./autogen.sh";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
patchelf --set-rpath "$(patchelf --print-rpath $out/bin/espeak-ng)" $out/bin/speak-ng
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Open source speech synthesizer that supports over 70 languages, based on eSpeak";
|
||||||
|
homepage = "https://github.com/espeak-ng/espeak-ng";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
maintainers = with maintainers; [ aske ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
29
pkgs/development/libraries/pcaudiolib/default.nix
Normal file
29
pkgs/development/libraries/pcaudiolib/default.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ stdenv, lib, fetchFromGitHub, autoconf, automake, which, libtool, pkgconfig,
|
||||||
|
alsaLib, portaudio,
|
||||||
|
pulseaudioSupport ? true, libpulseaudio }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "pcaudiolib-${version}";
|
||||||
|
version = "2016-07-19";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "rhdunn";
|
||||||
|
repo = "pcaudiolib";
|
||||||
|
rev = "4f836ea909bdaa8a6e0e89c587efc745b546b459";
|
||||||
|
sha256 = "0z99nh4ibb9md2cd21762n1dmv6jk988785s1cxd8lsy4hp4pwfa";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoconf automake which libtool pkgconfig ];
|
||||||
|
|
||||||
|
buildInputs = [ portaudio alsaLib ] ++ lib.optional pulseaudioSupport libpulseaudio;
|
||||||
|
|
||||||
|
preConfigure = "./autogen.sh";
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Provides a C API to different audio devices";
|
||||||
|
homepage = "https://github.com/rhdunn/pcaudiolib";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
maintainers = with maintainers; [ aske ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
25
pkgs/development/libraries/sonic/default.nix
Normal file
25
pkgs/development/libraries/sonic/default.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{ stdenv, fetchFromGitHub }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "sonic-${version}";
|
||||||
|
version = "2016-03-01";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "waywardgeek";
|
||||||
|
repo = "sonic";
|
||||||
|
rev = "71bdf26c55716a45af50c667c0335a9519e952dd";
|
||||||
|
sha256 = "1kcl8fdf92kafmfhvyjal5gvkn99brkjyzbi9gw3rd5b30m3xz2b";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i "s,^PREFIX=.*,PREFIX=$out," Makefile
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Simple library to speed up or slow down speech";
|
||||||
|
homepage = "https://github.com/waywardgeek/sonic";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ aske ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -6,11 +6,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "speech-dispatcher-${version}";
|
name = "speech-dispatcher-${version}";
|
||||||
version = "0.8.3";
|
version = "0.8.5";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.freebsoft.org/pub/projects/speechd/${name}.tar.gz";
|
url = "http://www.freebsoft.org/pub/projects/speechd/${name}.tar.gz";
|
||||||
sha256 = "0kqy7z4l59n2anc7xn588w4rkacig1hajx8c53qrh90ypar978ln";
|
sha256 = "18jlxnhlahyi6njc6l6576hfvmzivjjgfjyd2n7vvrvx9inphjrb";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ intltool libtool glib dotconf libsndfile libao python3Packages.python ]
|
buildInputs = [ intltool libtool glib dotconf libsndfile libao python3Packages.python ]
|
||||||
|
@ -9055,6 +9055,10 @@ in
|
|||||||
|
|
||||||
pangoxsl = callPackage ../development/libraries/pangoxsl { };
|
pangoxsl = callPackage ../development/libraries/pangoxsl { };
|
||||||
|
|
||||||
|
pcaudiolib = callPackage ../development/libraries/pcaudiolib {
|
||||||
|
pulseaudioSupport = config.pulseaudio or true;
|
||||||
|
};
|
||||||
|
|
||||||
pcg_c = callPackage ../development/libraries/pcg-c { };
|
pcg_c = callPackage ../development/libraries/pcg-c { };
|
||||||
|
|
||||||
pcl = callPackage ../development/libraries/pcl {
|
pcl = callPackage ../development/libraries/pcl {
|
||||||
@ -9454,6 +9458,8 @@ in
|
|||||||
|
|
||||||
sofia_sip = callPackage ../development/libraries/sofia-sip { };
|
sofia_sip = callPackage ../development/libraries/sofia-sip { };
|
||||||
|
|
||||||
|
sonic = callPackage ../development/libraries/sonic { };
|
||||||
|
|
||||||
soprano = callPackage ../development/libraries/soprano { };
|
soprano = callPackage ../development/libraries/soprano { };
|
||||||
|
|
||||||
soqt = callPackage ../development/libraries/soqt { };
|
soqt = callPackage ../development/libraries/soqt { };
|
||||||
@ -13023,7 +13029,10 @@ in
|
|||||||
pythonPackages = python3Packages;
|
pythonPackages = python3Packages;
|
||||||
};
|
};
|
||||||
|
|
||||||
espeak = callPackage ../applications/audio/espeak { };
|
espeak-classic = callPackage ../applications/audio/espeak { };
|
||||||
|
|
||||||
|
espeak-ng = callPackage ../applications/audio/espeak-ng { };
|
||||||
|
espeak = self.espeak-ng;
|
||||||
|
|
||||||
espeakedit = callPackage ../applications/audio/espeak/edit.nix { };
|
espeakedit = callPackage ../applications/audio/espeak/edit.nix { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user