Debian

Available patches from Ubuntu

To see Ubuntu differences wrt. to Debian, write down a grep-dctrl query identifying the packages you're interested in:
grep-dctrl -n -sPackage Sources.Debian
(e.g. -FPackage linux-ntfs or linux-ntfs)

Modified packages are listed below:

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: pocketsphinx

pocketsphinx (0.8.0+real5prealpha-1ubuntu2) xenial; urgency=medium * Merge from Debian (mangling the version). * Re-base on current Debian packaging. * Enable parallel builds. * pocketsphinx: Provide pocketsphinx-utils. * Split out a pocketsphinx-doc package. -- Matthias Klose <doko@ubuntu.com> Tue, 09 Feb 2016 16:26:30 +0100

Modifications :
  1. Download patch src/libpocketsphinx/ngram_search.c

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/ngram_search.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/ngram_search.c 2015-05-01 21:39:25.000000000 +0000 @@ -59,9 +59,9 @@ static int ngram_search_start(ps_search_ static int ngram_search_step(ps_search_t *search, int frame_idx); static int ngram_search_finish(ps_search_t *search); static int ngram_search_reinit(ps_search_t *search, dict_t *dict, dict2pid_t *d2p); -static char const *ngram_search_hyp(ps_search_t *search, int32 *out_score); +static char const *ngram_search_hyp(ps_search_t *search, int32 *out_score, int32 *out_is_final); static int32 ngram_search_prob(ps_search_t *search); -static ps_seg_t *ngram_search_seg_iter(ps_search_t *search); +static ps_seg_t *ngram_search_seg_iter(ps_search_t *search, int32 *out_score); static ps_searchfuncs_t ngram_funcs = { /* start: */ ngram_search_start, @@ -503,7 +503,7 @@ ngram_search_save_bp(ngram_search_t *ngs } int -ngram_search_find_exit(ngram_search_t *ngs, int frame_idx, int32 *out_best_score) +ngram_search_find_exit(ngram_search_t *ngs, int frame_idx, int32 *out_best_score, int32 *out_is_final) { /* End of backpointers for this frame. */ int end_bpidx; @@ -543,6 +543,9 @@ ngram_search_find_exit(ngram_search_t *n if (out_best_score) { *out_best_score = best_score; } + if (out_is_final) { + *out_is_final = (ngs->bp_table[bp].wid == ps_search_finish_wid(ngs)); + } return best_exit; } @@ -846,7 +849,7 @@ ngram_search_bestpath(ps_search_t *searc } static char const * -ngram_search_hyp(ps_search_t *search, int32 *out_score) +ngram_search_hyp(ps_search_t *search, int32 *out_score, int32 *out_is_final) { ngram_search_t *ngs = (ngram_search_t *)search; @@ -879,7 +882,7 @@ ngram_search_hyp(ps_search_t *search, in int32 bpidx; /* fwdtree and fwdflat use same backpointer table. */ - bpidx = ngram_search_find_exit(ngs, -1, out_score); + bpidx = ngram_search_find_exit(ngs, -1, out_score, out_is_final); if (bpidx != NO_BP) return ngram_search_bp_hyp(ngs, bpidx); } @@ -1000,7 +1003,7 @@ ngram_search_bp_iter(ngram_search_t *ngs } static ps_seg_t * -ngram_search_seg_iter(ps_search_t *search) +ngram_search_seg_iter(ps_search_t *search, int32 *out_score) { ngram_search_t *ngs = (ngram_search_t *)search; @@ -1015,7 +1018,7 @@ ngram_search_seg_iter(ps_search_t *searc ptmr_start(&ngs->bestpath_perf); if ((dag = ngram_search_lattice(search)) == NULL) return NULL; - if ((link = ngram_search_bestpath(search, NULL, TRUE)) == NULL) + if ((link = ngram_search_bestpath(search, out_score, TRUE)) == NULL) return NULL; itor = ps_lattice_seg_iter(dag, link, ngs->bestpath_fwdtree_lw_ratio); @@ -1034,7 +1037,7 @@ ngram_search_seg_iter(ps_search_t *searc int32 bpidx; /* fwdtree and fwdflat use same backpointer table. */ - bpidx = ngram_search_find_exit(ngs, -1, NULL); + bpidx = ngram_search_find_exit(ngs, -1, out_score, NULL); return ngram_search_bp_iter(ngs, bpidx, /* but different language weights... */ (ngs->done && ngs->fwdflat)
  2. Download patch src/libpocketsphinx/dict.c

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/dict.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/dict.c 2015-05-01 21:39:25.000000000 +0000 @@ -209,8 +209,8 @@ dict_read(FILE * fp, dict_t * d) } } } - E_INFO("Dictionary size %d, allocated %d KiB for strings, %d KiB for phones\n", - dict_size(d), (int)stralloc / 1024, (int)phnalloc / 1024); + E_INFO("Allocated %d KiB for strings, %d KiB for phones\n", + (int)stralloc / 1024, (int)phnalloc / 1024); ckd_free(p); ckd_free(wptr); @@ -260,7 +260,7 @@ dict_init(cmd_ln_t *config, bin_mdef_t * if (config) { dictfile = cmd_ln_str_r(config, "-dict"); - fillerfile = cmd_ln_str_r(config, "_fdict"); + fillerfile = cmd_ln_str_r(config, "-fdict"); } /*
  3. Download patch test/data/cards/cards.hyp

    --- 0.8+5prealpha+1-2/test/data/cards/cards.hyp 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/test/data/cards/cards.hyp 2015-03-24 17:26:23.000000000 +0000 @@ -1,5 +1,5 @@ -ten of clubs (001 -3466) -four queen of clubs (002 -3714) -seven of clubs (003 -3184) -five five (004 -2755) -eight of spades four of clubs seven of hearts (005 -5472) +ten of clubs (001 -8533) +four queen of clubs (002 -16018) +seven of clubs (003 -11241) +five five (004 -11504) +eight of spades four of clubs seven of hearts (005 -33568)
  4. Download patch src/libpocketsphinx/tmat.h

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/tmat.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/tmat.h 2015-03-24 17:26:24.000000000 +0000 @@ -33,11 +33,62 @@ * ==================================================================== * */ +/* + * tmat.h + * + * ********************************************** + * CMU ARPA Speech Project + * + * Copyright (c) 1997 Carnegie Mellon University. + * ALL RIGHTS RESERVED. + * ********************************************** + * + * HISTORY + * $Log: tmat.h,v $ + * Revision 1.1.1.1 2006/05/23 18:45:03 dhuggins + * re-importation + * + * Revision 1.1 2005/09/29 21:51:19 dhuggins + * Add support for Sphinx3 tmat files. Amazingly enough, it Just Works + * (but it isn't terribly robust) + * + * Revision 1.9 2005/06/21 19:23:35 arthchan2003 + * 1, Fixed doxygen documentation. 2, Added $ keyword. + * + * Revision 1.6 2005/06/13 04:02:56 archan + * Fixed most doxygen-style documentation under libs3decoder. + * + * Revision 1.5 2005/05/03 04:09:09 archan + * Implemented the heart of word copy search. For every ci-phone, every word end, a tree will be allocated to preserve its pathscore. This is different from 3.5 or below, only the best score for a particular ci-phone, regardless of the word-ends will be preserved at every frame. The graph propagation will not collect unused word tree at this point. srch_WST_propagate_wd_lv2 is also as the most stupid in the century. But well, after all, everything needs a start. I will then really get the results from the search and see how it looks. + * + * Revision 1.4 2005/04/21 23:50:26 archan + * Some more refactoring on the how reporting of structures inside kbcore_t is done, it is now 50% nice. Also added class-based LM test case into test-decode.sh.in. At this moment, everything in search mode 5 is already done. It is time to test the idea whether the search can really be used. + * + * Revision 1.3 2005/03/30 01:22:47 archan + * Fixed mistakes in last updates. Add + * + * + * 20.Apr.2001 RAH (rhoughton@mediasite.com, ricky.houghton@cs.cmu.edu) + * Added tmat_free to free allocated memory + * + * 29-Feb-2000 M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University. + * Added tmat_chk_1skip(), and made tmat_chk_uppertri() public. + * + * 10-Dec-1999 M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University. + * Added tmat_dump(). + * + * 11-Mar-97 M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University. + * Started based on original S3 implementation. + */ + #ifndef _S3_TMAT_H_ #define _S3_TMAT_H_ +/* System headers. */ #include <stdio.h> + +/* SphinxBase headers. */ #include <sphinxbase/logmath.h> /** \file tmat.h
  5. Download patch swig/python/test/Makefile.in

    --- 0.8+5prealpha+1-2/swig/python/test/Makefile.in 2016-09-24 23:44:26.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/python/test/Makefile.in 2015-05-14 16:39:48.000000000 +0000 @@ -89,7 +89,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/a am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) @@ -258,14 +257,12 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = \ config_test.py \ - continuous_test.py \ decoder_test.py \ kws_test.py \ fsg_test.py \ jsgf_test.py \ lattice_test.py \ - lm_test.py \ - phoneme_test.py + lm_test.py all: all-am
  6. Download patch src/libpocketsphinx/acmod.c

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/acmod.c 2016-09-24 23:32:37.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/acmod.c 2015-07-05 00:34:27.000000000 +0000 @@ -62,6 +62,10 @@ #include "ptm_mgau.h" #include "ms_mgau.h" +#ifndef WORDS_BIGENDIAN +#define WORDS_BIGENDIAN 1 +#endif + static int32 acmod_process_mfcbuf(acmod_t *acmod); static int @@ -70,7 +74,7 @@ acmod_init_am(acmod_t *acmod) char const *mdeffn, *tmatfn, *mllrfn, *hmmdir; /* Read model definition. */ - if ((mdeffn = cmd_ln_str_r(acmod->config, "_mdef")) == NULL) { + if ((mdeffn = cmd_ln_str_r(acmod->config, "-mdef")) == NULL) { if ((hmmdir = cmd_ln_str_r(acmod->config, "-hmm")) == NULL) E_ERROR("Acoustic model definition is not specified either " "with -mdef option or with -hmm\n"); @@ -87,7 +91,7 @@ acmod_init_am(acmod_t *acmod) } /* Read transition matrices. */ - if ((tmatfn = cmd_ln_str_r(acmod->config, "_tmat")) == NULL) { + if ((tmatfn = cmd_ln_str_r(acmod->config, "-tmat")) == NULL) { E_ERROR("No tmat file specified\n"); return -1; } @@ -96,14 +100,14 @@ acmod_init_am(acmod_t *acmod) TRUE); /* Read the acoustic models. */ - if ((cmd_ln_str_r(acmod->config, "_mean") == NULL) - || (cmd_ln_str_r(acmod->config, "_var") == NULL) - || (cmd_ln_str_r(acmod->config, "_tmat") == NULL)) { + if ((cmd_ln_str_r(acmod->config, "-mean") == NULL) + || (cmd_ln_str_r(acmod->config, "-var") == NULL) + || (cmd_ln_str_r(acmod->config, "-tmat") == NULL)) { E_ERROR("No mean/var/tmat files specified\n"); return -1; } - if (cmd_ln_str_r(acmod->config, "_senmgau")) { + if (cmd_ln_str_r(acmod->config, "-senmgau")) { E_INFO("Using general multi-stream GMM computation\n"); acmod->mgau = ms_mgau_init(acmod, acmod->lmath, acmod->mdef); if (acmod->mgau == NULL) @@ -116,10 +120,8 @@ acmod_init_am(acmod_t *acmod) if ((acmod->mgau = s2_semi_mgau_init(acmod)) == NULL) { E_INFO("Falling back to general multi-stream GMM computation\n"); acmod->mgau = ms_mgau_init(acmod, acmod->lmath, acmod->mdef); - if (acmod->mgau == NULL) { - E_ERROR("Failed to read acoustic model\n"); + if (acmod->mgau == NULL) return -1; - } } } } @@ -147,11 +149,11 @@ acmod_init_feat(acmod_t *acmod) if (acmod->fcb == NULL) return -1; - if (cmd_ln_str_r(acmod->config, "_lda")) { + if (cmd_ln_str_r(acmod->config, "-lda")) { E_INFO("Reading linear feature transformation from %s\n", - cmd_ln_str_r(acmod->config, "_lda")); + cmd_ln_str_r(acmod->config, "-lda")); if (feat_read_lda(acmod->fcb, - cmd_ln_str_r(acmod->config, "_lda"), + cmd_ln_str_r(acmod->config, "-lda"), cmd_ln_int32_r(acmod->config, "-ldadim")) < 0) return -1; } @@ -355,7 +357,7 @@ acmod_write_senfh_header(acmod_t *acmod, sprintf(logbasestr, "%f", logmath_get_base(acmod->lmath)); return bio_writehdr(logfh, "version", "0.1", - "mdef_file", cmd_ln_str_r(acmod->config, "_mdef"), + "mdef_file", cmd_ln_str_r(acmod->config, "-mdef"), "n_sen", nsenstr, "logbase", logbasestr, NULL); } @@ -461,6 +463,8 @@ acmod_end_utt(acmod_t *acmod) long outlen; int32 rv; outlen = (ftell(acmod->mfcfh) - 4) / 4; + if (!WORDS_BIGENDIAN) + SWAP_INT32(&outlen); /* Try to seek and write */ if ((rv = fseek(acmod->mfcfh, 0, SEEK_SET)) == 0) { fwrite(&outlen, 4, 1, acmod->mfcfh); @@ -485,10 +489,26 @@ static int acmod_log_mfc(acmod_t *acmod, mfcc_t **cep, int n_frames) { - int n = n_frames * feat_cepsize(acmod->fcb); + int i, n; + int32 *ptr = (int32 *)cep[0]; + + n = n_frames * feat_cepsize(acmod->fcb); + /* Swap bytes. */ + if (!WORDS_BIGENDIAN) { + for (i = 0; i < (n * sizeof(mfcc_t)); ++i) { + SWAP_INT32(ptr + i); + } + } /* Write features. */ if (fwrite(cep[0], sizeof(mfcc_t), n, acmod->mfcfh) != n) { - E_ERROR_SYSTEM("Failed to write %d values to file", n); + E_ERROR_SYSTEM("Failed to write %d values to log file", n); + } + + /* Swap them back. */ + if (!WORDS_BIGENDIAN) { + for (i = 0; i < (n * sizeof(mfcc_t)); ++i) { + SWAP_INT32(ptr + i); + } } return 0; } @@ -500,7 +520,7 @@ acmod_process_full_cep(acmod_t *acmod, { int32 nfr; - /* Write to file. */ + /* Write to log file. */ if (acmod->mfcfh) acmod_log_mfc(acmod, *inout_cep, *inout_n_frames); @@ -708,7 +728,7 @@ acmod_process_cep(acmod_t *acmod, if (full_utt) return acmod_process_full_cep(acmod, inout_cep, inout_n_frames); - /* Write to file. */ + /* Write to log file. */ if (acmod->mfcfh) acmod_log_mfc(acmod, *inout_cep, *inout_n_frames);
  7. Download patch swig/python/Makefile.in

    --- 0.8+5prealpha+1-2/swig/python/Makefile.in 2016-09-24 23:44:26.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/python/Makefile.in 2015-05-14 19:37:02.000000000 +0000 @@ -94,7 +94,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/a am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; @@ -152,7 +151,7 @@ AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include +DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f
  8. Download patch src/libpocketsphinx/ngram_search.h

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/ngram_search.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/ngram_search.h 2015-05-01 21:39:25.000000000 +0000 @@ -400,7 +400,7 @@ void ngram_search_free_all_rc(ngram_sear * * @return the backpointer index of the best word exit. */ -int ngram_search_find_exit(ngram_search_t *ngs, int frame_idx, int32 *out_best_score); +int ngram_search_find_exit(ngram_search_t *ngs, int frame_idx, int32 *out_best_score, int32 *out_is_final); /** * Backtrace from a given backpointer index to obtain a word hypothesis.
  9. Download patch debian/python3-pocketsphinx.install

    --- 0.8+5prealpha+1-2/debian/python3-pocketsphinx.install 2018-04-28 09:57:32.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/debian/python3-pocketsphinx.install 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -debian/tmp/usr/lib/python3* usr/lib
  10. Download patch include/config.h.in

    --- 0.8+5prealpha+1-2/include/config.h.in 2016-09-24 23:44:38.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/include/config.h.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,65 +0,0 @@ -/* include/config.h.in. Generated from configure.ac by autoheader. */ - -/* Define to 1 if you have the <dlfcn.h> header file. */ -#undef HAVE_DLFCN_H - -/* Define to 1 if you have the <inttypes.h> header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if the system has the type `long long'. */ -#undef HAVE_LONG_LONG - -/* Define to 1 if you have the <memory.h> header file. */ -#undef HAVE_MEMORY_H - -/* If available, contains the Python version number currently in use. */ -#undef HAVE_PYTHON - -/* Define to 1 if you have the <stdint.h> header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the <stdlib.h> header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the <strings.h> header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the <string.h> header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the <sys/stat.h> header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the <sys/types.h> header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the <unistd.h> header file. */ -#undef HAVE_UNISTD_H - -/* Define to the sub-directory in which libtool stores uninstalled libraries. - */ -#undef LT_OBJDIR - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the home page for this package. */ -#undef PACKAGE_URL - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* The size of `long long', as computed by sizeof. */ -#undef SIZEOF_LONG_LONG - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS
  11. Download patch swig/python/test/kws_test.py

    --- 0.8+5prealpha+1-2/swig/python/test/kws_test.py 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/python/test/kws_test.py 2015-05-14 22:13:25.000000000 +0000 @@ -1,4 +1,37 @@ -#!/usr/bin/python +# ==================================================================== +# Copyright (c) 2013 Carnegie Mellon University. All rights +# reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# +# This work was supported in part by funding from the Defense Advanced +# Research Projects Agency and the National Science Foundation of the +# United States of America, and the CMU Sphinx Speech Consortium. +# +# THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND +# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY +# NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# ==================================================================== + import sys, os from pocketsphinx.pocketsphinx import * @@ -26,7 +59,7 @@ stream = open(os.path.join(datadir, "gof # stream = p.open(format=pyaudio.paInt16, channels=1, rate=16000, input=True, frames_per_buffer=1024) # stream.start_stream() -# Process audio chunk by chunk. On keyphrase detected perform action and restart search +# Process audio chunk by chunk. On keyword detected perform action and restart search decoder = Decoder(config) decoder.start_utt() while True: @@ -37,6 +70,6 @@ while True: break if decoder.hyp() != None: print ([(seg.word, seg.prob, seg.start_frame, seg.end_frame) for seg in decoder.seg()]) - print ("Detected keyphrase, restarting search") + print ("Detected keyword, restarting search") decoder.end_utt() decoder.start_utt()
  12. Download patch src/gst-plugin/livedemo.py

    --- 0.8+5prealpha+1-2/src/gst-plugin/livedemo.py 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/gst-plugin/livedemo.py 2015-07-14 21:59:33.000000000 +0000 @@ -3,26 +3,19 @@ # Copyright (c) 2008 Carnegie Mellon University. # # You may modify and redistribute this file under the same terms as -# the CMU Sphinx system. See LICENSE for more information. - - -from gi import pygtkcompat -import gi - -gi.require_version('Gst', '1.0') -from gi.repository import GObject, Gst -GObject.threads_init() -Gst.init(None) - -gst = Gst - -print("Using pygtkcompat and Gst from gi") - -pygtkcompat.enable() -pygtkcompat.enable_gtk(version='3.0') +# the CMU Sphinx system. See +# http://cmusphinx.sourceforge.net/html/LICENSE for more information. +import pygtk +pygtk.require('2.0') import gtk +import gobject +import pygst +pygst.require('1.0') +gobject.threads_init() +import gst + class DemoApp(object): """GStreamer/PocketSphinx Demo Application""" def __init__(self): @@ -38,7 +31,7 @@ class DemoApp(object): self.window.set_border_width(10) vbox = gtk.VBox() self.textbuf = gtk.TextBuffer() - self.text = gtk.TextView(buffer=self.textbuf) + self.text = gtk.TextView(self.textbuf) self.text.set_wrap_mode(gtk.WRAP_WORD) vbox.pack_start(self.text) self.button = gtk.ToggleButton("Speak") @@ -49,26 +42,26 @@ class DemoApp(object): def init_gst(self): """Initialize the speech components""" - self.pipeline = gst.parse_launch('autoaudiosrc ! audioconvert ! audioresample ' - + '! pocketsphinx ! fakesink') + self.pipeline = gst.parse_launch('gconfaudiosrc ! audioconvert ! audioresample ' + + '! pocketsphinx configured=true ! fakesink') bus = self.pipeline.get_bus() bus.add_signal_watch() bus.connect('message::element', self.element_message) - self.pipeline.set_state(gst.State.PAUSED) + self.pipeline.set_state(gst.STATE_PAUSED) def element_message(self, bus, msg): """Receive element messages from the bus.""" - msgtype = msg.get_structure().get_name() + msgtype = msg.structure.get_name() if msgtype != 'pocketsphinx': - return + return - if msg.get_structure().get_value('final'): - self.final_result(msg.get_structure().get_value('hypothesis'), msg.get_structure().get_value('confidence')) - self.pipeline.set_state(gst.State.PAUSED) + if msg.structure['final']: + self.final_result(msg.structure['hypothesis'], msg.structure['confidence']) + self.pipeline.set_state(gst.STATE_PAUSED) self.button.set_active(False) - elif msg.get_structure().get_value('hypothesis'): - self.partial_result(msg.get_structure().get_value('hypothesis')) + elif msgtype == 'result': + self.partial_result(msg.structure['hypothesis']) def partial_result(self, hyp): """Delete any previous selection, insert text and select it.""" @@ -94,10 +87,11 @@ class DemoApp(object): """Handle button presses.""" if button.get_active(): button.set_label("Stop") - self.pipeline.set_state(gst.State.PLAYING) + self.pipeline.set_state(gst.STATE_PLAYING) else: button.set_label("Speak") - self.pipeline.set_state(gst.State.PAUSED) + vader = self.pipeline.get_by_name('vad') + vader.set_property('silent', True) app = DemoApp() gtk.main()
  13. Download patch LICENSE

    --- 0.8+5prealpha+1-2/LICENSE 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/LICENSE 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -Copyright (c) 1999-2016 Carnegie Mellon University. All rights -reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - -This work was supported in part by funding from the Defense Advanced -Research Projects Agency and the National Science Foundation of the -United States of America, and the CMU Sphinx Speech Consortium. - -THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND -ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY -NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - \ No newline at end of file
  14. Download patch doc/pocketsphinx_batch.1.in

    --- 0.8+5prealpha+1-2/doc/pocketsphinx_batch.1.in 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/doc/pocketsphinx_batch.1.in 2015-03-24 17:26:28.000000000 +0000 @@ -3,12 +3,10 @@ pocketsphinx_batch \- Run speech recognition in batch mode .SH SYNOPSIS .B pocketsphinx_batch -.RI \fB\-ctl\fR -\fIctlfile\fR -\fB\-cepdir\fR -\fIcepdir\fR -\fB\-cepext\fR -\fI.mfc\fR +.RI \fB\-hmm\fR +\fIhmmdir\fR +\fB\-dict\fR +\fIdictfile\fR [\fI options \fR]... .SH DESCRIPTION .PP @@ -16,7 +14,16 @@ Run speech recognition over a list of ut of arguments follows: .\" ### ARGUMENTS ### .PP -To do batchmode recognition, you +The +.B \-hmm +and +.B \-dict +arguments are always required. Either +.B \-lm +or +.B \-fsg +is required, depending on whether you are using a statistical language +model or a finite-state grammar. To do batchmode recognition, you will need to specify a control file, using .B \-ctl This is a simple text file containing one entry per line. Each entry @@ -38,8 +45,8 @@ of a file, using the following format: Written by numerous people at CMU from 1994 onwards. This manual page by David Huggins-Daines <dhuggins@cs.cmu.edu> .SH COPYRIGHT -Copyright \(co 1994-2016 Carnegie Mellon University. See the file -\fILICENSE\fR included with this package for more information. +Copyright \(co 1994-2007 Carnegie Mellon University. See the file +\fICOPYING\fR included with this package for more information. .br .SH "SEE ALSO" .BR pocketsphinx_continuous (1),
  15. Download patch debian/rules

    --- 0.8+5prealpha+1-2/debian/rules 2018-04-28 10:00:19.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/debian/rules 2016-02-10 00:34:49.000000000 +0000 @@ -1,45 +1,36 @@ #!/usr/bin/make -f -PYVERS := $(shell pyversions -r) -PY3VERS := $(shell py3versions -r) - -export DEB_BUILD_MAINT_OPTIONS = hardening=+all +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +export DEB_BUILD_HARDENING=1 %: - dh $@ --with python2,python3 - -override_dh_auto_clean: - set -e ; for pyver in $(PYVERS) $(PY3VERS); do \ - rm -fr build-$$pyver ; \ - done - dh_auto_clean + dh $@ --parallel --with autoreconf,python2 override_dh_auto_configure: - set -e ; for pyver in $(PYVERS) $(PY3VERS); do \ - mkdir -p build-$$pyver; \ - PYTHON=/usr/bin/$$pyver dh_auto_configure -B build-$$pyver ; \ - done + dh_auto_configure -- --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) -# Big-endian archs do not work yet and create hundreds of gigabytes of log, -# don't even try for now. -ifeq (big,$(shell dpkg-architecture -qDEB_BUILD_ARCH_ENDIAN))) +# Ignore testsuite failure on big-endian archs +ifneq (,$(filter $(shell dpkg-architecture -qDEB_HOST_ARCH),mips powerpc powerpcspe ppc64 s390x sparc sparc64)) override_dh_auto_test: - false -else -override_dh_auto_test: - set -e ; for pyver in $(PYVERS) $(PY3VERS); do \ - dh_auto_test -B build-$$pyver ; \ - done + -dh_auto_test endif -override_dh_auto_install: - set -e ; for pyver in $(PYVERS) $(PY3VERS); do \ - dh_auto_install -B build-$$pyver ; \ - done - for file in $$(find debian/tmp/usr/lib/ -name "*.la" -o -name _pocketsphinx.a); do \ - rm $$file ; \ - done - override_dh_clean: dh_clean -rm -f python/pocketsphinx.c + -$(RM) -r python/build + +override_dh_installdocs: + dh_installdocs + if [ -d debian/pocketsphinx-doc/usr/share/doc/pocketsphinx-doc ]; then \ + mkdir -p debian/pocketsphinx-doc/usr/share/doc/pocketsphinx; \ + mv debian/pocketsphinx-doc/usr/share/doc/pocketsphinx-doc/html debian/pocketsphinx-doc/usr/share/doc/pocketsphinx/; \ + ln -sf ../pocketsphinx/html debian/pocketsphinx-doc/usr/share/doc/pocketsphinx-doc/html; \ + ln -sf /usr/share/javascript/jquery/jquery.js debian/pocketsphinx-doc/usr/share/doc/pocketsphinx/html/jquery.js; \ + fi + +override_dh_auto_install: + dh_auto_install + for file in $$(find debian/tmp/usr/lib/ -name "*.la"); do \ + rm $$file ; \ + done
  16. Download patch test/data/wsj/test-hub4-simple-pl.match

    --- 0.8+5prealpha+1-2/test/data/wsj/test-hub4-simple-pl.match 1970-01-01 00:00:00.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/test-hub4-simple-pl.match 2015-03-24 17:26:23.000000000 +0000 @@ -0,0 +1,7 @@ +the labor department said non farm payroll employment increased our robust three hundred thirty seven thousand last month after a revised three hundred nineteen thousand gain the month before (443c0201 -141053) +in the nineteen eighty five quarter the owner and operator of health maintenance organizations earned six .point nine million dollars or twenty four cents a share (444c0201 -109296) +here are price trends on the world's major stock markets as calculated by morgan stanley capital international perspective geneva (446c0201 -74208) +i don't mean there can be some improvements in the revenue act of nineteen eighty six which took effect this small (447c0201 -78707) +at any see the need for international managers will keep rising (440c0201 -60386) +first commodity appeal the explosion and fined to the c. f. t. c. (441c0201 -68809) +bids totaling five hundred twenty five .point five million dollars were submitted (442c0201 -52826)
  17. Download patch src/libpocketsphinx/ngram_search_fwdtree.c

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/ngram_search_fwdtree.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/ngram_search_fwdtree.c 2015-03-24 17:26:24.000000000 +0000 @@ -71,8 +71,6 @@ init_search_tree(ngram_search_t *ngs) dict_t *dict = ps_search_dict(ngs); bitvec_t *dimap; - E_INFO("Initializing search tree\n"); - n_words = ps_search_n_words(ngs); ngs->homophone_set = ckd_calloc(n_words, sizeof(*ngs->homophone_set)); @@ -146,6 +144,8 @@ init_search_tree(ngram_search_t *ngs) ngs->single_phone_wid = ckd_calloc(ngs->n_1ph_words, sizeof(*ngs->single_phone_wid)); + E_INFO("%d root, %d non-root channels, %d single-phone words\n", + ngs->n_root_chan, ngs->n_nonroot_chan, ngs->n_1ph_words); } /* @@ -172,7 +172,7 @@ init_nonroot_chan(ngram_search_t *ngs, c * search tree to suit the currently active LM. */ static void -create_search_channels(ngram_search_t *ngs) +create_search_tree(ngram_search_t *ngs) { chan_t *hmm; root_chan_t *rhmm; @@ -183,11 +183,14 @@ create_search_channels(ngram_search_t *n n_words = ps_search_n_words(ngs); - E_INFO("Creating search channels\n"); + E_INFO("Creating search tree\n"); for (w = 0; w < n_words; w++) ngs->homophone_set[w] = -1; + E_INFO("before: %d root, %d non-root channels, %d single-phone words\n", + ngs->n_root_chan, ngs->n_nonroot_chan, ngs->n_1ph_words); + ngs->n_1ph_LMwords = 0; ngs->n_root_chan = 0; ngs->n_nonroot_chan = 0; @@ -320,7 +323,7 @@ create_search_channels(ngram_search_t *n if (ngs->n_nonroot_chan >= ngs->max_nonroot_chan) { /* Give some room for channels for new words added dynamically at run time */ ngs->max_nonroot_chan = ngs->n_nonroot_chan + 128; - E_INFO("Max nonroot chan increased to %d\n", ngs->max_nonroot_chan); + E_INFO("after: max nonroot chan increased to %d\n", ngs->max_nonroot_chan); /* Free old active channel list array if any and allocate new one */ if (ngs->active_chan_list) @@ -329,11 +332,11 @@ create_search_channels(ngram_search_t *n sizeof(**ngs->active_chan_list)); } - E_INFO("Created %d root, %d non-root channels, %d single-phone words\n", - ngs->n_root_chan, ngs->n_nonroot_chan, ngs->n_1ph_words); - - if (ngs->n_root_chan + ngs->n_1ph_words == 0) + if (!ngs->n_root_chan) E_ERROR("No word from the language model has pronunciation in the dictionary\n"); + + E_INFO("after: %d root, %d non-root channels, %d single-phone words\n", + ngs->n_root_chan, ngs->n_nonroot_chan, ngs->n_1ph_words); } static void @@ -386,7 +389,7 @@ ngram_fwdtree_init(ngram_search_t *ngs) ngs->lastphn_cand = ckd_calloc(ps_search_n_words(ngs), sizeof(*ngs->lastphn_cand)); init_search_tree(ngs); - create_search_channels(ngs); + create_search_tree(ngs); } static void @@ -463,7 +466,7 @@ ngram_fwdtree_reinit(ngram_search_t *ngs sizeof(*ngs->word_chan)); /* Rebuild the search tree. */ init_search_tree(ngs); - create_search_channels(ngs); + create_search_tree(ngs); return 0; }
  18. Download patch swig/python/test/config_test.py

    --- 0.8+5prealpha+1-2/swig/python/test/config_test.py 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/python/test/config_test.py 2015-05-02 17:51:23.000000000 +0000 @@ -1,4 +1,37 @@ -#!/usr/bin/python +# ==================================================================== +# Copyright (c) 2013 Carnegie Mellon University. All rights +# reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# +# This work was supported in part by funding from the Defense Advanced +# Research Projects Agency and the National Science Foundation of the +# United States of America, and the CMU Sphinx Speech Consortium. +# +# THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND +# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY +# NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# ==================================================================== + from os import environ, path @@ -40,7 +73,3 @@ print ("Boolean:", boolval, " ", s) config.set_boolean("-backtrace", boolval); s = config.get_boolean("-backtrace") print ("Boolean:", boolval, " ", s) - -config.set_string_extra("-something12321", "abc") -print config.get_string("-something12321") -
  19. Download patch doc/pocketsphinx_mdef_convert.1

    --- 0.8+5prealpha+1-2/doc/pocketsphinx_mdef_convert.1 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/doc/pocketsphinx_mdef_convert.1 2015-03-24 17:26:28.000000000 +0000 @@ -19,6 +19,6 @@ The input is in binary format, and is to .SH AUTHOR Written by David Huggins-Daines <dhuggins@cs.cmu.edu>. .SH COPYRIGHT -Copyright \(co 2016 Carnegie Mellon University. See the file +Copyright \(co 2006 Carnegie Mellon University. See the file \fICOPYING\fR included with this package for more information. .br
  20. Download patch swig/Makefile.am

    --- 0.8+5prealpha+1-2/swig/Makefile.am 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/Makefile.am 2015-03-24 17:26:29.000000000 +0000 @@ -1,7 +1,6 @@ SUBDIRS = python -swigdir = $(pkgdatadir)/swig -dist_swig_DATA = \ +EXTRA_DIST = \ pocketsphinx.i \ ps_decoder.i \ ps_lattice.i
  21. Download patch include/Makefile.in

    --- 0.8+5prealpha+1-2/include/Makefile.in 2016-09-24 23:44:26.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/include/Makefile.in 2015-05-14 16:39:48.000000000 +0000 @@ -80,7 +80,7 @@ build_triplet = @build@ host_triplet = @host@ subdir = include DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ - $(srcdir)/config.h.in $(pkginclude_HEADERS) + $(pkginclude_HEADERS) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_pkg_swig.m4 \ $(top_srcdir)/m4/ax_python_devel.m4 \ @@ -91,7 +91,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/a am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) @@ -142,8 +141,7 @@ am__uninstall_files_from_dir = { \ } am__installdirs = "$(DESTDIR)$(pkgincludedir)" HEADERS = $(pkginclude_HEADERS) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ - $(LISP)config.h.in +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. @@ -314,8 +312,7 @@ pkginclude_HEADERS = \ pocketsphinx_export.h \ pocketsphinx.h -all: config.h - $(MAKE) $(AM_MAKEFLAGS) all-am +all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @@ -349,21 +346,6 @@ $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): -config.h: stamp-h1 - @if test ! -f $@; then rm -f stamp-h1; else :; fi - @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi - -stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status - @rm -f stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status include/config.h -$(srcdir)/config.h.in: $(am__configure_deps) - ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) - rm -f stamp-h1 - touch $@ - -distclean-hdr: - -rm -f config.h stamp-h1 - mostlyclean-libtool: -rm -f *.lo @@ -475,7 +457,7 @@ distdir: $(DISTFILES) done check-am: all-am check: check-am -all-am: Makefile $(HEADERS) config.h +all-am: Makefile $(HEADERS) installdirs: for dir in "$(DESTDIR)$(pkgincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ @@ -516,7 +498,7 @@ clean-am: clean-generic clean-libtool mo distclean: distclean-am -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-hdr distclean-tags +distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-am @@ -576,21 +558,21 @@ ps-am: uninstall-am: uninstall-pkgincludeHEADERS -.MAKE: all install-am install-strip +.MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool cscopelist-am ctags ctags-am distclean \ - distclean-generic distclean-hdr distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-pkgincludeHEADERS \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ - uninstall-am uninstall-pkgincludeHEADERS + distclean-generic distclean-libtool distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-pkgincludeHEADERS install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am tags tags-am uninstall uninstall-am \ + uninstall-pkgincludeHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables.
  22. Download patch debian/compat

    --- 0.8+5prealpha+1-2/debian/compat 2018-03-07 21:44:32.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/debian/compat 2013-01-02 01:14:23.000000000 +0000 @@ -1 +1 @@ -10 +8
  23. Download patch src/libpocketsphinx/state_align_search.c

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/state_align_search.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/state_align_search.c 2015-05-01 21:39:25.000000000 +0000 @@ -214,7 +214,7 @@ state_align_search_finish(ps_search_t *s /* Best state exiting the last cur_frame. */ last.id = cur.id = hmm_out_history(final_phone); last.score = hmm_out_score(final_phone); - if (last.id == 0xffff) { + if (last.score == 0xffff) { E_ERROR("Failed to reach final state in alignment\n"); return -1; }
  24. Download patch doc/pocketsphinx_continuous.1.in

    --- 0.8+5prealpha+1-2/doc/pocketsphinx_continuous.1.in 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/doc/pocketsphinx_continuous.1.in 2015-03-24 17:26:28.000000000 +0000 @@ -1,41 +1,35 @@ -.TH POCKETSPHINX_CONTINUOUS 1 "2016-04-01" +.TH POCKETSPHINX_CONTINUOUS 1 "2007-08-27" .SH NAME pocketsphinx_continuous \- Run speech recognition in continuous listening mode .SH SYNOPSIS .B pocketsphinx_continuous -.RI [ \fB\-infile\fR -\fIfilename.wav\fR ] -[ \fB\-inmic yes\fR ] -[ \fIoptions\fR ]... +.RI \fB\-hmm\fR +\fIhmmdir\fR +\fB\-dict\fR +\fIdictfile\fR +[\fI options \fR]... .SH DESCRIPTION .PP -This program opens the audio device or a file and waits for speech. When it +This program opens the audio device and waits for speech. When it detects an utterance, it performs speech recognition on it. +.\" ### ARGUMENTS ### .PP -To record from microphone and decode use -.TP -.B \-inmic yes -.PP -To decode a 16kHz 16-bit mono WAV file use -.TP -.B \-infile \fIfilename.wav\fR -.PP -You can also specify +The +.B \-hmm +and +.B \-dict +arguments are always required. Either .B \-lm or .B \-fsg -or -.B \-kws -depending on whether you are using a statistical language -model or a finite-state grammar or look for a keyphase. -.SH OPTIONS -.\" ### ARGUMENTS ### +is required, depending on whether you are using a statistical language +model or a finite-state grammar. .SH AUTHOR Written by numerous people at CMU from 1994 onwards. This manual page by David Huggins-Daines <dhuggins@cs.cmu.edu> .SH COPYRIGHT -Copyright \(co 1994-2016 Carnegie Mellon University. See the file -\fILICENSE\fR included with this package for more information. +Copyright \(co 1994-2007 Carnegie Mellon University. See the file +\fICOPYING\fR included with this package for more information. .br .SH "SEE ALSO" .BR pocketsphinx_batch (1),
  25. Download patch debian/pocketsphinx.links
  26. Download patch debian/control

    --- 0.8+5prealpha+1-2/debian/control 2018-04-28 10:09:04.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/debian/control 2016-02-09 16:03:17.000000000 +0000 @@ -1,39 +1,50 @@ Source: pocketsphinx -Priority: optional -Maintainer: Debian Accessibility Team <pkg-a11y-devel@lists.alioth.debian.org> +Priority: extra +Maintainer: Debian Accessibility Team <debian-accessibility@lists.debian.org> Uploaders: Samuel Thibault <sthibault@debian.org> -Build-Depends: debhelper (>= 10~), pkg-config, doxygen, +Build-Depends: debhelper (>= 8.0.0), dh-autoreconf, pkg-config, doxygen, libsphinxbase-dev (>= 0.8+5prealpha~), swig-sphinxbase, libgstreamer1.0-dev, libgstreamer-plugins-base1.0-dev, gstreamer1.0-plugins-base, - python-all-dev (>= 2.6.6-3~), python3-all-dev, python-all-dbg, swig, dh-python, - libjs-jquery -Standards-Version: 4.1.1 + python-all-dev (>= 2.6.6-3~), python-all-dbg, swig, dh-python +Standards-Version: 3.9.6 Section: sound Homepage: http://cmusphinx.sourceforge.net/ -Vcs-Git: https://anonscm.debian.org/git/pkg-a11y/pocketsphinx.git -Vcs-Browser: https://anonscm.debian.org/git/pkg-a11y/pocketsphinx.git -X-Python-Version: >= 2.6 -X-Python3-Version: >= 3.0 +Vcs-Git: git://git.debian.org/pkg-a11y/pocketsphinx.git +Vcs-Browser: http://git.debian.org/?p=pkg-a11y/pocketsphinx.git;a=summary Package: pocketsphinx Architecture: any Multi-Arch: foreign -Depends: ${shlibs:Depends}, ${misc:Depends}, libjs-jquery +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: pocketsphinx-utils +Provides: pocketsphinx-utils +Suggests: pocketsphinx-doc Description: Speech recognition tool CMU Sphinx is a large vocabulary, speaker-independent continuous speech recognition engine. . This package contains end-user speech recognition tools. +Package: pocketsphinx-doc +Architecture: all +Section: doc +Depends: ${misc:Depends}, libjs-jquery +Replaces: pocketsphinx +Description: Speech recognition tool (documentation) + CMU Sphinx is a large vocabulary, speaker-independent continuous speech + recognition engine. + . + This package contains the documentation. + Package: gstreamer1.0-pocketsphinx Architecture: any Multi-Arch: same Depends: ${shlibs:Depends}, ${misc:Depends} -Description: Speech recognition tool - GStreamer plugin +Description: Speech recognition tool - gstreamer plugin CMU Sphinx is a large vocabulary, speaker-independent continuous speech recognition engine. . - This package contains the GStreamer plugin + This package contains the gstreamer plugin Package: pocketsphinx-en-us Architecture: all @@ -75,18 +86,8 @@ Package: python-pocketsphinx Section: python Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-sphinxbase -Description: Speech recognition tool - Python bindings - CMU Sphinx is a large vocabulary, speaker-independent continuous speech - recognition engine. - . - This package contains Python bindings for libpocketsphinx. - -Package: python3-pocketsphinx -Section: python -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, python3-sphinxbase -Description: Speech recognition tool - Python3 bindings +Description: Speech recognition tool - python bindings CMU Sphinx is a large vocabulary, speaker-independent continuous speech recognition engine. . - This package contains Python3 bindings for libpocketsphinx. + This package contains python bindings for libpocketsphinx.
  27. Download patch model/en-us/cmudict-en-us.dict
  28. Download patch swig/pocketsphinx.i

    --- 0.8+5prealpha+1-2/swig/pocketsphinx.i 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/pocketsphinx.i 2015-05-14 19:36:42.000000000 +0000 @@ -82,24 +82,12 @@ typedef ngram_model_t NGramModelSet; %} #endif -#if SWIGJAVASCRIPT -%begin %{ -#include <v8.h> -#include <node.h> -#include <node_buffer.h> -%} -#endif - - %begin %{ +#include <pocketsphinx.h> -#ifndef __cplusplus typedef int bool; -#define true 1 #define false 0 -#endif - -#include <pocketsphinx.h> +#define true 1 typedef ps_decoder_t Decoder; typedef ps_decoder_t SegmentList; @@ -134,27 +122,23 @@ typedef struct { %} -%nodefaultctor SegmentList; -%nodefaultctor NBestList; - sb_iterator(Segment, ps_seg, Segment) sb_iterator(NBest, ps_nbest, NBest) -sb_iterable(SegmentList, Segment, ps_seg, ps_seg_iter, Segment) -sb_iterable(NBestList, NBest, ps_nbest, ps_nbest, NBest) +sb_iterable_java(SegmentList, Segment) +sb_iterable_java(NBestList, NBest) typedef struct {} Decoder; typedef struct {} Lattice; typedef struct {} NBestList; typedef struct {} SegmentList; - #ifdef HAS_DOC %include pydoc.i #endif %extend Hypothesis { Hypothesis(char const *hypstr, int best_score, int prob) { - Hypothesis *h = (Hypothesis *)ckd_malloc(sizeof *h); + Hypothesis *h = ckd_malloc(sizeof *h); if (hypstr) h->hypstr = ckd_salloc(hypstr); else @@ -177,7 +161,7 @@ typedef struct {} SegmentList; Segment *seg; if (!itor) return NULL; - seg = (Segment *)ckd_malloc(sizeof(Segment)); + seg = ckd_malloc(sizeof(Segment)); seg->word = ckd_salloc(ps_seg_word(itor)); seg->prob = ps_seg_prob(itor, &(seg->ascore), &(seg->lscore), &(seg->lback)); ps_seg_frames(itor, &seg->start_frame, &seg->end_frame); @@ -195,7 +179,7 @@ typedef struct {} SegmentList; NBest *nbest; if (!itor) return NULL; - nbest = (NBest *)ckd_malloc(sizeof(NBest)); + nbest = ckd_malloc(sizeof(NBest)); nbest->hypstr = ckd_salloc(ps_nbest_hyp(itor, &(nbest->score))); return nbest; } @@ -211,5 +195,26 @@ typedef struct {} SegmentList; } } + +%extend SegmentList { + SegmentList(ps_decoder_t *ptr) { + return ptr; + } + %newobject __iter__; + SegmentIterator * __iter__() { + int32 best_score; + return new_SegmentIterator(ps_seg_iter($self, &best_score)); + } +} +%extend NBestList { + NBestList(ps_decoder_t *ptr) { + return ptr; + } + %newobject __iter__; + NBestIterator * __iter__() { + return new_NBestIterator(ps_nbest_next(ps_nbest($self, 0, -1, NULL, NULL))); + } +} + %include ps_decoder.i %include ps_lattice.i
  29. Download patch src/libpocketsphinx/allphone_search.c
  30. Download patch debian/patches/fix-spelling-mistakes-found-by-lintian.patch

    --- 0.8+5prealpha+1-2/debian/patches/fix-spelling-mistakes-found-by-lintian.patch 2018-03-07 21:44:32.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/debian/patches/fix-spelling-mistakes-found-by-lintian.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -Description: Lintian found spelling mistakes -Author: Paul Gevers <elbrus@debian.org> - -Index: pocketsphinx/src/libpocketsphinx/mdef.c -=================================================================== ---- pocketsphinx.orig/src/libpocketsphinx/mdef.c -+++ pocketsphinx/src/libpocketsphinx/mdef.c -@@ -348,7 +348,7 @@ parse_base_line(mdef_t * m, char *line, - - /* Read filler attribute, if present */ - if (sscanf(lp, "%s%n", word, &wlen) != 1) -- E_FATAL("Missing filler atribute field: %s\n", line); -+ E_FATAL("Missing filler attribute field: %s\n", line); - lp += wlen; - if (strcmp(word, "filler") == 0) - m->ciphone[(int) ci].filler = 1;
  31. Download patch debian/patches/license

    --- 0.8+5prealpha+1-2/debian/patches/license 1970-01-01 00:00:00.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/debian/patches/license 2015-09-19 15:36:04.000000000 +0000 @@ -0,0 +1,35 @@ +Add license text forgotten in upstream tarball. + +--- /dev/null ++++ b/LICENSE +@@ -0,0 +1,30 @@ ++Copyright (c) 1999-2015 Carnegie Mellon University. All rights ++reserved. ++ ++Redistribution and use in source and binary forms, with or without ++modification, are permitted provided that the following conditions ++are met: ++ ++1. Redistributions of source code must retain the above copyright ++ notice, this list of conditions and the following disclaimer. ++ ++2. Redistributions in binary form must reproduce the above copyright ++ notice, this list of conditions and the following disclaimer in ++ the documentation and/or other materials provided with the ++ distribution. ++ ++This work was supported in part by funding from the Defense Advanced ++Research Projects Agency and the National Science Foundation of the ++United States of America, and the CMU Sphinx Speech Consortium. ++ ++THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND ++ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, ++THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR ++PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY ++NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ++SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ++LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ++DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ++THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ++OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32. Download patch configure.ac

    --- 0.8+5prealpha+1-2/configure.ac 2016-09-24 23:33:31.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/configure.ac 2015-05-01 21:39:26.000000000 +0000 @@ -2,7 +2,6 @@ dnl Welcome to the Sphinx automated buil dnl try not to hurt yourself ;) AC_INIT(pocketsphinx, 5prealpha) -AC_CONFIG_HEADERS([include/config.h]) AM_INIT_AUTOMAKE([no-define foreign]) AC_CONFIG_MACRO_DIR([m4]) @@ -10,6 +9,7 @@ CFLAGS=${CFLAGS:--g -O2 -Wall} AC_CANONICAL_HOST AC_PROG_CC +AC_WORDS_BIGENDIAN AC_CHECK_TYPES(long long) AC_CHECK_SIZEOF(long long)
  33. Download patch swig/python/test/phoneme_test.py

    --- 0.8+5prealpha+1-2/swig/python/test/phoneme_test.py 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/python/test/phoneme_test.py 1970-01-01 00:00:00.000000000 +0000 @@ -1,35 +0,0 @@ -#!/usr/bin/python - -from os import environ, path - -from pocketsphinx.pocketsphinx import * -from sphinxbase.sphinxbase import * - -MODELDIR = "../../../model" -DATADIR = "../../../test/data" - -# Create a decoder with certain model -config = Decoder.default_config() -config.set_string('-hmm', path.join(MODELDIR, 'en-us/en-us')) -config.set_string('-allphone', path.join(MODELDIR, 'en-us/en-us-phone.lm.bin')) -config.set_float('-lw', 2.0) -config.set_float('-pip', 0.3) -config.set_float('-beam', 1e-200) -config.set_float('-pbeam', 1e-20) -config.set_boolean('-mmap', False) - -# Decode streaming data. -decoder = Decoder(config) - -decoder.start_utt() -stream = open(path.join(DATADIR, 'goforward.raw'), 'rb') -while True: - buf = stream.read(1024) - if buf: - decoder.process_raw(buf, False, False) - else: - break -decoder.end_utt() - -hypothesis = decoder.hyp() -print ('Best phonemes: ', [seg.word for seg in decoder.seg()])
  34. Download patch debian/pocketsphinx-doc.docs

    --- 0.8+5prealpha+1-2/debian/pocketsphinx-doc.docs 1970-01-01 00:00:00.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/debian/pocketsphinx-doc.docs 2013-05-03 09:00:38.000000000 +0000 @@ -0,0 +1,3 @@ +AUTHORS +NEWS +doc/html
  35. Download patch test/data/wsj/test5k.n800.ctl

    --- 0.8+5prealpha+1-2/test/data/wsj/test5k.n800.ctl 1970-01-01 00:00:00.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/test5k.n800.ctl 2015-03-24 17:26:23.000000000 +0000 @@ -0,0 +1,7 @@ +n800_440c0201 +n800_440c0202 +n800_440c0203 +n800_440c0204 +n800_440c0205 +n800_440c0206 +n800_440c0207
  36. Download patch src/libpocketsphinx/Makefile.in

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/Makefile.in 2016-09-24 23:44:26.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/Makefile.in 2015-05-14 16:39:48.000000000 +0000 @@ -92,7 +92,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/a am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; @@ -154,7 +153,7 @@ AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include +DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f
  37. Download patch model/Makefile.in

    --- 0.8+5prealpha+1-2/model/Makefile.in 2016-09-24 23:44:26.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/model/Makefile.in 2015-07-05 00:34:41.000000000 +0000 @@ -91,7 +91,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/a am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@)
  38. Download patch model/en-us/en-us/feat.params

    --- 0.8+5prealpha+1-2/model/en-us/en-us/feat.params 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/model/en-us/en-us/feat.params 2015-03-24 17:26:25.000000000 +0000 @@ -6,7 +6,7 @@ -feat 1s_c_d_dd -svspec 0-12/13-25/26-38 -agc none --cmn batch +-cmn current -varnorm no -model ptm --cmninit 41.00,-5.29,-0.12,5.09,2.48,-4.07,-1.37,-1.78,-5.08,-2.05,-6.45,-1.42,1.17 +-cmninit 40,3,-1 Binary files 0.8+5prealpha+1-2/model/en-us/en-us.lm.bin and 0.8.0+real5prealpha-1ubuntu2/model/en-us/en-us.lm.bin differ
  39. Download patch swig/Makefile.in

    --- 0.8+5prealpha+1-2/swig/Makefile.in 2016-09-24 23:44:26.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/Makefile.in 2015-05-14 16:39:48.000000000 +0000 @@ -13,7 +13,6 @@ # PARTICULAR PURPOSE. @SET_MAKE@ - VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ @@ -79,8 +78,7 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = swig -DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ - $(dist_swig_DATA) +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_pkg_swig.m4 \ $(top_srcdir)/m4/ax_python_devel.m4 \ @@ -91,7 +89,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/a am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) @@ -121,35 +118,6 @@ am__can_run_installinfo = \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(swigdir)" -DATA = $(dist_swig_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ @@ -348,8 +316,7 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = python -swigdir = $(pkgdatadir)/swig -dist_swig_DATA = \ +EXTRA_DIST = \ pocketsphinx.i \ ps_decoder.i \ ps_lattice.i @@ -393,27 +360,6 @@ mostlyclean-libtool: clean-libtool: -rm -rf .libs _libs -install-dist_swigDATA: $(dist_swig_DATA) - @$(NORMAL_INSTALL) - @list='$(dist_swig_DATA)'; test -n "$(swigdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(swigdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(swigdir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(swigdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(swigdir)" || exit $$?; \ - done - -uninstall-dist_swigDATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_swig_DATA)'; test -n "$(swigdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(swigdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. @@ -571,12 +517,9 @@ distdir: $(DISTFILES) done check-am: all-am check: check-recursive -all-am: Makefile $(DATA) +all-am: Makefile installdirs: installdirs-recursive installdirs-am: - for dir in "$(DESTDIR)$(swigdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive @@ -627,7 +570,7 @@ info: info-recursive info-am: -install-data-am: install-dist_swigDATA +install-data-am: install-dvi: install-dvi-recursive @@ -671,7 +614,7 @@ ps: ps-recursive ps-am: -uninstall-am: uninstall-dist_swigDATA +uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip @@ -679,15 +622,14 @@ uninstall-am: uninstall-dist_swigDATA check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am \ - install-dist_swigDATA install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ - uninstall-am uninstall-dist_swigDATA + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am tags tags-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables.
  40. Download patch src/libpocketsphinx/ptm_mgau.c

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/ptm_mgau.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/ptm_mgau.c 2015-03-24 17:26:24.000000000 +0000 @@ -790,14 +790,11 @@ ptm_mgau_init(acmod_t *acmod, bin_mdef_t } /* Read means and variances. */ - if ((s->g = gauden_init(cmd_ln_str_r(s->config, "_mean"), - cmd_ln_str_r(s->config, "_var"), + if ((s->g = gauden_init(cmd_ln_str_r(s->config, "-mean"), + cmd_ln_str_r(s->config, "-var"), cmd_ln_float32_r(s->config, "-varfloor"), - s->lmath)) == NULL) { - E_ERROR("Failed to read means and variances\n"); + s->lmath)) == NULL) goto error_out; - } - /* We only support 256 codebooks or less (like 640k or 2GB, this * should be enough for anyone) */ if (s->g->n_mgau > 256) { @@ -822,13 +819,13 @@ ptm_mgau_init(acmod_t *acmod, bin_mdef_t } } /* Read mixture weights. */ - if ((sendump_path = cmd_ln_str_r(s->config, "_sendump"))) { + if ((sendump_path = cmd_ln_str_r(s->config, "-sendump"))) { if (read_sendump(s, acmod->mdef, sendump_path) < 0) { goto error_out; } } else { - if (read_mixw(s, cmd_ln_str_r(s->config, "_mixw"), + if (read_mixw(s, cmd_ln_str_r(s->config, "-mixw"), cmd_ln_float32_r(s->config, "-mixwfloor")) < 0) { goto error_out; }
  41. Download patch src/libpocketsphinx/allphone_search.h

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/allphone_search.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/allphone_search.h 2015-05-01 21:39:25.000000000 +0000 @@ -174,6 +174,7 @@ int allphone_search_finish(ps_search_t * /** * Get hypothesis string from the allphone search. */ -char const *allphone_search_hyp(ps_search_t * search, int32 * out_score); +char const *allphone_search_hyp(ps_search_t * search, int32 * out_score, + int32 * out_is_final); #endif /* __ALLPHONE_SEARCH_H__ */
  42. Download patch test/data/wsj/test5k.s1.ctl

    --- 0.8+5prealpha+1-2/test/data/wsj/test5k.s1.ctl 1970-01-01 00:00:00.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/test5k.s1.ctl 2015-03-24 17:26:23.000000000 +0000 @@ -0,0 +1,7 @@ +443c0201 +444c0201 +446c0201 +447c0201 +440c0201 +441c0201 +442c0201
  43. Download patch src/programs/batch.c

    --- 0.8+5prealpha+1-2/src/programs/batch.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/programs/batch.c 2015-05-01 21:39:26.000000000 +0000 @@ -489,7 +489,7 @@ write_nbest(ps_decoder_t *ps, char const E_ERROR_SYSTEM("Failed to write a lattice to file %s\n", outfile); return -1; } - nbest = ps_nbest(ps); + nbest = ps_nbest(ps, 0, -1, NULL, NULL); for (i = 0; i < n && nbest && (nbest = ps_nbest_next(nbest)); i++) { hyp = ps_nbest_hyp(nbest, &score); fprintf(fh, "%s %d\n", hyp, score); @@ -504,23 +504,22 @@ write_nbest(ps_decoder_t *ps, char const static int write_hypseg(FILE *fh, ps_decoder_t *ps, char const *uttid) { - int32 ascr, lscr, sf, ef; - ps_seg_t *itor = ps_seg_iter(ps); + int32 score, lscr, sf, ef; + ps_seg_t *itor = ps_seg_iter(ps, &score); /* Accumulate language model scores. */ - lscr = 0; ascr = 0; + lscr = 0; while (itor) { - int32 wlascr, wlscr; - ps_seg_prob(itor, &wlascr, &wlscr, NULL); + int32 ascr, wlscr; + ps_seg_prob(itor, &ascr, &wlscr, NULL); lscr += wlscr; - ascr += wlascr; itor = ps_seg_next(itor); } fprintf(fh, "%s S %d T %d A %d L %d", uttid, 0, /* "scaling factor" which is mostly useless anyway */ - ascr + lscr, ascr, lscr); + score, score - lscr, lscr); /* Now print out words. */ - itor = ps_seg_iter(ps); + itor = ps_seg_iter(ps, &score); while (itor) { char const *w = ps_seg_word(itor); int32 ascr, wlscr; @@ -747,7 +746,7 @@ process_ctl(ps_decoder_t *ps, cmd_ln_t * write_hypseg(hypsegfh, ps, uttid); } if (ctmfh) { - ps_seg_t *itor = ps_seg_iter(ps); + ps_seg_t *itor = ps_seg_iter(ps, &score); write_ctm(ctmfh, ps, itor, uttid, frate); } if (outlatdir) {
  44. Download patch test/data/wsj/s1.mllr

    --- 0.8+5prealpha+1-2/test/data/wsj/s1.mllr 1970-01-01 00:00:00.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/s1.mllr 2015-03-24 17:26:23.000000000 +0000 @@ -0,0 +1,65 @@ +1 +4 +12 +0.940390 0.007725 0.021729 0.113252 0.006644 -0.006571 -0.083503 -0.015465 0.263964 0.012408 0.004966 -0.196122 +0.031366 1.001066 -0.021455 0.005193 -0.012178 0.029737 -0.108461 0.094827 -0.101428 0.159052 0.108956 0.141865 +0.005420 0.003167 1.023671 0.005030 0.042207 0.007976 0.029756 -0.059187 0.041448 -0.105523 -0.001956 -0.061292 +0.019203 0.011480 0.016705 0.999544 -0.045127 0.060600 0.006433 0.116658 0.015809 0.041293 -0.003695 0.039516 +0.000019 -0.001734 0.010966 0.003887 1.028791 -0.044572 -0.026165 0.027687 -0.065629 -0.078397 -0.071210 -0.043319 +0.016770 0.026971 0.013780 0.000531 -0.016041 1.056132 -0.023315 0.014044 -0.113499 0.067735 -0.021796 0.016409 +-0.012641 0.014621 -0.033366 -0.025232 0.013881 0.013236 1.038147 -0.053471 -0.005998 -0.099930 0.037376 -0.047280 +0.018230 0.000533 -0.008817 -0.000064 0.072466 0.000374 -0.052802 0.971423 -0.094397 0.134858 -0.056951 0.117353 +0.000864 0.011655 -0.012263 -0.000086 -0.056779 -0.021218 0.053300 0.044134 1.049278 -0.086728 0.079727 0.019165 +0.009196 -0.009538 0.008170 0.014651 0.005991 0.000056 0.009552 -0.015178 0.035744 1.101195 -0.012110 -0.016937 +0.014225 -0.000656 -0.008505 -0.019111 0.001682 0.047478 0.051453 0.058826 0.010395 0.014747 0.973372 -0.070182 +-0.009949 -0.013874 0.015825 0.015306 -0.014386 -0.043741 -0.080558 0.006344 0.075583 -0.025568 -0.026412 0.959384 +-0.223822 0.034186 -0.108106 0.037343 -0.019466 -0.033233 -0.028926 0.021741 0.027844 -0.016738 -0.013659 0.028252 +0.931519 0.935903 0.989604 0.984650 0.990995 0.965613 0.963798 0.926834 0.987388 1.022624 0.961524 1.019698 +24 +1.100894 -0.146139 0.055304 0.058016 0.271488 -0.016345 -0.404846 0.082270 0.212430 0.258058 -0.207412 -0.163666 -0.066808 0.100400 -0.003966 -0.029981 -0.173611 0.044973 0.278533 -0.063175 -0.203175 -0.220448 0.214454 0.272712 +0.020761 0.942077 -0.057709 0.134259 0.044145 -0.123779 -0.045097 0.015401 0.279010 -0.237251 0.515570 -0.934210 -0.010693 0.037944 0.016048 -0.108499 -0.040254 0.098391 0.033867 0.085721 -0.213024 0.211534 -0.479493 0.742719 +0.041927 -0.050101 1.160856 -0.110844 -0.017442 0.126683 -0.015886 -0.012575 -0.030146 -0.138060 0.065060 0.342332 -0.019208 0.014619 -0.091320 0.051670 0.062580 -0.094495 0.015886 -0.067673 0.030332 0.143677 0.035285 -0.247553 +0.021260 -0.050271 0.040376 1.051341 -0.062761 -0.010284 -0.060968 0.127416 -0.026445 0.151531 -0.395135 0.274958 -0.012152 0.040516 -0.030925 -0.046037 0.010813 0.028426 0.020515 -0.000413 -0.026432 -0.120519 0.196150 -0.099363 +0.005372 0.032703 -0.000200 0.007216 1.005519 -0.048978 0.094048 -0.053813 0.072819 0.036499 -0.125006 -0.001459 0.002776 -0.027146 0.017293 0.015825 0.049938 0.023881 -0.052574 0.045495 -0.056812 -0.094360 0.078636 -0.125629 +0.014435 -0.020988 0.001696 -0.085466 0.101829 1.079285 -0.041164 -0.073335 -0.142705 0.329345 0.015639 -0.160237 -0.004592 0.028591 0.029875 0.048120 -0.057178 -0.063421 0.023356 0.021559 0.040294 -0.262360 0.002492 0.176855 +-0.008932 0.007061 -0.039349 -0.018523 0.106059 0.000261 1.009382 -0.193090 0.139300 -0.197911 0.343685 -0.256394 -0.019175 -0.013738 -0.006362 -0.000413 -0.082839 0.001195 -0.017625 0.134637 -0.147603 0.096289 -0.267913 0.111699 +0.006065 -0.001977 0.008694 -0.045513 0.142608 -0.114355 -0.044953 1.008752 -0.018168 -0.049400 0.176179 -0.186869 -0.001543 0.012968 0.001437 0.020608 -0.079745 0.066363 0.036967 -0.049926 0.004435 0.069060 -0.184114 0.134719 +-0.025171 0.080314 -0.096945 0.086767 -0.192089 0.090919 -0.018980 -0.093057 1.218095 -0.265129 -0.000178 0.133154 0.009271 -0.050833 0.061466 -0.070571 0.094326 -0.059273 0.032013 0.106565 -0.171972 0.117797 0.016919 -0.002885 +0.015078 -0.032096 -0.005840 0.063960 -0.094261 0.018653 0.005121 -0.100139 -0.033243 1.095647 0.101912 -0.082092 -0.000104 0.022233 0.005398 -0.034255 0.050863 0.006375 0.002150 0.053915 0.035898 -0.007288 -0.058586 0.078791 +0.005556 0.083574 -0.055695 -0.015243 -0.086931 0.050345 -0.108146 0.189578 0.113045 -0.062915 1.292069 -0.307834 0.003413 -0.055038 0.031876 -0.011467 0.071204 0.014649 0.098938 -0.104203 -0.060754 0.073702 -0.181176 0.164327 +0.018036 -0.017305 0.016026 -0.045192 0.109094 -0.078767 0.089020 -0.096187 -0.008265 -0.078295 0.024573 1.128272 -0.021745 0.009155 -0.013349 0.054725 -0.086913 0.019249 -0.120913 0.108070 0.077625 0.032478 -0.076469 -0.195441 +0.049933 0.073794 -0.012110 0.150323 -0.150404 0.148417 -0.063669 0.196899 -0.415687 0.479061 -0.733790 1.128010 0.909437 -0.054809 0.056537 -0.120349 0.152747 -0.095032 0.031564 -0.128549 0.360514 -0.354022 0.566347 -0.816114 +0.035200 -0.112346 0.024748 0.058778 0.261758 -0.309005 -0.100751 -0.263668 0.776667 -0.369047 0.818343 -1.408991 -0.042116 1.085457 -0.058219 -0.061611 -0.233831 0.212258 -0.018023 0.374140 -0.554844 0.339015 -0.800129 1.006197 +-0.009873 0.087537 -0.059478 -0.152122 -0.029703 0.337122 -0.255920 0.155540 -0.080489 -0.253247 0.195224 0.093676 0.009407 -0.108231 1.042437 0.078970 0.095854 -0.289436 0.160239 -0.189184 0.032463 0.262892 -0.062456 -0.041819 +-0.018143 -0.058287 0.130700 -0.091463 -0.037947 -0.103804 0.272745 -0.092847 -0.054548 -0.059322 -0.009190 0.284372 0.010439 0.037092 -0.092353 1.076719 -0.068514 0.156744 -0.291249 0.253019 0.027419 0.026143 -0.170965 -0.135148 +-0.019586 0.101846 -0.080405 -0.015411 -0.077162 0.047239 0.201837 -0.175841 -0.048099 0.163217 -0.305378 0.410796 0.012263 -0.085564 0.079104 0.040391 1.103532 -0.089292 -0.190320 0.141185 0.095009 -0.102016 0.148095 -0.566837 +0.040291 -0.134198 0.028328 0.082989 0.180755 -0.189047 0.020975 -0.172874 0.092237 0.155866 0.187383 -0.440846 -0.011730 0.099894 0.003057 -0.086801 -0.094005 1.142260 -0.055290 0.103735 -0.208966 -0.090104 -0.078094 0.458595 +0.002493 0.059070 -0.083027 -0.023961 -0.001775 0.070126 -0.078203 0.052354 -0.010560 -0.189318 0.189533 0.145188 -0.035328 -0.052913 -0.003862 -0.006635 -0.016117 -0.040709 1.046019 -0.077457 -0.063079 0.055047 -0.083486 -0.189560 +-0.006011 -0.048769 0.120436 -0.116650 0.176727 -0.097130 0.060352 -0.063648 0.074377 -0.160914 0.210180 -0.210131 0.007631 0.049612 -0.033932 0.052496 -0.083046 0.038406 0.000426 0.956754 -0.110704 0.115213 -0.206888 0.252363 +-0.033754 0.040685 -0.017813 0.096439 -0.072110 -0.050630 -0.006506 -0.096369 0.324709 -0.283876 -0.042035 -0.099682 0.024281 -0.012395 -0.008143 -0.081256 -0.012998 0.056420 0.032172 0.129200 0.793505 0.085412 0.066709 0.200389 +0.028890 -0.050499 -0.044230 0.090533 0.027115 0.040921 -0.066537 -0.048048 0.058925 0.048070 0.081107 -0.335833 -0.009718 0.018833 0.029208 -0.049450 -0.025784 -0.030494 0.043461 -0.001552 -0.012657 1.095053 -0.035023 0.244816 +-0.023223 0.083456 -0.042536 0.075631 -0.116279 0.105812 -0.172851 0.155838 0.153633 -0.079214 0.172714 -0.481852 0.025944 -0.051797 0.006092 -0.093469 0.072918 -0.019821 0.167959 -0.062913 -0.091005 0.077888 0.907784 0.296696 +0.004274 -0.003844 0.018244 -0.057918 -0.022525 -0.090594 0.225875 0.000458 -0.156820 -0.057144 -0.041449 0.406843 -0.018730 -0.014897 0.007473 0.075968 0.018323 0.013890 -0.267574 0.084027 0.224904 0.034051 -0.068336 0.492451 +0.006975 -0.003635 -0.005130 -0.003281 0.004032 -0.003319 -0.015212 -0.010757 0.000242 0.006560 -0.006457 -0.000332 0.002752 -0.011482 -0.005055 -0.005117 0.006740 -0.004083 -0.019354 -0.003310 0.001023 0.003381 -0.012498 -0.000250 +1.014610 0.967570 0.995381 0.982298 1.061855 0.988299 0.965800 0.987844 1.045274 1.079595 1.089225 0.998581 0.946458 0.958787 1.013429 0.962358 1.016202 0.985315 0.988992 0.941677 1.095507 1.100293 1.018671 1.016287 +3 +1.064573 0.003185 0.017742 +-0.010610 1.035844 0.001944 +0.030792 0.004377 1.051379 +-0.040866 0.140259 -0.048138 +1.085700 0.909788 0.888509 +12 +1.019011 -0.007147 0.028215 -0.013646 0.014643 0.014852 -0.024798 0.024513 0.000082 0.001508 -0.031024 0.095944 +-0.003346 1.012540 -0.016544 -0.003841 -0.024089 0.011689 -0.008780 0.050608 -0.026651 0.001694 0.031389 -0.032423 +0.004329 -0.009106 1.041523 -0.039910 -0.011061 -0.008491 -0.020671 0.015683 -0.025417 0.009509 0.006566 0.022113 +0.006987 -0.000360 -0.015824 1.027961 -0.002880 -0.012128 -0.008984 0.018194 -0.012736 0.020514 -0.022163 0.004766 +0.014850 -0.024163 0.027793 0.014053 1.081893 -0.046113 -0.002313 -0.034154 0.001594 -0.068600 0.051250 -0.067070 +0.012551 0.019010 -0.020435 -0.013153 -0.002295 1.058410 -0.045883 0.036449 -0.100393 0.146327 -0.121299 0.087610 +-0.015239 -0.000431 -0.009909 -0.014613 0.028350 0.007600 1.061224 -0.039016 0.028450 -0.121428 -0.005666 -0.038329 +0.015651 -0.005009 0.007373 -0.023457 0.036747 -0.003830 -0.027651 1.052427 -0.077234 0.098565 -0.056416 -0.006882 +-0.006350 0.006716 -0.009650 0.008657 -0.077598 0.015932 -0.005902 -0.018013 1.128683 -0.120728 0.122282 -0.048501 +-0.000171 0.006467 -0.000546 0.013902 -0.065300 0.009092 -0.051705 0.010712 -0.007143 1.132145 -0.038142 0.056580 +0.011951 0.003580 -0.000658 -0.034418 -0.007844 0.034708 -0.002305 0.009058 -0.032716 0.011881 1.120229 0.048953 +0.004272 0.006743 0.003325 0.006027 0.007456 -0.014992 -0.043475 -0.038588 0.047881 -0.034338 0.049074 1.062739 +-0.008360 0.003070 0.005916 -0.011755 0.005185 0.012353 -0.006096 -0.005277 -0.001653 -0.007599 -0.006388 0.014825 +0.932566 0.919101 0.918706 0.934464 1.019066 0.964584 0.939827 0.980068 1.009679 1.052255 1.083231 0.987528
  45. Download patch test/data/librivox/transcription

    --- 0.8+5prealpha+1-2/test/data/librivox/transcription 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/test/data/librivox/transcription 1970-01-01 00:00:00.000000000 +0000 @@ -1,5 +0,0 @@ -<s> and mister john dashwood had then leisure to consider how much there might be prudently in his power to do for them </s> (sense_and_sensibility_01_austen_64kb-0870) -<s> he was not an ill disposed young man </s> (sense_and_sensibility_01_austen_64kb-0880) -<s> unless to be rather cold hearted and rather selfish is to be ill disposed </s> (sense_and_sensibility_01_austen_64kb-0890) -<s> had he married a more a amiable woman he might have been made still more respectable than he was </s> (sense_and_sensibility_01_austen_64kb-0920) -<s> he might even have been made amiable himself </s> (sense_and_sensibility_01_austen_64kb-0930) Binary files 0.8+5prealpha+1-2/test/data/wsj/440c0201.mfc and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/440c0201.mfc differ Binary files 0.8+5prealpha+1-2/test/data/wsj/441c0201.mfc and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/441c0201.mfc differ Binary files 0.8+5prealpha+1-2/test/data/wsj/442c0201.mfc and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/442c0201.mfc differ Binary files 0.8+5prealpha+1-2/test/data/wsj/443c0201.mfc and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/443c0201.mfc differ Binary files 0.8+5prealpha+1-2/test/data/wsj/444c0201.mfc and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/444c0201.mfc differ Binary files 0.8+5prealpha+1-2/test/data/wsj/446c0201.mfc and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/446c0201.mfc differ Binary files 0.8+5prealpha+1-2/test/data/wsj/447c0201.mfc and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/447c0201.mfc differ Binary files 0.8+5prealpha+1-2/test/data/wsj/n800_440c0201.wav and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/n800_440c0201.wav differ Binary files 0.8+5prealpha+1-2/test/data/wsj/n800_440c0202.wav and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/n800_440c0202.wav differ Binary files 0.8+5prealpha+1-2/test/data/wsj/n800_440c0203.wav and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/n800_440c0203.wav differ Binary files 0.8+5prealpha+1-2/test/data/wsj/n800_440c0204.wav and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/n800_440c0204.wav differ Binary files 0.8+5prealpha+1-2/test/data/wsj/n800_440c0205.wav and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/n800_440c0205.wav differ Binary files 0.8+5prealpha+1-2/test/data/wsj/n800_440c0206.wav and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/n800_440c0206.wav differ Binary files 0.8+5prealpha+1-2/test/data/wsj/n800_440c0207.wav and 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/n800_440c0207.wav differ
  46. Download patch include/pocketsphinx.h

    --- 0.8+5prealpha+1-2/include/pocketsphinx.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/include/pocketsphinx.h 2015-06-09 19:31:06.000000000 +0000 @@ -38,6 +38,12 @@ #ifndef __POCKETSPHINX_H__ #define __POCKETSPHINX_H__ +#ifdef __cplusplus +extern "C" { +#endif +#if 0 +} +#endif /* System headers we need. */ #include <stdio.h> @@ -54,13 +60,6 @@ #include <ps_lattice.h> #include <ps_mllr.h> -#ifdef __cplusplus -extern "C" { -#endif -#if 0 -} -#endif - /** * PocketSphinx speech recognizer object. */ @@ -409,6 +408,17 @@ POCKETSPHINX_EXPORT char const *ps_get_hyp(ps_decoder_t *ps, int32 *out_best_score); /** + * Get hypothesis string and final flag. + * + * @param ps Decoder. + * @param out_is_best_score Output: if hypothesis is reached final state in the grammar. + * @return String containing best hypothesis at this point in + * decoding. NULL if no hypothesis is available. + */ +POCKETSPHINX_EXPORT +char const *ps_get_hyp_final(ps_decoder_t *ps, int32 *out_is_final); + +/** * Get posterior probability. * * @note Unless the -bestpath option is enabled, this function will @@ -444,11 +454,12 @@ ps_lattice_t *ps_get_lattice(ps_decoder_ * Get an iterator over the word segmentation for the best hypothesis. * * @param ps Decoder. + * @param out_best_score Output: path score corresponding to hypothesis. * @return Iterator over the best hypothesis at this point in * decoding. NULL if no hypothesis is available. */ POCKETSPHINX_EXPORT -ps_seg_t *ps_seg_iter(ps_decoder_t *ps); +ps_seg_t *ps_seg_iter(ps_decoder_t *ps, int32 *out_best_score); /** * Get the next segment in a word segmentation. @@ -516,15 +527,22 @@ POCKETSPHINX_EXPORT void ps_seg_free(ps_seg_t *seg); /** - * Get an iterator over the best hypotheses. The function may also + * Get an iterator over the best hypotheses, optionally within a + * selected region of the utterance. Iterator is empty now, it must + * be advanced with ps_nbest_next first. The function may also * return a NULL which means that there is no hypothesis available for this * utterance. * * @param ps Decoder. + * @param sf Start frame for N-best search (0 for whole utterance) + * @param ef End frame for N-best search (-1 for whole utterance) + * @param ctx1 First word of trigram context (NULL for whole utterance) + * @param ctx2 First word of trigram context (NULL for whole utterance) * @return Iterator over N-best hypotheses or NULL if no hypothesis is available */ POCKETSPHINX_EXPORT -ps_nbest_t *ps_nbest(ps_decoder_t *ps); +ps_nbest_t *ps_nbest(ps_decoder_t *ps, int sf, int ef, + char const *ctx1, char const *ctx2); /** * Move an N-best list iterator forward. @@ -554,7 +572,7 @@ char const *ps_nbest_hyp(ps_nbest_t *nbe * @return Iterator over the next best hypothesis. */ POCKETSPHINX_EXPORT -ps_seg_t *ps_nbest_seg(ps_nbest_t *nbest); +ps_seg_t *ps_nbest_seg(ps_nbest_t *nbest, int32 *out_score); /** * Finish N-best search early, releasing resources.
  47. Download patch pocketsphinx.pc.in

    --- 0.8+5prealpha+1-2/pocketsphinx.pc.in 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/pocketsphinx.pc.in 2015-03-24 17:26:24.000000000 +0000 @@ -3,8 +3,8 @@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ libs=@LIBS@ -datadir=@datarootdir@/@PACKAGE@ -modeldir=@datarootdir@/@PACKAGE@/model +datarootdir=@datarootdir@ +modeldir=@datadir@/@PACKAGE@/model Name: PocketSphinx Description: Lightweight speech recognition system
  48. Download patch test/data/wsj/test-hub4-simple.match

    --- 0.8+5prealpha+1-2/test/data/wsj/test-hub4-simple.match 1970-01-01 00:00:00.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/test-hub4-simple.match 2015-03-24 17:26:23.000000000 +0000 @@ -0,0 +1,7 @@ +the labor department said non farm payroll employment increased our robust three hundred thirty seven thousand last month after a revised three hundred nineteen thousand gain the month before (443c0201 -141053) +in the nineteen eighty five quarter the owner and operator of health maintenance organizations earned six .point nine million dollars or twenty four cents a share (444c0201 -109296) +here are price trends on the world's major stock markets as calculated by morgan stanley capital international perspective geneva (446c0201 -74208) +i don't mean there can be some improvements in the revenue act of nineteen eighty six which took effect this small (447c0201 -78707) +at any see the need for international managers will keep rising (440c0201 -60386) +first commodity appeal the explosion and fined to the c. f. t. c. (441c0201 -68809) +bids totaling five hundred twenty five .point five million dollars were submitted (442c0201 -52826)
  49. Download patch configure
  50. Download patch src/libpocketsphinx/ms_mgau.c

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/ms_mgau.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/ms_mgau.c 2015-03-24 17:26:24.000000000 +0000 @@ -96,13 +96,10 @@ ms_mgau_init(acmod_t *acmod, logmath_t * msg->g = NULL; msg->s = NULL; - if ((g = msg->g = gauden_init(cmd_ln_str_r(config, "_mean"), - cmd_ln_str_r(config, "_var"), + g = msg->g = gauden_init(cmd_ln_str_r(config, "-mean"), + cmd_ln_str_r(config, "-var"), cmd_ln_float32_r(config, "-varfloor"), - lmath)) == NULL) { - E_ERROR("Failed to read means and variances\n"); - goto error_out; - } + lmath); /* Verify n_feat and veclen, against acmod. */ if (g->n_feat != feat_dimension1(acmod->fcb)) { @@ -119,8 +116,8 @@ ms_mgau_init(acmod_t *acmod, logmath_t * } s = msg->s = senone_init(msg->g, - cmd_ln_str_r(config, "_mixw"), - cmd_ln_str_r(config, "_senmgau"), + cmd_ln_str_r(config, "-mixw"), + cmd_ln_str_r(config, "-senmgau"), cmd_ln_float32_r(config, "-mixwfloor"), lmath, mdef);
  51. Download patch include/ps_search.h

    --- 0.8+5prealpha+1-2/include/ps_search.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/include/ps_search.h 2015-06-03 15:53:11.000000000 +0000 @@ -39,7 +39,7 @@ * There are different possible search modes: * * <ul> - * <li>keyphrase - efficiently looks for keyphrase and ignores other speech. allows to configure detection threshold.</li> + * <li>keyword - efficiently looks for keyphrase and ignores other speech. allows to configure detection threshold.</li> * <li>grammar - recognizes speech according to JSGF grammar. Unlike keyphrase grammar search doesn't ignore words which are not in grammar but tries to recognize them.</li> * <li>ngram/lm - recognizes natural speech with a language model.</li> * <li>allphone - recognizes phonemes with a phonetic language model.</li> @@ -55,10 +55,10 @@ * application. * * The exact design of a searches depends on your application. For - * example, you might want to listen for activation keyphrase first and once - * keyphrase is recognized switch to ngram search to recognize actual + * example, you might want to listen for activation keyword first and once + * keyword is recognized switch to ngram search to recognize actual * command. Once you recognized the command you can switch to grammar - * search to recognize the confirmation and then switch back to keyphrase listening + * search to recognize the confirmation and then switch back to keyword listening * mode to wait for another command. * * If only a simple recognition is required it is sufficient to add a single search or @@ -68,15 +68,12 @@ #ifndef __PS_SEARCH_H__ #define __PS_SEARCH_H__ -#include <sphinxbase/fsg_model.h> -#include <sphinxbase/ngram_model.h> - #ifdef __cplusplus extern "C" { #endif -#if 0 -} -#endif + +#include <sphinxbase/fsg_model.h> +#include <sphinxbase/ngram_model.h> /** * PocketSphinx search iterator. @@ -251,7 +248,7 @@ POCKETSPHINX_EXPORT const char* ps_get_kws(ps_decoder_t *ps, const char *name); /** - * Adds keyphrases from a file to spotting + * Adds keywords from a file to spotting * * Associates KWS search with the provided name. The search can be activated * using ps_set_search(). @@ -262,7 +259,7 @@ POCKETSPHINX_EXPORT int ps_set_kws(ps_decoder_t *ps, const char *name, const char *keyfile); /** - * Adds new keyphrase to spot + * Adds new keyword to spot * * Associates KWS search with the provided name. The search can be activated * using ps_set_search().
  52. Download patch src/libpocketsphinx/ps_lattice.c

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/ps_lattice.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/ps_lattice.c 2015-05-01 21:39:25.000000000 +0000 @@ -1321,10 +1321,10 @@ ps_lattice_bestpath(ps_lattice_t *dag, n /* Calculate language score for bestpath if possible */ if (lmset && !w1_is_fil && !w2_is_fil) { if (w3_is_fil) - /* partial context available */ + //partial context available score += (ngram_bg_score(lmset, w1_wid, w2_wid, &n_used) >> SENSCR_SHIFT) * lwf; else - /* full context available */ + //full context available score += (ngram_tg_score(lmset, w1_wid, w2_wid, w3_wid, &n_used) >> SENSCR_SHIFT) * lwf; }
  53. Download patch debian/watch

    --- 0.8+5prealpha+1-2/debian/watch 2018-03-07 21:44:32.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/debian/watch 2014-08-22 22:04:22.000000000 +0000 @@ -1,4 +1,2 @@ version=3 -opts= \ -dversionmangle=s/0.8\+//;s/(5prealpha)\+1/$1/ \ -http://sf.net/cmusphinx/ pocketsphinx(?:[_\-]v?|)(\d[^\s/]*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz) +http://sf.net/cmusphinx/pocketsphinx-([0-9].*)\.tar\.gz
  54. Download patch swig/ps_decoder.i

    --- 0.8+5prealpha+1-2/swig/ps_decoder.i 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/ps_decoder.i 2015-07-05 00:26:48.000000000 +0000 @@ -130,23 +130,11 @@ ckd_free_2d(feats); return *errcode; } -#elif SWIGJAVASCRIPT - int process_raw(SWIG_Object ptr, bool no_search, bool full_utt, - int *errcode) { - int16* data = (int16*) node::Buffer::Data(ptr); - size_t length = node::Buffer::Length(ptr) / sizeof(int16); - return *errcode = ps_process_raw($self, data, length, no_search, full_utt); - } -#elif SWIGJAVA +#else int process_raw(const int16 *SDATA, size_t NSAMP, bool no_search, bool full_utt, int *errcode) { return *errcode = ps_process_raw($self, SDATA, NSAMP, no_search, full_utt); } -#elif SWIGRUBY - int process_raw(const char* STRING, size_t SIZE, bool no_search, bool full_utt, - int *errcode) { - return *errcode = ps_process_raw($self, (const int16 *)STRING, SIZE / 2, no_search, full_utt); - } #endif #ifdef SWIGJAVA
  55. Download patch doc/pocketsphinx_continuous.1
  56. Download patch debian/patches/series

    --- 0.8+5prealpha+1-2/debian/patches/series 2018-03-07 21:44:32.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/debian/patches/series 2015-09-19 15:35:16.000000000 +0000 @@ -1 +1 @@ -fix-spelling-mistakes-found-by-lintian.patch +license
  57. Download patch swig/python/test/fsg_test.py

    --- 0.8+5prealpha+1-2/swig/python/test/fsg_test.py 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/python/test/fsg_test.py 2015-05-02 17:51:40.000000000 +0000 @@ -11,5 +11,3 @@ fsg.word_add("hello") fsg.word_add("world") print (fsg.word_id("world")) -fsg.add_silence("<sil>", 1, 0.5) -
  58. Download patch src/libpocketsphinx/kws_search.c
  59. Download patch src/libpocketsphinx/fsg_search.c

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/fsg_search.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/fsg_search.c 2015-05-01 21:39:25.000000000 +0000 @@ -70,7 +70,7 @@ #define __FSG_DBG__ 0 #define __FSG_DBG_CHAN__ 0 -static ps_seg_t *fsg_search_seg_iter(ps_search_t *search); +static ps_seg_t *fsg_search_seg_iter(ps_search_t *search, int32 *out_score); static ps_lattice_t *fsg_search_lattice(ps_search_t *search); static int fsg_search_prob(ps_search_t *search); @@ -245,9 +245,7 @@ fsg_search_init(const char *name, { ps_search_free(ps_search_base(fsgs)); return NULL; - } - ptmr_init(&fsgs->perf); return ps_search_base(fsgs); } @@ -257,16 +255,6 @@ fsg_search_free(ps_search_t *search) { fsg_search_t *fsgs = (fsg_search_t *)search; - double n_speech = (double)fsgs->n_tot_frame - / cmd_ln_int32_r(ps_search_config(fsgs), "-frate"); - - E_INFO("TOTAL fsg %.2f CPU %.3f xRT\n", - fsgs->perf.t_tot_cpu, - fsgs->perf.t_tot_cpu / n_speech); - E_INFO("TOTAL fsg %.2f wall %.3f xRT\n", - fsgs->perf.t_tot_elapsed, - fsgs->perf.t_tot_elapsed / n_speech); - ps_search_base_free(search); fsg_lextree_free(fsgs->lextree); if (fsgs->history) { @@ -814,9 +802,6 @@ fsg_search_start(ps_search_t *search) fsgs->n_hmm_eval = 0; fsgs->n_sen_eval = 0; - ptmr_reset(&fsgs->perf); - ptmr_start(&fsgs->perf); - return 0; } @@ -829,7 +814,7 @@ fsg_search_finish(ps_search_t *search) fsg_search_t *fsgs = (fsg_search_t *)search; gnode_t *gn; fsg_pnode_t *pnode; - int32 n_hist, cf; + int32 n_hist; /* Deactivate all nodes in the current and next-frame active lists */ for (gn = fsgs->pnode_active; gn; gn = gnode_next(gn)) { @@ -849,7 +834,6 @@ fsg_search_finish(ps_search_t *search) fsgs->final = TRUE; n_hist = fsg_history_n_entries(fsgs->history); - fsgs->n_tot_frame += fsgs->frame; E_INFO ("%d frames, %d HMMs (%d/fr), %d senones (%d/fr), %d history entries (%d/fr)\n\n", fsgs->frame, fsgs->n_hmm_eval, @@ -858,31 +842,20 @@ fsg_search_finish(ps_search_t *search) (fsgs->frame > 0) ? fsgs->n_sen_eval / fsgs->frame : 0, n_hist, (fsgs->frame > 0) ? n_hist / fsgs->frame : 0); - /* Print out some statistics. */ - ptmr_stop(&fsgs->perf); - /* This is the number of frames processed. */ - cf = ps_search_acmod(fsgs)->output_frame; - if (cf > 0) { - double n_speech = (double) (cf + 1) - / cmd_ln_int32_r(ps_search_config(fsgs), "-frate"); - E_INFO("fsg %.2f CPU %.3f xRT\n", - fsgs->perf.t_cpu, fsgs->perf.t_cpu / n_speech); - E_INFO("fsg %.2f wall %.3f xRT\n", - fsgs->perf.t_elapsed, fsgs->perf.t_elapsed / n_speech); - } - - return 0; } static int -fsg_search_find_exit(fsg_search_t *fsgs, int frame_idx, int final, int32 *out_score) +fsg_search_find_exit(fsg_search_t *fsgs, int frame_idx, int final, int32 *out_score, int32* out_is_final) { fsg_hist_entry_t *hist_entry = NULL; fsg_model_t *fsg; int bpidx, frm, last_frm, besthist; int32 bestscore; + if (out_is_final) + *out_is_final = FALSE; + if (frame_idx == -1) frame_idx = fsgs->frame - 1; last_frm = frm = frame_idx; @@ -944,7 +917,12 @@ fsg_search_find_exit(fsg_search_t *fsgs, /* This here's the one we want. */ if (out_score) *out_score = bestscore; - + if (out_is_final) { + fsg_link_t *fl; + hist_entry = fsg_history_entry_get(fsgs->history, besthist); + fl = fsg_hist_entry_fsglink(hist_entry); + *out_is_final = (fsg_link_to_state(fl) == fsg_model_final_state(fsg)); + } return besthist; } @@ -970,7 +948,7 @@ fsg_search_bestpath(ps_search_t *search, } char const * -fsg_search_hyp(ps_search_t *search, int32 *out_score) +fsg_search_hyp(ps_search_t *search, int32 *out_score, int32 *out_is_final) { fsg_search_t *fsgs = (fsg_search_t *)search; dict_t *dict = ps_search_dict(search); @@ -979,7 +957,7 @@ fsg_search_hyp(ps_search_t *search, int3 int bp, bpidx; /* Get last backpointer table index. */ - bpidx = fsg_search_find_exit(fsgs, fsgs->frame, fsgs->final, out_score); + bpidx = fsg_search_find_exit(fsgs, fsgs->frame, fsgs->final, out_score, out_is_final); /* No hypothesis (yet). */ if (bpidx <= 0) { return NULL; @@ -1108,14 +1086,13 @@ static ps_segfuncs_t fsg_segfuncs = { }; static ps_seg_t * -fsg_search_seg_iter(ps_search_t *search) +fsg_search_seg_iter(ps_search_t *search, int32 *out_score) { fsg_search_t *fsgs = (fsg_search_t *)search; fsg_seg_t *itor; - int32 out_score; int bp, bpidx, cur; - bpidx = fsg_search_find_exit(fsgs, fsgs->frame, fsgs->final, &out_score); + bpidx = fsg_search_find_exit(fsgs, fsgs->frame, fsgs->final, out_score, NULL); /* No hypothesis (yet). */ if (bpidx <= 0) return NULL; @@ -1127,7 +1104,7 @@ fsg_search_seg_iter(ps_search_t *search) if ((dag = fsg_search_lattice(search)) == NULL) return NULL; - if ((link = fsg_search_bestpath(search, &out_score, TRUE)) == NULL) + if ((link = fsg_search_bestpath(search, out_score, TRUE)) == NULL) return NULL; return ps_lattice_seg_iter(dag, link, 1.0); }
  60. Download patch src/gst-plugin/livedemo.c

    --- 0.8+5prealpha+1-2/src/gst-plugin/livedemo.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/gst-plugin/livedemo.c 2015-06-03 15:27:41.000000000 +0000 @@ -29,12 +29,6 @@ bus_call(GstBus * bus, GstMessage * msg, default: break; } - - const GstStructure *st = gst_message_get_structure(msg); - if (st && strcmp(gst_structure_get_name(st), "pocketsphinx") == 0) { - if (g_value_get_boolean(gst_structure_get_value(st, "final"))) - g_print("Got result %s\n", g_value_get_string(gst_structure_get_value(st, "hypothesis"))); - } return TRUE; } @@ -61,7 +55,7 @@ main(int argc, char *argv[]) } /* Create gstreamer elements */ - pipeline = gst_pipeline_new("pipeline"); + pipeline = gst_pipeline_new("test"); source = gst_element_factory_make("filesrc", "file-source"); decoder = gst_element_factory_make("pocketsphinx", "asr"); sink = gst_element_factory_make("fakesink", "output"); @@ -77,6 +71,7 @@ main(int argc, char *argv[]) g_object_set(G_OBJECT(decoder), "lmctl", "test.lmctl", NULL); g_object_set(G_OBJECT(decoder), "lmname", "tidigits", NULL); + g_object_set(G_OBJECT(decoder), "configured", TRUE, NULL); /* we add a message handler */ bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline));
  61. Download patch swig/python/test/jsgf_test.py

    --- 0.8+5prealpha+1-2/swig/python/test/jsgf_test.py 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/python/test/jsgf_test.py 2015-07-05 00:26:48.000000000 +0000 @@ -1,4 +1,37 @@ -#!/usr/bin/python +# ==================================================================== +# Copyright (c) 2013 Carnegie Mellon University. All rights +# reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# +# This work was supported in part by funding from the Defense Advanced +# Research Projects Agency and the National Science Foundation of the +# United States of America, and the CMU Sphinx Speech Consortium. +# +# THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND +# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY +# NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# ==================================================================== + from os import environ, path from sys import stdout
  62. Download patch src/libpocketsphinx/pocketsphinx_internal.h

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/pocketsphinx_internal.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/pocketsphinx_internal.h 2015-05-01 21:39:25.000000000 +0000 @@ -87,9 +87,9 @@ typedef struct ps_searchfuncs_s { void (*free)(ps_search_t *search); ps_lattice_t *(*lattice)(ps_search_t *search); - char const *(*hyp)(ps_search_t *search, int32 *out_score); + char const *(*hyp)(ps_search_t *search, int32 *out_score, int32 *out_is_final); int32 (*prob)(ps_search_t *search); - ps_seg_t *(*seg_iter)(ps_search_t *search); + ps_seg_t *(*seg_iter)(ps_search_t *search, int32 *out_score); } ps_searchfuncs_t; /** @@ -138,9 +138,9 @@ struct ps_search_s { #define ps_search_reinit(s,d,d2p) (*(ps_search_base(s)->vt->reinit))(s,d,d2p) #define ps_search_free(s) (*(ps_search_base(s)->vt->free))(s) #define ps_search_lattice(s) (*(ps_search_base(s)->vt->lattice))(s) -#define ps_search_hyp(s,sc) (*(ps_search_base(s)->vt->hyp))(s,sc) +#define ps_search_hyp(s,sc,final) (*(ps_search_base(s)->vt->hyp))(s,sc,final) #define ps_search_prob(s) (*(ps_search_base(s)->vt->prob))(s) -#define ps_search_seg_iter(s) (*(ps_search_base(s)->vt->seg_iter))(s) +#define ps_search_seg_iter(s,sc) (*(ps_search_base(s)->vt->seg_iter))(s,sc) /* For convenience... */ #define ps_search_silence_wid(s) ps_search_base(s)->silence_wid
  63. Download patch test/data/librivox/test-lm.match

    --- 0.8+5prealpha+1-2/test/data/librivox/test-lm.match 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/test/data/librivox/test-lm.match 1970-01-01 00:00:00.000000000 +0000 @@ -1,5 +0,0 @@ -but mr john guess would have been at leisure to consider how much there might be prickly in his power to do for (sense_and_sensibility_01_austen_64kb-0870 -30200) -he was not an illness those young man (sense_and_sensibility_01_austen_64kb-0880 -11423) -homeless to be rather cold hearted and rather selfish is to be oldest those (sense_and_sensibility_01_austen_64kb-0890 -22022) -had he married a more amiable woman he might have been made still more respectable many watts (sense_and_sensibility_01_austen_64kb-0920 -23591) -he might even have been made the amiable itself (sense_and_sensibility_01_austen_64kb-0930 -13778)
  64. Download patch swig/python/test/lattice_test.py

    --- 0.8+5prealpha+1-2/swig/python/test/lattice_test.py 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/python/test/lattice_test.py 2015-07-05 00:26:48.000000000 +0000 @@ -1,4 +1,37 @@ -#!/usr/bin/python +# ==================================================================== +# Copyright (c) 2013 Carnegie Mellon University. All rights +# reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# +# This work was supported in part by funding from the Defense Advanced +# Research Projects Agency and the National Science Foundation of the +# United States of America, and the CMU Sphinx Speech Consortium. +# +# THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND +# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY +# NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# ==================================================================== + from os import environ, path
  65. Download patch src/Makefile.in

    --- 0.8+5prealpha+1-2/src/Makefile.in 2016-09-24 23:44:26.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/Makefile.in 2015-05-14 16:39:48.000000000 +0000 @@ -89,7 +89,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/a am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@)
  66. Download patch swig/python/test/continuous_test.py

    --- 0.8+5prealpha+1-2/swig/python/test/continuous_test.py 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/python/test/continuous_test.py 1970-01-01 00:00:00.000000000 +0000 @@ -1,35 +0,0 @@ -#!/usr/bin/python - -from os import environ, path - -from pocketsphinx.pocketsphinx import * -from sphinxbase.sphinxbase import * - -MODELDIR = "../../../model" -DATADIR = "../../../test/data" - -config = Decoder.default_config() -config.set_string('-hmm', path.join(MODELDIR, 'en-us/en-us')) -config.set_string('-lm', path.join(MODELDIR, 'en-us/en-us.lm.bin')) -config.set_string('-dict', path.join(MODELDIR, 'en-us/cmudict-en-us.dict')) -config.set_string('-logfn', '/dev/null') -decoder = Decoder(config) - -stream = open(path.join(DATADIR, 'goforward.raw'), 'rb') -#stream = open('10001-90210-01803.wav', 'rb') - -in_speech_bf = False -decoder.start_utt() -while True: - buf = stream.read(1024) - if buf: - decoder.process_raw(buf, False, False) - if decoder.get_in_speech() != in_speech_bf: - in_speech_bf = decoder.get_in_speech() - if not in_speech_bf: - decoder.end_utt() - print 'Result:', decoder.hyp().hypstr - decoder.start_utt() - else: - break -decoder.end_utt()
  67. Download patch src/libpocketsphinx/phone_loop_search.c

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/phone_loop_search.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/phone_loop_search.c 2015-05-01 21:39:25.000000000 +0000 @@ -48,9 +48,9 @@ static int phone_loop_search_step(ps_sea static int phone_loop_search_finish(ps_search_t *search); static int phone_loop_search_reinit(ps_search_t *search, dict_t *dict, dict2pid_t *d2p); static void phone_loop_search_free(ps_search_t *search); -static char const *phone_loop_search_hyp(ps_search_t *search, int32 *out_score); +static char const *phone_loop_search_hyp(ps_search_t *search, int32 *out_score, int32 *out_is_final); static int32 phone_loop_search_prob(ps_search_t *search); -static ps_seg_t *phone_loop_search_seg_iter(ps_search_t *search); +static ps_seg_t *phone_loop_search_seg_iter(ps_search_t *search, int32 *out_score); static ps_searchfuncs_t phone_loop_search_funcs = { /* start: */ phone_loop_search_start, @@ -232,7 +232,7 @@ store_scores(phone_loop_search_t *pls, i pls->pen_buf_ptr++; pls->pen_buf_ptr = pls->pen_buf_ptr % pls->window; - /* update penalties */ + //update penalties for (i = 0; i < pls->n_phones; ++i) { pls->penalties[i] = WORST_SCORE; for (j = 0, itr = pls->pen_buf_ptr + 1; j < pls->window; j++, itr++) { @@ -345,7 +345,7 @@ phone_loop_search_finish(ps_search_t *se } static char const * -phone_loop_search_hyp(ps_search_t *search, int32 *out_score) +phone_loop_search_hyp(ps_search_t *search, int32 *out_score, int32 *out_is_final) { E_WARN("Hypotheses are not returned from phone loop search"); return NULL; @@ -360,7 +360,7 @@ phone_loop_search_prob(ps_search_t *sear } static ps_seg_t * -phone_loop_search_seg_iter(ps_search_t *search) +phone_loop_search_seg_iter(ps_search_t *search, int32 *out_score) { E_WARN("Hypotheses are not returned from phone loop search"); return NULL;
  68. Download patch src/libpocketsphinx/kws_search.h

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/kws_search.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/kws_search.h 2015-08-05 11:17:26.000000000 +0000 @@ -33,7 +33,7 @@ */ /* - * kws_search.h -- Search structures for keyphrase spotting. + * kws_search.h -- Search structures for keyword spotting. */ #ifndef __KWS_SEARCH_H__ @@ -53,16 +53,16 @@ */ typedef struct kws_seg_s { ps_seg_t base; /**< Base structure. */ - gnode_t *detection; /**< Keyphrase detection correspondent to segment. */ + gnode_t *detection; /**< Keyword detection correspondent to segment. */ frame_idx_t last_frame; /**< Last frame to raise the detection */ } kws_seg_t; -typedef struct kws_keyphrase_s { +typedef struct kws_keyword_s { char* word; int32 threshold; hmm_t* hmms; int32 n_hmms; -} kws_keyphrase_t; +} kws_keyword_t; /** * Implementation of KWS search structure. @@ -72,9 +72,9 @@ typedef struct kws_search_s { hmm_context_t *hmmctx; /**< HMM context. */ - glist_t keyphrases; /**< Keyphrases to spot */ - kws_detections_t *detections; /**< Keyword spotting history */ + kws_keyword_t* keyphrases; /**< Keyphrases to spot */ + int n_keyphrases; /**< Keyphrases amount */ frame_idx_t frame; /**< Frame index */ int32 beam; @@ -86,14 +86,10 @@ typedef struct kws_search_s { int32 n_pl; /**< Number of CI phones */ hmm_t *pl_hmms; /**< Phone loop hmms - hmms of CI phones */ - - ptmr_t perf; /**< Performance counter */ - int32 n_tot_frame; - } kws_search_t; /** - * Create, initialize and return a search module. Gets keyphrases either + * Create, initialize and return a search module. Gets keywords either * from keyphrase or from a keyphrase file. */ ps_search_t *kws_search_init(const char *name, @@ -132,11 +128,11 @@ int kws_search_finish(ps_search_t * sear /** * Get hypothesis string from the KWS search. */ -char const *kws_search_hyp(ps_search_t * search, int32 * out_score); - +char const *kws_search_hyp(ps_search_t * search, int32 * out_score, + int32 * out_is_final); /** * Get active keyphrases */ -char* kws_search_get_keyphrases(ps_search_t * search); +char* kws_search_get_keywords(ps_search_t * search); #endif /* __KWS_SEARCH_H__ */
  69. Download patch include/ps_lattice.h

    --- 0.8+5prealpha+1-2/include/ps_lattice.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/include/ps_lattice.h 2015-03-24 17:26:23.000000000 +0000 @@ -49,13 +49,6 @@ /* PocketSphinx headers. */ #include <pocketsphinx_export.h> -#ifdef __cplusplus -extern "C" { -#endif -#if 0 -} -#endif - /** * Word graph structure used in bestpath/nbest search. */ @@ -449,8 +442,4 @@ int32 ps_lattice_ngram_expand(ps_lattice POCKETSPHINX_EXPORT int ps_lattice_n_frames(ps_lattice_t *dag); -#ifdef __cplusplus -} -#endif - #endif /* __PS_LATTICE_H__ */
  70. Download patch debian/docs

    --- 0.8+5prealpha+1-2/debian/docs 2018-04-28 09:57:16.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/debian/docs 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -AUTHORS -NEWS -build-python3*/doc/html
  71. Download patch src/libpocketsphinx/s2_semi_mgau.c

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/s2_semi_mgau.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/s2_semi_mgau.c 2015-03-24 17:26:24.000000000 +0000 @@ -1249,14 +1249,11 @@ s2_semi_mgau_init(acmod_t *acmod) } /* Read means and variances. */ - if ((s->g = gauden_init(cmd_ln_str_r(s->config, "_mean"), - cmd_ln_str_r(s->config, "_var"), + if ((s->g = gauden_init(cmd_ln_str_r(s->config, "-mean"), + cmd_ln_str_r(s->config, "-var"), cmd_ln_float32_r(s->config, "-varfloor"), - s->lmath)) == NULL) { - E_ERROR("Failed to read means and variances\n"); + s->lmath)) == NULL) goto error_out; - } - /* Currently only a single codebook is supported. */ if (s->g->n_mgau != 1) goto error_out; @@ -1277,13 +1274,13 @@ s2_semi_mgau_init(acmod_t *acmod) } } /* Read mixture weights */ - if ((sendump_path = cmd_ln_str_r(s->config, "_sendump"))) { + if ((sendump_path = cmd_ln_str_r(s->config, "-sendump"))) { if (read_sendump(s, acmod->mdef, sendump_path) < 0) { goto error_out; } } else { - if (read_mixw(s, cmd_ln_str_r(s->config, "_mixw"), + if (read_mixw(s, cmd_ln_str_r(s->config, "-mixw"), cmd_ln_float32_r(s->config, "-mixwfloor")) < 0) { goto error_out; }
  72. Download patch test/data/librivox/fileids

    --- 0.8+5prealpha+1-2/test/data/librivox/fileids 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/test/data/librivox/fileids 1970-01-01 00:00:00.000000000 +0000 @@ -1,5 +0,0 @@ -sense_and_sensibility_01_austen_64kb-0870 -sense_and_sensibility_01_austen_64kb-0880 -sense_and_sensibility_01_austen_64kb-0890 -sense_and_sensibility_01_austen_64kb-0920 -sense_and_sensibility_01_austen_64kb-0930 Binary files 0.8+5prealpha+1-2/test/data/librivox/sense_and_sensibility_01_austen_64kb-0870.wav and 0.8.0+real5prealpha-1ubuntu2/test/data/librivox/sense_and_sensibility_01_austen_64kb-0870.wav differ Binary files 0.8+5prealpha+1-2/test/data/librivox/sense_and_sensibility_01_austen_64kb-0880.wav and 0.8.0+real5prealpha-1ubuntu2/test/data/librivox/sense_and_sensibility_01_austen_64kb-0880.wav differ Binary files 0.8+5prealpha+1-2/test/data/librivox/sense_and_sensibility_01_austen_64kb-0890.wav and 0.8.0+real5prealpha-1ubuntu2/test/data/librivox/sense_and_sensibility_01_austen_64kb-0890.wav differ Binary files 0.8+5prealpha+1-2/test/data/librivox/sense_and_sensibility_01_austen_64kb-0920.wav and 0.8.0+real5prealpha-1ubuntu2/test/data/librivox/sense_and_sensibility_01_austen_64kb-0920.wav differ Binary files 0.8+5prealpha+1-2/test/data/librivox/sense_and_sensibility_01_austen_64kb-0930.wav and 0.8.0+real5prealpha-1ubuntu2/test/data/librivox/sense_and_sensibility_01_austen_64kb-0930.wav differ
  73. Download patch test/data/goforward.kws

    --- 0.8+5prealpha+1-2/test/data/goforward.kws 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/test/data/goforward.kws 1970-01-01 00:00:00.000000000 +0000 @@ -1,8 +0,0 @@ -anything /1e-10/ -something -bad line / here -just bad line / -forward - -non_existign_word -
  74. Download patch swig/python/test/decoder_test.py

    --- 0.8+5prealpha+1-2/swig/python/test/decoder_test.py 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/python/test/decoder_test.py 2015-07-05 00:26:48.000000000 +0000 @@ -1,4 +1,37 @@ -#!/usr/bin/python +# ==================================================================== +# Copyright (c) 2013 Carnegie Mellon University. All rights +# reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# +# This work was supported in part by funding from the Defense Advanced +# Research Projects Agency and the National Science Foundation of the +# United States of America, and the CMU Sphinx Speech Consortium. +# +# THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND +# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY +# NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# ==================================================================== + from os import environ, path @@ -32,8 +65,7 @@ while True: decoder.end_utt() hypothesis = decoder.hyp() -logmath = decoder.get_logmath() -print ('Best hypothesis: ', hypothesis.hypstr, " model score: ", hypothesis.best_score, " confidence: ", logmath.exp(hypothesis.prob)) +print ('Best hypothesis: ', hypothesis.hypstr, " model score: ", hypothesis.best_score, " confidence: ", hypothesis.prob) print ('Best hypothesis segments: ', [seg.word for seg in decoder.seg()])
  75. Download patch src/libpocketsphinx/kws_detections.c

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/kws_detections.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/kws_detections.c 2015-05-14 22:00:37.000000000 +0000 @@ -33,7 +33,7 @@ */ /* -* kws_detections.c -- Object for storing keyphrase search results +* kws_detections.c -- Object for storing keyword search results */ #include "kws_detections.h" @@ -60,16 +60,16 @@ kws_detections_add(kws_detections_t *det for (gn = detections->detect_list; gn; gn = gnode_next(gn)) { kws_detection_t *det = (kws_detection_t *)gnode_ptr(gn); if (strcmp(keyphrase, det->keyphrase) == 0 && det->sf < ef && det->ef > sf) { - if (det->prob < prob) { - det->sf = sf; - det->ef = ef; - det->prob = prob; - det->ascr = ascr; - } - return; + if (det->prob < prob) { + det->sf = sf; + det->ef = ef; + det->prob = prob; + det->ascr = ascr; + } + return; } } - + /* Nothing found */ detection = (kws_detection_t *)ckd_calloc(1, sizeof(*detection)); detection->sf = sf;
  76. Download patch test/data/wsj/test-hub4-n800-fwdtree.match

    --- 0.8+5prealpha+1-2/test/data/wsj/test-hub4-n800-fwdtree.match 1970-01-01 00:00:00.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/test-hub4-n800-fwdtree.match 2015-03-24 17:26:23.000000000 +0000 @@ -0,0 +1,7 @@ +at any need to need for international managers will keep rise (n800_440c0201 -49565) +the company has five hundred japanese managers have received most of them in key positions in expects the number to rise sixty %percent of the next five years (n800_440c0202 -91117) +about half of these managers are in the u. s. (n800_440c0203 -33870) +r. l. i. corporation a jury illinois based insurance holding company will begin trading friday on the big board under the symbol r. l. i. (n800_440c0204 -97451) +a company previously traded over the counter (n800_440c0205 -37088) +two other issues began trading recently on the big board (n800_440c0206 -42394) +the agency is unlikely to take any action until the union's rank and file puts on the contract in two to three weeks (n800_440c0207 -69401)
  77. Download patch Makefile.am

    --- 0.8+5prealpha+1-2/Makefile.am 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/Makefile.am 2015-03-24 17:26:29.000000000 +0000 @@ -1,7 +1,6 @@ SUBDIRS = src doc model include test swig EXTRA_DIST = \ - LICENSE \ autogen.sh \ m4/pkg.m4 \ pocketsphinx.pc.in \
  78. Download patch src/programs/Makefile.in

    --- 0.8+5prealpha+1-2/src/programs/Makefile.in 2016-09-24 23:44:26.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/programs/Makefile.in 2015-05-14 16:39:48.000000000 +0000 @@ -94,7 +94,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/a am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" @@ -129,7 +128,7 @@ AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include +DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f
  79. Download patch src/libpocketsphinx/kws_detections.h

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/kws_detections.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/kws_detections.h 2015-05-14 21:58:41.000000000 +0000 @@ -33,7 +33,7 @@ */ /* - * kws_detections.h -- Structures for storing keyphrase spotting results. + * kws_detections.h -- Structures for storing keyword spotting results. */ #ifndef __KWS_DETECTIONS_H__
  80. Download patch doc/pocketsphinx_batch.1
  81. Download patch doc/Makefile.in

    --- 0.8+5prealpha+1-2/doc/Makefile.in 2016-09-24 23:44:26.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/doc/Makefile.in 2015-05-14 19:37:01.000000000 +0000 @@ -90,7 +90,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/a am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = doxyfile CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@)
  82. Download patch swig/python/test/lm_test.py

    --- 0.8+5prealpha+1-2/swig/python/test/lm_test.py 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/python/test/lm_test.py 2015-07-05 00:26:48.000000000 +0000 @@ -1,4 +1,37 @@ -#!/usr/bin/python +# ==================================================================== +# Copyright (c) 2013 Carnegie Mellon University. All rights +# reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# +# This work was supported in part by funding from the Defense Advanced +# Research Projects Agency and the National Science Foundation of the +# United States of America, and the CMU Sphinx Speech Consortium. +# +# THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND +# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY +# NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# ==================================================================== + from os import environ, path from pocketsphinx.pocketsphinx import *
  83. Download patch src/gst-plugin/gstpocketsphinx.c
  84. Download patch src/libpocketsphinx/ms_senone.h

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/ms_senone.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/ms_senone.h 2015-03-24 17:26:24.000000000 +0000 @@ -36,10 +36,78 @@ */ /* * senone.h -- Mixture density weights associated with each tied state. + * + * ********************************************** + * CMU ARPA Speech Project + * + * Copyright (c) 1996 Carnegie Mellon University. + * ALL RIGHTS RESERVED. + * ********************************************** + * + * HISTORY + * + * $Log$ + * Revision 1.1 2006/04/05 20:27:30 dhdfu + * A Great Reorganzation of header files and executables + * + * Revision 1.7 2006/02/22 17:27:39 arthchan2003 + * Merged from SPHINX3_5_2_RCI_IRII_BRANCH: 1, NOT doing truncation in the multi-stream GMM computation \n. 2, Added .s3cont. to be the alias of the old multi-stream GMM computation routine \n. 3, Added license \n. 4, Fixed dox-doc. \n + * + * Revision 1.6.4.4 2006/01/16 19:47:05 arthchan2003 + * Removed the truncation of senone probability code. + * + * Revision 1.6.4.3 2005/08/03 18:53:43 dhdfu + * Add memory deallocation functions. Also move all the initialization + * of ms_mgau_model_t into ms_mgau_init (duh!), which entails removing it + * from decode_anytopo and friends. + * + * Revision 1.6.4.2 2005/07/20 19:39:01 arthchan2003 + * Added licences in ms_* series of code. + * + * Revision 1.6.4.1 2005/07/05 05:47:59 arthchan2003 + * Fixed dox-doc. struct level of documentation are included. + * + * Revision 1.6 2005/06/21 19:00:19 arthchan2003 + * Add more detail comments to ms_senone.h + * + * Revision 1.5 2005/06/21 18:57:31 arthchan2003 + * 1, Fixed doxygen documentation. 2, Added $ keyword. + * + * Revision 1.2 2005/06/13 04:02:56 archan + * Fixed most doxygen-style documentation under libs3decoder. + * + * Revision 1.1.1.1 2005/03/24 15:24:00 archan + * I found Evandro's suggestion is quite right after yelling at him 2 days later. So I decide to check this in again without any binaries. (I have done make distcheck. ) . Again, this is a candidate for s3.6 and I believe I need to work out 4-5 intermediate steps before I can complete the first prototype. That's why I keep local copies. + * + * Revision 1.4 2004/12/06 10:52:01 arthchan2003 + * Enable doxygen documentation in libs3decoder + * + * Revision 1.3 2004/11/13 21:25:19 arthchan2003 + * commit of 1, absolute CI-GMMS , 2, fast CI senone computation using svq, 3, Decrease the number of static variables, 4, fixing the random generator problem of vector_vqgen, 5, move all unused files to NOTUSED + * + * Revision 1.2 2004/08/31 08:43:47 arthchan2003 + * Fixing _cpluscplus directive + * + * Revision 1.1 2004/08/09 00:17:11 arthchan2003 + * Incorporating s3.0 align, at this point, there are still some small problems in align but they don't hurt. For example, the score doesn't match with s3.0 and the output will have problem if files are piped to /dev/null/. I think we can go for it. + * + * Revision 1.1 2003/02/14 14:40:34 cbq + * Compiles. Analysis is probably hosed. + * + * Revision 1.1 2000/04/24 09:39:41 lenzo + * s3 import. + * + * + * 13-Dec-95 M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University. + * Added senone_eval_all(). + * + * 12-Nov-95 M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University. + * Created. */ -#ifndef _MS_SENONE_H_ -#define _MS_SENONE_H_ + +#ifndef _LIBFBS_SENONE_H_ +#define _LIBFBS_SENONE_H_ /* SphinxBase headers. */
  85. Download patch test/data/wsj/test5k.n800.lsn

    --- 0.8+5prealpha+1-2/test/data/wsj/test5k.n800.lsn 1970-01-01 00:00:00.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/test5k.n800.lsn 2015-03-24 17:26:23.000000000 +0000 @@ -0,0 +1,7 @@ +<s> at n. e. c. the need for international managers will keep rising </s> (n800_440c0201) +<s> the company has five hundred japanese managers overseas most of them in key positions and expects the number to rise sixty percent in the next five years </s> (n800_440c0202) +<s> about half these managers are in the u. s. </s> (n800_440c0203) +<s> r. l. i. corporation a peoria illinois based insurance holding company will begin trading friday on the big board under the symbol r. l. i. </s> (n800_440c0204) +<s> the company previously traded over the counter </s> (n800_440c0205) +<s> two other issues began trading recently on the big board </s> (n800_440c0206) +<s> the agency isn't likely to take any action until the union's rank and file votes on the contract in two to three weeks </s> (n800_440c0207)
  86. Download patch src/gst-plugin/Makefile.in

    --- 0.8+5prealpha+1-2/src/gst-plugin/Makefile.in 2016-09-24 23:44:26.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/gst-plugin/Makefile.in 2015-06-03 15:42:59.000000000 +0000 @@ -93,7 +93,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/a am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; @@ -151,7 +150,7 @@ AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include +DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f
  87. Download patch pocketsphinx.sln

    --- 0.8+5prealpha+1-2/pocketsphinx.sln 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/pocketsphinx.sln 2015-03-24 17:32:30.000000000 +0000 @@ -1,6 +1,6 @@  -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Express 2012 for Windows Desktop +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual C++ Express 2010 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pocketsphinx", "win32\pocketsphinx\pocketsphinx.vcxproj", "{94001A0E-A837-445C-8004-F918F10D0226}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pocketsphinx_continuous", "win32\pocketsphinx_continuous\pocketsphinx_continuous.vcxproj", "{1380AF76-C926-44D0-8002-06C228AC869A}" @@ -11,42 +11,44 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C9 EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Debug|x64 = Debug|x64 Release|Win32 = Release|Win32 - Release|x64 = Release|x64 + Debug|Win32 = Debug|Win32 + Release|x64 = Release|x64 + Debug|x64 = Debug|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1380AF76-C926-44D0-8002-06C228AC869A}.Debug|Win32.ActiveCfg = Debug|Win32 + {1380AF76-C926-44D0-8002-06C228AC869A}.Debug|Win32.Build.0 = Debug|Win32 + {1380AF76-C926-44D0-8002-06C228AC869A}.Release|Win32.ActiveCfg = Release|Win32 + {1380AF76-C926-44D0-8002-06C228AC869A}.Release|Win32.Build.0 = Release|Win32 + {CB47D94B-2F84-41BC-A3C4-A1EBDCDE922A}.Debug|Win32.ActiveCfg = Debug|Win32 + {CB47D94B-2F84-41BC-A3C4-A1EBDCDE922A}.Debug|Win32.Build.0 = Debug|Win32 + {CB47D94B-2F84-41BC-A3C4-A1EBDCDE922A}.Release|Win32.ActiveCfg = Release|Win32 + {CB47D94B-2F84-41BC-A3C4-A1EBDCDE922A}.Release|Win32.Build.0 = Release|Win32 + {FDF5E3A4-147B-4AE4-901B-90BBFF17D5A4}.Debug|Win32.ActiveCfg = Debug|Win32 {94001A0E-A837-445C-8004-F918F10D0226}.Debug|Win32.ActiveCfg = Debug|Win32 {94001A0E-A837-445C-8004-F918F10D0226}.Debug|Win32.Build.0 = Debug|Win32 - {94001A0E-A837-445C-8004-F918F10D0226}.Debug|x64.ActiveCfg = Debug|x64 - {94001A0E-A837-445C-8004-F918F10D0226}.Debug|x64.Build.0 = Debug|x64 {94001A0E-A837-445C-8004-F918F10D0226}.Release|Win32.ActiveCfg = Release|Win32 {94001A0E-A837-445C-8004-F918F10D0226}.Release|Win32.Build.0 = Release|Win32 - {94001A0E-A837-445C-8004-F918F10D0226}.Release|x64.ActiveCfg = Release|x64 - {94001A0E-A837-445C-8004-F918F10D0226}.Release|x64.Build.0 = Release|x64 - {1380AF76-C926-44D0-8002-06C228AC869A}.Debug|Win32.ActiveCfg = Debug|Win32 - {1380AF76-C926-44D0-8002-06C228AC869A}.Debug|Win32.Build.0 = Debug|Win32 + {4FB65800-11B8-46BD-95B8-6E4F73BDAD91}.Debug|Win32.ActiveCfg = Debug|Win32 + {4FB65800-11B8-46BD-95B8-6E4F73BDAD91}.Debug|Win32.Build.0 = Debug|Win32 + {4FB65800-11B8-46BD-95B8-6E4F73BDAD91}.Release|Win32.ActiveCfg = Release|Win32 + {4FB65800-11B8-46BD-95B8-6E4F73BDAD91}.Release|Win32.Build.0 = Release|Win32 {1380AF76-C926-44D0-8002-06C228AC869A}.Debug|x64.ActiveCfg = Debug|x64 {1380AF76-C926-44D0-8002-06C228AC869A}.Debug|x64.Build.0 = Debug|x64 - {1380AF76-C926-44D0-8002-06C228AC869A}.Release|Win32.ActiveCfg = Release|Win32 - {1380AF76-C926-44D0-8002-06C228AC869A}.Release|Win32.Build.0 = Release|Win32 {1380AF76-C926-44D0-8002-06C228AC869A}.Release|x64.ActiveCfg = Release|x64 {1380AF76-C926-44D0-8002-06C228AC869A}.Release|x64.Build.0 = Release|x64 - {CB47D94B-2F84-41BC-A3C4-A1EBDCDE922A}.Debug|Win32.ActiveCfg = Debug|Win32 - {CB47D94B-2F84-41BC-A3C4-A1EBDCDE922A}.Debug|Win32.Build.0 = Debug|Win32 {CB47D94B-2F84-41BC-A3C4-A1EBDCDE922A}.Debug|x64.ActiveCfg = Debug|x64 {CB47D94B-2F84-41BC-A3C4-A1EBDCDE922A}.Debug|x64.Build.0 = Debug|x64 - {CB47D94B-2F84-41BC-A3C4-A1EBDCDE922A}.Release|Win32.ActiveCfg = Release|Win32 - {CB47D94B-2F84-41BC-A3C4-A1EBDCDE922A}.Release|Win32.Build.0 = Release|Win32 {CB47D94B-2F84-41BC-A3C4-A1EBDCDE922A}.Release|x64.ActiveCfg = Release|x64 {CB47D94B-2F84-41BC-A3C4-A1EBDCDE922A}.Release|x64.Build.0 = Release|x64 - {4FB65800-11B8-46BD-95B8-6E4F73BDAD91}.Debug|Win32.ActiveCfg = Debug|Win32 - {4FB65800-11B8-46BD-95B8-6E4F73BDAD91}.Debug|Win32.Build.0 = Debug|Win32 + {FDF5E3A4-147B-4AE4-901B-90BBFF17D5A4}.Debug|x64.ActiveCfg = Debug|x64 + {94001A0E-A837-445C-8004-F918F10D0226}.Debug|x64.ActiveCfg = Debug|x64 + {94001A0E-A837-445C-8004-F918F10D0226}.Debug|x64.Build.0 = Debug|x64 + {94001A0E-A837-445C-8004-F918F10D0226}.Release|x64.ActiveCfg = Release|x64 + {94001A0E-A837-445C-8004-F918F10D0226}.Release|x64.Build.0 = Release|x64 {4FB65800-11B8-46BD-95B8-6E4F73BDAD91}.Debug|x64.ActiveCfg = Debug|x64 {4FB65800-11B8-46BD-95B8-6E4F73BDAD91}.Debug|x64.Build.0 = Debug|x64 - {4FB65800-11B8-46BD-95B8-6E4F73BDAD91}.Release|Win32.ActiveCfg = Release|Win32 - {4FB65800-11B8-46BD-95B8-6E4F73BDAD91}.Release|Win32.Build.0 = Release|Win32 {4FB65800-11B8-46BD-95B8-6E4F73BDAD91}.Release|x64.ActiveCfg = Release|x64 {4FB65800-11B8-46BD-95B8-6E4F73BDAD91}.Release|x64.Build.0 = Release|x64 EndGlobalSection
  88. Download patch swig/python/test/Makefile.am

    --- 0.8+5prealpha+1-2/swig/python/test/Makefile.am 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/swig/python/test/Makefile.am 2015-03-24 17:26:29.000000000 +0000 @@ -1,11 +1,8 @@ EXTRA_DIST = \ config_test.py \ - continuous_test.py \ decoder_test.py \ kws_test.py \ fsg_test.py \ jsgf_test.py \ lattice_test.py \ - lm_test.py \ - phoneme_test.py - + lm_test.py
  89. Download patch src/programs/continuous.c

    --- 0.8+5prealpha+1-2/src/programs/continuous.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/programs/continuous.c 2015-08-05 11:17:26.000000000 +0000 @@ -100,7 +100,7 @@ static void print_word_times() { int frame_rate = cmd_ln_int32_r(config, "-frate"); - ps_seg_t *iter = ps_seg_iter(ps); + ps_seg_t *iter = ps_seg_iter(ps, NULL); while (iter != NULL) { int32 sf, ef, pprob; float conf; @@ -185,7 +185,6 @@ recognize_from_file() printf("%s\n", hyp); if (print_times) print_word_times(); - fflush(stdout); ps_start_utt(ps); utt_started = FALSE; @@ -197,6 +196,7 @@ recognize_from_file() if (hyp != NULL) { printf("%s\n", hyp); if (print_times) { + printf("!!! here\n"); print_word_times(); } } @@ -249,7 +249,7 @@ recognize_from_microphone() if (ps_start_utt(ps) < 0) E_FATAL("Failed to start utterance\n"); utt_started = FALSE; - E_INFO("Ready....\n"); + printf("READY....\n"); for (;;) { if ((k = ad_read(ad, adbuf, 2048)) < 0) @@ -258,21 +258,19 @@ recognize_from_microphone() in_speech = ps_get_in_speech(ps); if (in_speech && !utt_started) { utt_started = TRUE; - E_INFO("Listening...\n"); + printf("Listening...\n"); } if (!in_speech && utt_started) { /* speech -> silence transition, time to start new utterance */ ps_end_utt(ps); hyp = ps_get_hyp(ps, NULL ); - if (hyp != NULL) { + if (hyp != NULL) printf("%s\n", hyp); - fflush(stdout); - } if (ps_start_utt(ps) < 0) E_FATAL("Failed to start utterance\n"); utt_started = FALSE; - E_INFO("Ready....\n"); + printf("READY....\n"); } sleep_msec(100); }
  90. Download patch src/libpocketsphinx/pocketsphinx.c
  91. Download patch include/pocketsphinx_export.h

    --- 0.8+5prealpha+1-2/include/pocketsphinx_export.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/include/pocketsphinx_export.h 2015-03-24 17:26:23.000000000 +0000 @@ -1,14 +1,14 @@ #ifndef __POCKETSPHINX_EXPORT_H__ #define __POCKETSPHINX_EXPORT_H__ -/* Win32 DLL gunk */ -#if defined(_WIN32) && defined(SPHINX_DLL) -#if defined(POCKETSPHINX_EXPORTS) /* DLL itself */ +/* Win32/WinCE DLL gunk */ +#if (defined(_WIN32) || defined(_WIN32_WCE)) && !defined(_WIN32_WP) && !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(__WINSCW__) && !defined(__SYMBIAN32__) +#ifdef POCKETSPHINX_EXPORTS /* Visual Studio */ #define POCKETSPHINX_EXPORT __declspec(dllexport) #else #define POCKETSPHINX_EXPORT __declspec(dllimport) #endif -#else /* No DLL things*/ +#else /* !_WIN32 */ #define POCKETSPHINX_EXPORT #endif
  92. Download patch src/libpocketsphinx/fsg_search_internal.h

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/fsg_search_internal.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/fsg_search_internal.h 2015-05-01 21:39:25.000000000 +0000 @@ -100,10 +100,6 @@ typedef struct fsg_search_s { int32 n_hmm_eval; /**< Total HMMs evaluated this utt */ int32 n_sen_eval; /**< Total senones evaluated this utt */ - - ptmr_t perf; /**< Performance counter */ - int32 n_tot_frame; - } fsg_search_t; /* Access macros */ @@ -148,6 +144,6 @@ int fsg_search_finish(ps_search_t *searc /** * Get hypothesis string from the FSG search. */ -char const *fsg_search_hyp(ps_search_t *search, int32 *out_score); +char const *fsg_search_hyp(ps_search_t *search, int32 *out_score, int32 *out_is_final); #endif
  93. Download patch src/gst-plugin/gstpocketsphinx.h

    --- 0.8+5prealpha+1-2/src/gst-plugin/gstpocketsphinx.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/gst-plugin/gstpocketsphinx.h 2015-03-24 17:26:24.000000000 +0000 @@ -69,7 +69,7 @@ struct _GstPocketSphinx gchar *latdir; /**< Output directory for word lattices. */ - gboolean speech_started; + gboolean utt_started; gboolean listening_started; gint uttno;
  94. Download patch debian/copyright
  95. Download patch test/data/wsj/test5k.s1.lsn

    --- 0.8+5prealpha+1-2/test/data/wsj/test5k.s1.lsn 1970-01-01 00:00:00.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/test/data/wsj/test5k.s1.lsn 2015-03-24 17:26:23.000000000 +0000 @@ -0,0 +1,7 @@ +the labor department said non farm payroll employment increased a robust three hundred thirty seven thousand last month after a revised three hundred nineteen thousand gain the month before (443c0201) +in the nineteen eighty five quarter the owner and operator of health maintenance organizations earned six point nine million dollars or twenty four cents a share (444c0201) +here are price trends on the world's major stock markets as calculated by morgan stanley capital international perspective geneva (446c0201) +i don't mean there couldn't be some improvements in the revenue act of nineteen eighty six which took effect this month (447c0201) +at n. e. c. the need for international managers will keep rising (440c0201) +first commodity appealed the expulsion and fine to the c. f. t. c. (441c0201) +bids totaling five hundred twenty five point five million dollars were submitted (442c0201)
  96. Download patch Makefile.in

    --- 0.8+5prealpha+1-2/Makefile.in 2016-09-24 23:44:26.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/Makefile.in 2015-05-14 16:39:48.000000000 +0000 @@ -95,7 +95,6 @@ am__configure_deps = $(am__aclocal_m4_de am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = pocketsphinx.pc CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) @@ -370,7 +369,6 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = src doc model include test swig EXTRA_DIST = \ - LICENSE \ autogen.sh \ m4/pkg.m4 \ pocketsphinx.pc.in \
  97. Download patch include/cmdln_macro.h

    --- 0.8+5prealpha+1-2/include/cmdln_macro.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/include/cmdln_macro.h 2015-07-05 00:26:42.000000000 +0000 @@ -154,7 +154,7 @@ { "-backtrace", \ ARG_BOOLEAN, \ "no", \ - "Print results and backtraces to log." }, \ + "Print results and backtraces to log file." }, \ { "-latsize", \ ARG_INT32, \ "5000", \ @@ -180,7 +180,7 @@ "25", \ "Window of frames in lattice to search for successor words in fwdflat search " } -/** Command-line options for keyphrase spotting */ +/** Command-line options for keyword spotting */ #define POCKETSPHINX_KWS_OPTIONS \ { "-keyphrase", \ ARG_STRING, \ @@ -193,7 +193,7 @@ { "-kws_plp", \ ARG_FLOAT64, \ "1e-1", \ - "Phone loop probability for keyphrase spotting" }, \ + "Phone loop probability for keyword spotting" }, \ { "-kws_delay", \ ARG_INT32, \ "10", \ @@ -243,7 +243,7 @@ { "-lmctl", \ ARG_STRING, \ NULL, \ - "Specify a set of language model"}, \ + "Specify a set of language model\n"}, \ { "-lmname", \ ARG_STRING, \ NULL, \
  98. Download patch src/libpocketsphinx/tmat.c

    --- 0.8+5prealpha+1-2/src/libpocketsphinx/tmat.c 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/src/libpocketsphinx/tmat.c 2015-03-24 17:26:24.000000000 +0000 @@ -34,6 +34,63 @@ * ==================================================================== * */ +/* + * tmat.c + * + * ********************************************** + * CMU ARPA Speech Project + * + * Copyright (c) 1997 Carnegie Mellon University. + * ALL RIGHTS RESERVED. + * ********************************************** + * + * HISTORY + * $Log: tmat.c,v $ + * Revision 1.1.1.1 2006/05/23 18:45:01 dhuggins + * re-importation + * + * Revision 1.4 2005/11/14 16:14:34 dhuggins + * Use LOG() instead of logs3() for loading tmats, makes startup + * ***much*** faster. + * + * Revision 1.3 2005/10/10 14:50:35 dhuggins + * Deal properly with empty transition matrices. + * + * Revision 1.2 2005/09/30 15:01:23 dhuggins + * More robust tmat reading - read the tmat in accordance with the fixed s2 topology + * + * Revision 1.1 2005/09/29 21:51:19 dhuggins + * Add support for Sphinx3 tmat files. Amazingly enough, it Just Works + * (but it isn't terribly robust) + * + * Revision 1.6 2005/07/05 13:12:39 dhdfu + * Add new arguments to logs3_init() in some tests, main_ep + * + * Revision 1.5 2005/06/21 19:23:35 arthchan2003 + * 1, Fixed doxygen documentation. 2, Added $ keyword. + * + * Revision 1.5 2005/05/03 04:09:09 archan + * Implemented the heart of word copy search. For every ci-phone, every word end, a tree will be allocated to preserve its pathscore. This is different from 3.5 or below, only the best score for a particular ci-phone, regardless of the word-ends will be preserved at every frame. The graph propagation will not collect unused word tree at this point. srch_WST_propagate_wd_lv2 is also as the most stupid in the century. But well, after all, everything needs a start. I will then really get the results from the search and see how it looks. + * + * Revision 1.4 2005/04/21 23:50:26 archan + * Some more refactoring on the how reporting of structures inside kbcore_t is done, it is now 50% nice. Also added class-based LM test case into test-decode.sh.in. At this moment, everything in search mode 5 is already done. It is time to test the idea whether the search can really be used. + * + * Revision 1.3 2005/03/30 01:22:47 archan + * Fixed mistakes in last updates. Add + * + * + * 20.Apr.2001 RAH (rhoughton@mediasite.com, ricky.houghton@cs.cmu.edu) + * Added tmat_free to free allocated memory + * + * 29-Feb-2000 M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University. + * Added tmat_chk_1skip(), and made tmat_chk_uppertri() public. + * + * 10-Dec-1999 M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University. + * Made tmat_dump() public. + * + * 11-Mar-97 M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University. + * Started based on original S3 implementation. + */ /* System headers. */ #include <string.h>
  99. Download patch include/ps_mllr.h

    --- 0.8+5prealpha+1-2/include/ps_mllr.h 2016-09-24 23:19:55.000000000 +0000 +++ 0.8.0+real5prealpha-1ubuntu2/include/ps_mllr.h 2015-03-24 17:26:23.000000000 +0000 @@ -49,13 +49,6 @@ /* PocketSphinx headers. */ #include <pocketsphinx_export.h> -#ifdef __cplusplus -extern "C" { -#endif -#if 0 -} -#endif - /** * Feature space linear transform object. */ @@ -79,8 +72,4 @@ ps_mllr_t *ps_mllr_retain(ps_mllr_t *mll POCKETSPHINX_EXPORT int ps_mllr_free(ps_mllr_t *mllr); -#ifdef __cplusplus -} -#endif - #endif /* __PS_MLLR_H__ */
  100. Download patch src/libpocketsphinx/ms_gauden.c
  101. ...
  1. pocketsphinx