parent
3d957ef33b
commit
33207688a3
@ -1,48 +0,0 @@ |
||||
{ lib, stdenv |
||||
, fetchurl |
||||
, sphinxbase |
||||
, pkg-config |
||||
, python27 # >= 2.6 |
||||
, swig2 # 2.0 |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "pocketsphinx"; |
||||
version = "5prealpha"; |
||||
|
||||
src = fetchurl { |
||||
url = "mirror://sourceforge/cmusphinx/pocketsphinx-${version}.tar.gz"; |
||||
sha256 = "1n9yazzdgvpqgnfzsbl96ch9cirayh74jmpjf7svs4i7grabanzg"; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ sphinxbase ]; |
||||
|
||||
nativeBuildInputs = [ pkg-config ]; |
||||
buildInputs = [ python27 swig2 ]; |
||||
|
||||
meta = { |
||||
description = "Voice recognition library written in C"; |
||||
homepage = "http://cmusphinx.sourceforge.net"; |
||||
license = lib.licenses.free; |
||||
platforms = lib.platforms.linux; |
||||
}; |
||||
} |
||||
|
||||
/* Example usage: |
||||
|
||||
|
||||
1. |
||||
|
||||
$ cat << EOF > vocabulary.txt |
||||
oh mighty computer /1e-40/ |
||||
hello world /1e-30/ |
||||
EOF |
||||
|
||||
2. |
||||
|
||||
$ pocketsphinx_continuous -inmic yes -kws vocabulary.txt 2> /dev/null |
||||
# after you say "hello world": |
||||
hello world |
||||
... |
||||
|
||||
*/ |
Loading…
Reference in new issue