summaryrefslogtreecommitdiff
path: root/audio/sphinx3
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2014-09-05 10:13:20 +0000
committerfhajny <fhajny@pkgsrc.org>2014-09-05 10:13:20 +0000
commitdf4139cf7bd1564c557b75061469085ff1034446 (patch)
tree7caec3e2e2e54f2c6d9c207a61d7a4dfd7fd56bd /audio/sphinx3
parent9ae3f2fe432fc9585bb635e314456ab639d254c0 (diff)
downloadpkgsrc-df4139cf7bd1564c557b75061469085ff1034446.tar.gz
Import the CMUSphinx toolkit as sphinxbase, sphinx3, sphinxtrain
and pocketsphinx. CMUSphinx toolkit is a leading speech recognition toolkit with various tools used to build speech applications. CMU Sphinx toolkit has a number of packages for different tasks and applications.
Diffstat (limited to 'audio/sphinx3')
-rw-r--r--audio/sphinx3/DESCR2
-rw-r--r--audio/sphinx3/Makefile19
-rw-r--r--audio/sphinx3/PLIST202
-rw-r--r--audio/sphinx3/distinfo8
-rw-r--r--audio/sphinx3/patches/patch-src_libs3decoder_libcfg_s3__cfg__convert.c13
-rw-r--r--audio/sphinx3/patches/patch-src_libs3decoder_libsearch_fsg__history.c15
-rw-r--r--audio/sphinx3/patches/patch-src_libs3decoder_libsearch_vithist.c14
7 files changed, 273 insertions, 0 deletions
diff --git a/audio/sphinx3/DESCR b/audio/sphinx3/DESCR
new file mode 100644
index 00000000000..e44e44d242b
--- /dev/null
+++ b/audio/sphinx3/DESCR
@@ -0,0 +1,2 @@
+Sphinx 3 is a frontend to sphinxbase, a large-vocabulary,
+speaker-independent, continuous speech recognition engine.
diff --git a/audio/sphinx3/Makefile b/audio/sphinx3/Makefile
new file mode 100644
index 00000000000..48750528c72
--- /dev/null
+++ b/audio/sphinx3/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2014/09/05 10:13:20 fhajny Exp $
+
+DISTNAME= sphinx3-0.8
+CATEGORIES= audio
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cmusphinx/}
+
+MAINTAINER= filip@joyent.com
+HOMEPAGE= http://cmusphinx.sourceforge.net/
+COMMENT= CMUSphinx speech recognition frontend
+LICENSE= 2-clause-bsd
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+
+PKGCONFIG_OVERRIDE+= sphinx3.pc.in
+
+.include "../../audio/sphinxbase/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/sphinx3/PLIST b/audio/sphinx3/PLIST
new file mode 100644
index 00000000000..16cd57147cf
--- /dev/null
+++ b/audio/sphinx3/PLIST
@@ -0,0 +1,202 @@
+@comment $NetBSD: PLIST,v 1.1 2014/09/05 10:13:20 fhajny Exp $
+bin/sphinx3-simple
+bin/sphinx3_align
+bin/sphinx3_astar
+bin/sphinx3_cfg2fsg
+bin/sphinx3_conf
+bin/sphinx3_continuous
+bin/sphinx3_dag
+bin/sphinx3_decode
+bin/sphinx3_dp
+bin/sphinx3_ep
+bin/sphinx3_gausubvq
+bin/sphinx3_livedecode
+bin/sphinx3_livepretend
+bin/sphinx3_lm_convert
+include/sphinx3/adaptor.h
+include/sphinx3/approx_cont_mgau.h
+include/sphinx3/ascr.h
+include/sphinx3/astar.h
+include/sphinx3/blkarray_list.h
+include/sphinx3/cb2mllr_io.h
+include/sphinx3/classifier.h
+include/sphinx3/classify.h
+include/sphinx3/cmdln_macro.h
+include/sphinx3/confidence.h
+include/sphinx3/cont_mgau.h
+include/sphinx3/corpus.h
+include/sphinx3/ctxt_table.h
+include/sphinx3/dag.h
+include/sphinx3/dict.h
+include/sphinx3/dict2pid.h
+include/sphinx3/encoding.h
+include/sphinx3/endptr.h
+include/sphinx3/fast_algo_struct.h
+include/sphinx3/fillpen.h
+include/sphinx3/fsg.h
+include/sphinx3/fsg_history.h
+include/sphinx3/fsg_lextree.h
+include/sphinx3/fsg_psubtree.h
+include/sphinx3/fsg_search.h
+include/sphinx3/gmm_wrap.h
+include/sphinx3/gs.h
+include/sphinx3/hmm.h
+include/sphinx3/interp.h
+include/sphinx3/kb.h
+include/sphinx3/kbcore.h
+include/sphinx3/kdtree.h
+include/sphinx3/lextree.h
+include/sphinx3/lm.h
+include/sphinx3/lmclass.h
+include/sphinx3/logs3.h
+include/sphinx3/lts.h
+include/sphinx3/mdef.h
+include/sphinx3/misc.h
+include/sphinx3/mllr.h
+include/sphinx3/ms_gauden.h
+include/sphinx3/ms_mgau.h
+include/sphinx3/ms_mllr.h
+include/sphinx3/ms_senone.h
+include/sphinx3/s2_semi_mgau.h
+include/sphinx3/s3_arraylist.h
+include/sphinx3/s3_cfg.h
+include/sphinx3/s3_decode.h
+include/sphinx3/s3_endpointer.h
+include/sphinx3/s3types.h
+include/sphinx3/search.h
+include/sphinx3/sort.h
+include/sphinx3/sphinx3_export.h
+include/sphinx3/srch.h
+include/sphinx3/srch_allphone.h
+include/sphinx3/srch_debug.h
+include/sphinx3/srch_do_nothing.h
+include/sphinx3/srch_flat_fwd.h
+include/sphinx3/srch_fsg.h
+include/sphinx3/srch_output.h
+include/sphinx3/srch_time_switch_tree.h
+include/sphinx3/srch_word_switch_tree.h
+include/sphinx3/stat.h
+include/sphinx3/subvq.h
+include/sphinx3/tmat.h
+include/sphinx3/utt.h
+include/sphinx3/vector.h
+include/sphinx3/vithist.h
+include/sphinx3/whmm.h
+include/sphinx3/wid.h
+include/sphinx3/word_fsg.h
+include/sphinx3/word_graph.h
+include/sphinx3/word_ugprob.h
+lib/libs3decoder.la
+lib/pkgconfig/sphinx3.pc
+share/sphinx3/doc/BN_AM_HUB96-97.doc
+share/sphinx3/doc/BN_AM_HUB96-97.htm
+share/sphinx3/doc/cmdhelp.txt
+share/sphinx3/doc/doxygen.cfg
+share/sphinx3/doc/doxygen.main
+share/sphinx3/doc/index.html
+share/sphinx3/doc/models.html
+share/sphinx3/doc/rarrow.gif
+share/sphinx3/doc/s3-2.htm
+share/sphinx3/doc/s3-2.pdf
+share/sphinx3/doc/s3-2.ppt
+share/sphinx3/doc/s3-4.pdf
+share/sphinx3/doc/s3-4.ppt
+share/sphinx3/doc/s3-5.ppt
+share/sphinx3/doc/s3-6.ppt
+share/sphinx3/doc/s3_codewalk.html
+share/sphinx3/doc/s3_description.html
+share/sphinx3/doc/s3_fe_spec.pdf
+share/sphinx3/doc/s3_overview.html
+share/sphinx3/doc/sphinx3.3-6.ppt
+share/sphinx3/doc/sphinx3.4.code.tracing
+share/sphinx3/doc/sphinx3.5_refactoring.note
+share/sphinx3/doc/sphinxman_FAQ.html
+share/sphinx3/doc/sphinxman_manual.html
+share/sphinx3/doc/sphinxman_misc.html
+share/sphinx3/model/ep/chan3-dither.cepview
+share/sphinx3/model/ep/chan3-logspec.cepview
+share/sphinx3/model/ep/chan3.cepview
+share/sphinx3/model/ep/chan3.logspec
+share/sphinx3/model/ep/chan3.mfc
+share/sphinx3/model/ep/chan3.raw
+share/sphinx3/model/ep/ep.mdef
+share/sphinx3/model/ep/ep.result
+share/sphinx3/model/ep/means
+share/sphinx3/model/ep/mixture_weights
+share/sphinx3/model/ep/variances
+share/sphinx3/model/hmm/RM1_cd_semi/feat.params
+share/sphinx3/model/hmm/RM1_cd_semi/kdtrees
+share/sphinx3/model/hmm/RM1_cd_semi/mdef
+share/sphinx3/model/hmm/RM1_cd_semi/means
+share/sphinx3/model/hmm/RM1_cd_semi/mixture_weights
+share/sphinx3/model/hmm/RM1_cd_semi/transition_matrices
+share/sphinx3/model/hmm/RM1_cd_semi/variances
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/8gau.6000sen.quant
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/feat.params
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/mdef
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/means
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/mixture_weights
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/mllr_matrices
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test-align-mllr.out
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test-conf.confhypseg
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.align.mllr.out
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.align.out
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.align.phseg
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.align.wdseg
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.allphone.allp
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.allphone.match
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.allphone.matchseg
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.allphone.mllr.allp
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.allphone.mllr.match
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.allphone.mllr.matchseg
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.allphone.phone_tg.allp
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.allphone.phone_tg.match
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.allphone.phone_tg.matchseg
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.allphone.phone_tg.mllr.allp
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.allphone.phone_tg.mllr.match
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.allphone.phone_tg.mllr.matchseg
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.dp.hyp
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.dp.ref
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.dp.simple.log
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.mode1369.dump
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/test.subvq
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/transition_matrices
+share/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/variances
+share/sphinx3/model/lm/an4/README
+share/sphinx3/model/lm/an4/align.correct
+share/sphinx3/model/lm/an4/an4.cls.probdef
+share/sphinx3/model/lm/an4/an4.ctl
+share/sphinx3/model/lm/an4/an4.ctl.platform_independent
+share/sphinx3/model/lm/an4/an4.ctl_lm
+share/sphinx3/model/lm/an4/an4.dict
+share/sphinx3/model/lm/an4/an4.phone.dict
+share/sphinx3/model/lm/an4/an4.phonelist
+share/sphinx3/model/lm/an4/an4.tg.phone.arpa
+share/sphinx3/model/lm/an4/an4.tg.phone.arpa.DMP
+share/sphinx3/model/lm/an4/an4.tg.phone.arpa.FST
+share/sphinx3/model/lm/an4/an4.tg.phone.arpa.FST.SYM
+share/sphinx3/model/lm/an4/an4.tg.phone.arpa.lm_convert
+share/sphinx3/model/lm/an4/an4.ug.cls.lm
+share/sphinx3/model/lm/an4/an4.ug.cls.lm.DMP
+share/sphinx3/model/lm/an4/an4.ug.cls.lmctl
+share/sphinx3/model/lm/an4/an4.ug.fsg
+share/sphinx3/model/lm/an4/an4.ug.lm
+share/sphinx3/model/lm/an4/an4.ug.lm.DMP
+share/sphinx3/model/lm/an4/an4.ug.lm.FST
+share/sphinx3/model/lm/an4/an4.ug.lm.FST.SYM
+share/sphinx3/model/lm/an4/an4.ug.lm.lm_convert
+share/sphinx3/model/lm/an4/args.an4
+share/sphinx3/model/lm/an4/args.an4.test
+share/sphinx3/model/lm/an4/args.an4.test.cls
+share/sphinx3/model/lm/an4/args.an4.test.fsg
+share/sphinx3/model/lm/an4/args.an4.test.mllr
+share/sphinx3/model/lm/an4/args.an4.test.win32
+share/sphinx3/model/lm/an4/filler.dict
+share/sphinx3/model/lm/an4/pittsburgh.bigendian.mfc
+share/sphinx3/model/lm/an4/pittsburgh.bigendian.raw
+share/sphinx3/model/lm/an4/pittsburgh.lat.gz
+share/sphinx3/model/lm/an4/pittsburgh.littleendian.abcd
+share/sphinx3/model/lm/an4/pittsburgh.littleendian.mfc
+share/sphinx3/model/lm/an4/pittsburgh.littleendian.raw
+share/sphinx3/model/lm/an4/pittsburgh.littleendian.slf
+share/sphinx3/model/lm/an4/pittsburgh.nbest
diff --git a/audio/sphinx3/distinfo b/audio/sphinx3/distinfo
new file mode 100644
index 00000000000..0dc2ee14933
--- /dev/null
+++ b/audio/sphinx3/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2014/09/05 10:13:20 fhajny Exp $
+
+SHA1 (sphinx3-0.8.tar.gz) = 631220266c7619c411659d1a1a571c3f868b6994
+RMD160 (sphinx3-0.8.tar.gz) = 63696e35838f07a6b6e2490d48ad59bd24037b83
+Size (sphinx3-0.8.tar.gz) = 25226326 bytes
+SHA1 (patch-src_libs3decoder_libcfg_s3__cfg__convert.c) = de4a35285d4c8ab40838f71c77a290f47e7635a8
+SHA1 (patch-src_libs3decoder_libsearch_fsg__history.c) = 51afaaff40c2970fc0dc649569baaafde1cc72de
+SHA1 (patch-src_libs3decoder_libsearch_vithist.c) = 6fecd5870464796b8c114eafe4121b15cb9a3c77
diff --git a/audio/sphinx3/patches/patch-src_libs3decoder_libcfg_s3__cfg__convert.c b/audio/sphinx3/patches/patch-src_libs3decoder_libcfg_s3__cfg__convert.c
new file mode 100644
index 00000000000..45b8928bc21
--- /dev/null
+++ b/audio/sphinx3/patches/patch-src_libs3decoder_libcfg_s3__cfg__convert.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_libs3decoder_libcfg_s3__cfg__convert.c,v 1.1 2014/09/05 10:13:21 fhajny Exp $
+
+Only use libbsd on Linux.
+--- src/libs3decoder/libcfg/s3_cfg_convert.c.orig 2008-12-31 18:27:55.000000000 +0000
++++ src/libs3decoder/libcfg/s3_cfg_convert.c
+@@ -1,5 +1,7 @@
+
++#if defined(__linux__)
+ #include <libutil.h>
++#endif
+ #include "s3_cfg.h"
+ #include "fsg.h"
+
diff --git a/audio/sphinx3/patches/patch-src_libs3decoder_libsearch_fsg__history.c b/audio/sphinx3/patches/patch-src_libs3decoder_libsearch_fsg__history.c
new file mode 100644
index 00000000000..a7b74fc710f
--- /dev/null
+++ b/audio/sphinx3/patches/patch-src_libs3decoder_libsearch_fsg__history.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_libs3decoder_libsearch_fsg__history.c,v 1.1 2014/09/05 10:13:21 fhajny Exp $
+
+Only use libbsd on Linux.
+--- src/libs3decoder/libsearch/fsg_history.c.orig 2008-12-31 18:27:56.000000000 +0000
++++ src/libs3decoder/libsearch/fsg_history.c
+@@ -55,7 +55,9 @@
+ #include <kb.h>
+ /*#include <phone.h>*/
+ #include <search.h>
++#if defined(__linux__)
+ #include "libutil.h"
++#endif
+
+
+ #define __FSG_DBG__ 0
diff --git a/audio/sphinx3/patches/patch-src_libs3decoder_libsearch_vithist.c b/audio/sphinx3/patches/patch-src_libs3decoder_libsearch_vithist.c
new file mode 100644
index 00000000000..6304b487164
--- /dev/null
+++ b/audio/sphinx3/patches/patch-src_libs3decoder_libsearch_vithist.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_libs3decoder_libsearch_vithist.c,v 1.1 2014/09/05 10:13:21 fhajny Exp $
+
+Fix heap declaration.
+--- src/libs3decoder/libsearch/vithist.c.orig 2008-12-31 18:27:56.000000000 +0000
++++ src/libs3decoder/libsearch/vithist.c
+@@ -647,7 +647,7 @@ vithist_prune(vithist_t * vh, dict_t * d
+ {
+ int32 se, fe, filler_done, th;
+ vithist_entry_t *ve;
+- heap_t h;
++ heap_t* h;
+ s3wid_t *wid;
+ int32 i;
+