diff --git a/Sphinx/LICENSE b/Sphinx/LICENSE new file mode 100644 index 0000000..b5d665e --- /dev/null +++ b/Sphinx/LICENSE @@ -0,0 +1,30 @@ +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. diff --git a/Sphinx/builder/README.md b/Sphinx/builder/README.md new file mode 100644 index 0000000..1fcf3bc --- /dev/null +++ b/Sphinx/builder/README.md @@ -0,0 +1,91 @@ + +# CMU SphinxBase and PocketSphinx Builder + +> **DISCLAIMER**: TLSphinx comes with pre-bundled sphinxbase and pocketsphinx +> libraries and headers, you're **strongly** encouraged to use those instead of +> building them on your own. + +These are the CMU sphinxbase and pocketsphinx building instructions for TLSphinx, follow the guide below to build the required libraries for TLSphinx to build. + +In order to build sphinxbase and pocketsphinx both packages need to be downloaded, see: [CMUSphinx Downloads](https://cmusphinx.github.io/wiki/download/). + +From there you need to download: + + * [sphinxbase-5prealpha](http://sourceforge.net/projects/cmusphinx/files/sphinxbase/5prealpha) + * [pocketsphinx-5prealpha](http://sourceforge.net/projects/cmusphinx/files/pocketsphinx/5prealpha) + +After downloading both files copy them to `Sphinx/builder/cmusphinx` + +## Automatic Compilation +After copying the files to the appropiate directory (*see above*) just run the install.sh script and with some luck you're done. + +``` +cd Sphinx/builder/ +./install.sh +``` + + +--- +## Manual Compilation +If possible please try automatic compilation when possible, manual compilation is not for the feint of heart yet it might help in scenarios where you want to build CMU Sphinx Base and Pocket Sphinx from their respective master branches. + +Below are sample instructions on how to manually build the **5prealpha** release, to build against the lastest source just modify each command accordingly. +### Sphinxbase +--- +#### To prepare build environment: +``` +#From TLSphinx root directory +cd Sphinx/builder/cmusphinx +tar zxvf sphinxbase-5prealpha.tar.gz +cp ../ios-build-sphinxbase.sh sphinxbase-5prealpha/ +``` +#### To build: +``` +SPHINX_VERSION_REQ=5prealpha +cd sphinxbase-5prealpha +./ios-build-sphinxbase.sh +``` +#### Install Libraries: +``` +cp bin/arm64/lib/libsphinx*.a ../../../lib/sphinxbase/arm64/ +cp bin/armv7/lib/libsphinx*.a ../../../lib/sphinxbase/armv7/ +cp bin/armv7s/lib/libsphinx*.a ../../../lib/sphinxbase/armv7s/ +cp bin/i386/lib/libsphinx*.a ../../../lib/sphinxbase/i386/ +cp bin/x86_64/lib/libsphinx*.a ../../../lib/sphinxbase/x86_64/ +cp bin/libsphinxad.a ../../../lib/sphinxbase/ +cp bin/libsphinxbase.a ../../../lib/sphinxbase/ +``` +#### Install Headers +``` +cp include/sphinxbase/ ../../../include/sphinxbase/ +cp include/sphinx_config.h ../../../include/sphinxbase/ +``` + +### PocketSphinx +--- +#### To prepare build environment: +``` +#From TLSphinx root directory +cd Sphinx/builder/cmusphinx +tar zxvf pocketsphinx-5prealpha.tar.gz +cp ../ios-build-pocketsphinx.sh pocketsphinx-5prealpha/ +``` +#### To build: +``` +SPHINX_VERSION_REQ=5prealpha +cd pocketsphinx-5prealpha +./ios-build-pocketsphinx.sh +``` +#### Install Libraries: +``` +cp bin/arm64/lib/libpocketsphinx.a ../../../lib/pocketsphinx/arm64/ +cp bin/armv7/lib/libpocketsphinx.a ../../../lib/pocketsphinx/armv7/ +cp bin/armv7s/lib/libpocketsphinx.a ../../../lib/pocketsphinx/armv7s/ +cp bin/i386/lib/libpocketsphinx.a ../../../lib/pocketsphinx/i386/ +cp bin/x86_64/lib/libpocketsphinx.a ../../../lib/pocketsphinx/x86_64/ +cp bin/libpocketsphinx.a ../../../lib/pocketsphinx/ +``` +#### Install Headers +``` +cp -vf include/*.h ../../../include/pocketsphinx/ +``` \ No newline at end of file diff --git a/Sphinx/builder/cmusphinx/.gitignore b/Sphinx/builder/cmusphinx/.gitignore new file mode 100644 index 0000000..835f1ae --- /dev/null +++ b/Sphinx/builder/cmusphinx/.gitignore @@ -0,0 +1,2 @@ +*.tar.gz +*sphinx*/ diff --git a/Sphinx/builder/cmusphinx/README.md b/Sphinx/builder/cmusphinx/README.md new file mode 100644 index 0000000..d2ae0a9 --- /dev/null +++ b/Sphinx/builder/cmusphinx/README.md @@ -0,0 +1,4 @@ +Yes this is the directory where you should put + + * pocketsphinx-5prealpha.tar.gz + * sphinxbase-5prealpha.tar.Igz diff --git a/Sphinx/builder/install.sh b/Sphinx/builder/install.sh new file mode 100755 index 0000000..9d635b4 --- /dev/null +++ b/Sphinx/builder/install.sh @@ -0,0 +1,81 @@ +#!/bin/sh +SPHINX_VERSION_REQ=5prealpha +SPHINXBASE_RELEASE=sphinxbase-${SPHINX_VERSION_REQ} +POCKETSPHINX_RELEASE=pocketsphinx-${SPHINX_VERSION_REQ} +export SPHINX_VERSION_REQ + +SPHINXBASE_PKG=${SPHINXBASE_RELEASE}.tar.gz +POCKETSPHINX_PKG=${POCKETSPHINX}.tar.gz + +#Check Sphinx libraries are in place +if [ ! -f `pwd`/cmusphinx/${SPHINXBASE_RELEASE}.tar.gz ]; then + echo "Please follow the readme instrunctions on how to download ${SPHINXBASE_PKG}" + exit 1 +fi + +if [ ! -f `pwd`/cmusphinx/${POCKETSPHINX_RELEASE}.tar.gz ]; then + echo "Please follow the readme instrunctions on how to download ${POCKETSPHINX_PKG}" + exit 1 +fi + +cd cmusphinx +rm -f build.log > /dev/null 2>&1 + +for SPHINX_PROJECT in ${SPHINXBASE_RELEASE} ${POCKETSPHINX_RELEASE} +do + #Delete previous build directory if found + if [ -d ${SPHINX_PROJECT} ]; then + rm -rf ${SPHINX_PROJECT} + fi + tarfile=${SPHINX_PROJECT}.tar.gz + echo "Decompressing ${tarfile}..." + tar zxf $tarfile || exit 1 +done + +#Copy build scripts +cp -f ../ios-build-sphinxbase.sh ${SPHINXBASE_RELEASE}/ +cp -f ../ios-build-pocketsphinx.sh ${POCKETSPHINX_RELEASE}/ + +#Compile SphinxBase +cd $SPHINXBASE_RELEASE +./ios-build-sphinxbase.sh || exit 1 +cd .. +#Compile PocketSphinx +cd $POCKETSPHINX_RELEASE +./ios-build-pocketsphinx.sh || exit 1 +cd .. + +#rm -rf ../../../lib/*sphinx* +#rm -rf ../../../include/*sphinx* + +cd $SPHINXBASE_RELEASE +echo +echo "Installing SphinxBase libraries..." +cp -f bin/arm64/lib/libsphinx*.a ../../../lib/sphinxbase/arm64/ && +cp -f bin/armv7/lib/libsphinx*.a ../../../lib/sphinxbase/armv7/ && +cp -f bin/armv7s/lib/libsphinx*.a ../../../lib/sphinxbase/armv7s/ && +cp -f bin/i386/lib/libsphinx*.a ../../../lib/sphinxbase/i386/ && +cp -f bin/x86_64/lib/libsphinx*.a ../../../lib/sphinxbase/x86_64/ && +cp -f bin/libsphinxad.a ../../../lib/sphinxbase/ && +cp -f bin/libsphinxbase.a ../../../lib/sphinxbase/ || exit 1 +echo +echo "Installing SphinxBase header..." +cp -f include/sphinxbase/*.h ../../../include/sphinxbase/ && +cp -f include/sphinx_config.h ../../../include/sphinxbase/ || exit 1 +cd .. + +cd $POCKETSPHINX_RELEASE +echo +echo "Installing PocketSphinx libraries..." +cp -f bin/arm64/lib/libpocketsphinx.a ../../../lib/pocketsphinx/arm64/ && +cp -f bin/armv7/lib/libpocketsphinx.a ../../../lib/pocketsphinx/armv7/ && +cp -f bin/armv7s/lib/libpocketsphinx.a ../../../lib/pocketsphinx/armv7s/ && +cp -f bin/i386/lib/libpocketsphinx.a ../../../lib/pocketsphinx/i386/ && +cp -f bin/x86_64/lib/libpocketsphinx.a ../../../lib/pocketsphinx/x86_64/ && +cp -f bin/libpocketsphinx.a ../../../lib/pocketsphinx/ || exit 1 +echo +echo "Installing PocketSphinx headers..." +cp -vf include/*.h ../../../include/pocketsphinx/ || exit 1 + +cd .. +echo Done diff --git a/Sphinx/builder/ios-build-pocketsphinx.sh b/Sphinx/builder/ios-build-pocketsphinx.sh new file mode 100755 index 0000000..33bffb3 --- /dev/null +++ b/Sphinx/builder/ios-build-pocketsphinx.sh @@ -0,0 +1,79 @@ +#!/bin/sh + +SCRATCH="scratch" +DEST=`pwd`/"bin" + +ARCHS="arm64 armv7 armv7s x86_64 i386" + +if [ "$*" ] +then + ARCHS="$*" +fi + +if [ "${SPHINX_VERSION_REQ}" != "" ]; then + SPHINX_VERSION_SUFFIX="-${SPHINX_VERSION_REQ}" +fi + +CWD=`pwd` + +for ARCH in $ARCHS +do + SPHINXBASE_DIR=`pwd`/../sphinxbase${SPHINX_VERSION_SUFFIX}/bin/$ARCH + echo "building $ARCH..." + mkdir -p "$SCRATCH/$ARCH" + cd "$SCRATCH/$ARCH" + + MIN_IOS_VERSION="8.0" + if [[ "${ARCH}" == "arm64" || "${ARCH}" == "x86_64" ]]; then + MIN_IOS_VERSION="7.0" # 7.0 as this is the minimum for these architectures + fi + + if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ] + then + PLATFORM="iPhoneSimulator" + IOS_CFLAGS="-arch $ARCH -mios-simulator-version-min=$MIN_IOS_VERSION" + else + PLATFORM="iPhoneOS" + IOS_CFLAGS="-arch $ARCH -mios-version-min=$MIN_IOS_VERSION -fembed-bitcode" + fi + + HOST_TYPE="${ARCH}-apple-darwin" + if [ "${ARCH}" == "arm64" ]; then + # Fix unknown type for arm64 cpu (which is aarch64) + HOST_TYPE="aarch64-apple-darwin" + fi + + export DEVELOPER=`xcode-select --print-path` + export DEVROOT="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" + export SDKROOT="${DEVROOT}/SDKs/${PLATFORM}${IPHONE_SDK}.sdk" + export CC=`xcrun -find clang` + export LD=`xcrun -find ld` + export CFLAGS="-O3 ${IOS_CFLAGS} -isysroot ${SDKROOT}" + export LDFLAGS="${IOS_CFLAGS} -isysroot ${SDKROOT}" + export CPPFLAGS="${CFLAGS}" + + $CWD/configure \ + --host="${HOST_TYPE}" \ + --prefix="$DEST/$ARCH" \ + --without-lapack \ + --without-python \ + --with-sphinxbase="$SPHINXBASE_DIR" \ + || exit 1 + + make -j3 install || exit 1 + cd $CWD +done + +PROJECT=pocketsphinx + +if [ ! "$*" ] +then + LIPO_ARGS="-output $DEST/lib$PROJECT.a" + for ARCH in $ARCHS + do + LIPO_ARGS="$LIPO_ARGS $DEST/$ARCH/lib/lib$PROJECT.a" + done + lipo -create $LIPO_ARGS || exit 1 +fi + +echo Done diff --git a/Sphinx/builder/ios-build-sphinxbase.sh b/Sphinx/builder/ios-build-sphinxbase.sh new file mode 100755 index 0000000..640c152 --- /dev/null +++ b/Sphinx/builder/ios-build-sphinxbase.sh @@ -0,0 +1,89 @@ +#!/bin/sh + +SCRATCH="scratch" +DEST=`pwd`/"bin" + +ARCHS="arm64 armv7 armv7s x86_64 i386" + +if [ "$*" ] +then + ARCHS="$*" +fi + +if [ "${SPHINX_VERSION_REQ}" != "" ]; then + SPHINX_PKG_SUFFIX="-${SPHINX_VERSION_REQ}" +fi + +CWD=`pwd` + +for ARCH in $ARCHS +do + SPHINXBASE_DIR=`pwd`/../sphinxbase${SPHINX_VERSION_SUFFIX}/bin/$ARCH + echo "building $ARCH..." + mkdir -p "$SCRATCH/$ARCH" + cd "$SCRATCH/$ARCH" + + MIN_IOS_VERSION="8.0" + if [[ "${ARCH}" == "arm64" || "${ARCH}" == "x86_64" ]]; then + MIN_IOS_VERSION="7.0" # 7.0 as this is the minimum for these architectures + fi + + if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ] + then + PLATFORM="iPhoneSimulator" + IOS_CFLAGS="-arch $ARCH -mios-simulator-version-min=$MIN_IOS_VERSION" + else + PLATFORM="iPhoneOS" + IOS_CFLAGS="-arch $ARCH -mios-version-min=$MIN_IOS_VERSION -fembed-bitcode" + fi + + HOST_TYPE="${ARCH}-apple-darwin" + if [ "${ARCH}" == "arm64" ]; then + # Fix unknown type for arm64 cpu (which is aarch64) + HOST_TYPE="aarch64-apple-darwin" + fi + + export DEVELOPER=`xcode-select --print-path` + export DEVROOT="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" + export SDKROOT="${DEVROOT}/SDKs/${PLATFORM}${IPHONE_SDK}.sdk" + export CC=`xcrun -find clang` + export LD=`xcrun -find ld` + export CFLAGS="-O3 ${IOS_CFLAGS} -isysroot ${SDKROOT}" + export LDFLAGS="${IOS_CFLAGS} -isysroot ${SDKROOT}" + export CPPFLAGS="${CFLAGS}" + + $CWD/configure \ + --host="${HOST_TYPE}" \ + --prefix="$DEST/$ARCH" \ + --without-lapack \ + --without-python \ + --with-sphinxbase="$SPHINXBASE_DIR" \ + || exit 1 + + make -j3 install || exit 1 + cd $CWD +done + +PROJECT=sphinxbase + +if [ ! "$*" ] +then + LIPO_ARGS="-output $DEST/lib$PROJECT.a" + for ARCH in $ARCHS + do + LIPO_ARGS="$LIPO_ARGS $DEST/$ARCH/lib/lib$PROJECT.a" + done + lipo -create $LIPO_ARGS || exit 1 +fi +# libsphinxad +if [ ! "$*" ] +then + LIPO_ARGS="-output $DEST/libsphinxad.a" + for ARCH in $ARCHS + do + LIPO_ARGS="$LIPO_ARGS $DEST/$ARCH/lib/libsphinxad.a" + done + lipo -create $LIPO_ARGS || exit 1 +fi + +echo Done diff --git a/Sphinx/include/pocketsphinx/cmdln_macro.h b/Sphinx/include/pocketsphinx/cmdln_macro.h index 8a97b35..ff0ab81 100644 --- a/Sphinx/include/pocketsphinx/cmdln_macro.h +++ b/Sphinx/include/pocketsphinx/cmdln_macro.h @@ -154,7 +154,7 @@ { "-backtrace", \ ARG_BOOLEAN, \ "no", \ - "Print results and backtraces to log file." }, \ + "Print results and backtraces to log." }, \ { "-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 keyword spotting */ +/** Command-line options for keyphrase spotting */ #define POCKETSPHINX_KWS_OPTIONS \ { "-keyphrase", \ ARG_STRING, \ @@ -193,7 +193,7 @@ { "-kws_plp", \ ARG_FLOAT64, \ "1e-1", \ - "Phone loop probability for keyword spotting" }, \ + "Phone loop probability for keyphrase spotting" }, \ { "-kws_delay", \ ARG_INT32, \ "10", \ @@ -243,7 +243,7 @@ { "-lmctl", \ ARG_STRING, \ NULL, \ - "Specify a set of language model\n"}, \ + "Specify a set of language model"}, \ { "-lmname", \ ARG_STRING, \ NULL, \ diff --git a/Sphinx/include/pocketsphinx/pocketsphinx.h b/Sphinx/include/pocketsphinx/pocketsphinx.h index ad8ac6f..c890b2b 100644 --- a/Sphinx/include/pocketsphinx/pocketsphinx.h +++ b/Sphinx/include/pocketsphinx/pocketsphinx.h @@ -408,17 +408,6 @@ int ps_end_utt(ps_decoder_t *ps); 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. * diff --git a/Sphinx/include/pocketsphinx/ps_search.h b/Sphinx/include/pocketsphinx/ps_search.h index 8b5c696..8338752 100644 --- a/Sphinx/include/pocketsphinx/ps_search.h +++ b/Sphinx/include/pocketsphinx/ps_search.h @@ -39,7 +39,7 @@ * There are different possible search modes: * *
(N-1) *
* *out_frame_shift + *out_frame_size input samples.
*
+ * @param fe Front-end object
* @param out_frame_shift Output: Number of samples between each frame start.
* @param out_frame_size Output: Number of samples in each frame.
*/
diff --git a/Sphinx/include/sphinxbase/feat.h b/Sphinx/include/sphinxbase/feat.h
index 5f16a64..0c1462b 100644
--- a/Sphinx/include/sphinxbase/feat.h
+++ b/Sphinx/include/sphinxbase/feat.h
@@ -76,12 +76,12 @@ extern "C" {
"Number of components in the input feature vector" }, \
{ "-cmn", \
ARG_STRING, \
- "current", \
- "Cepstral mean normalization scheme ('current', 'prior', or 'none')" }, \
+ "live", \
+ "Cepstral mean normalization scheme ('live', 'batch', or 'none')" }, \
{ "-cmninit", \
ARG_STRING, \
- "8.0", \
- "Initial values (comma-separated) for cepstral mean when 'prior' is used" }, \
+ "40,3,-1", \
+ "Initial values (comma-separated) for cepstral mean when 'live' is used" }, \
{ "-varnorm", \
ARG_BOOLEAN, \
"no", \
diff --git a/Sphinx/include/sphinxbase/matrix.h b/Sphinx/include/sphinxbase/matrix.h
index 9ee1fc2..b77cab1 100644
--- a/Sphinx/include/sphinxbase/matrix.h
+++ b/Sphinx/include/sphinxbase/matrix.h
@@ -82,7 +82,7 @@ SPHINXBASE_EXPORT void norm_3d(float32 ***arr, uint32 d1, uint32 d2, uint32 d3);
/**
* Floor 3-d array
* @param out output array
- * @para in input array
+ * @param in input array
* @param d1 dimension
* @param d2 dimension
* @param d3 dimension
@@ -109,7 +109,7 @@ SPHINXBASE_EXPORT void floor_nz_3d(float32 ***m, uint32 d1, uint32 d2, uint32 d3
/**
* Floor 1-d array
- * @param m array
+ * @param v array
* @param d1 dimension
* @param floor floor value
**/
diff --git a/Sphinx/include/sphinxbase/ngram_model.h b/Sphinx/include/sphinxbase/ngram_model.h
index f143f9e..10cca07 100644
--- a/Sphinx/include/sphinxbase/ngram_model.h
+++ b/Sphinx/include/sphinxbase/ngram_model.h
@@ -77,7 +77,7 @@ typedef enum ngram_file_type_e {
NGRAM_INVALID = -1, /**< Not a valid file type. */
NGRAM_AUTO, /**< Determine file type automatically. */
NGRAM_ARPA, /**< ARPABO text format (the standard). */
- NGRAM_BIN, /**< Sphinx .DMP format. */
+ NGRAM_BIN /**< Sphinx .DMP format. */
} ngram_file_type_t;
#define NGRAM_INVALID_WID -1 /**< Impossible word ID */
@@ -281,7 +281,7 @@ int32 ngram_probv(ngram_model_t *model, const char *word, ...);
* unigram weight (interpolation with uniform) is not removed.
*/
SPHINXBASE_EXPORT
-int32 ngram_prob(ngram_model_t *model, const char *const *words, int32 n);
+int32 ngram_prob(ngram_model_t *model, const char* const *words, int32 n);
/**
* Quick "raw" probability lookup for a general N-Gram.
diff --git a/Sphinx/include/sphinxbase/yin.h b/Sphinx/include/sphinxbase/yin.h
index f3022a4..7ae7a73 100644
--- a/Sphinx/include/sphinxbase/yin.h
+++ b/Sphinx/include/sphinxbase/yin.h
@@ -83,16 +83,6 @@ void yin_start(yin_t *pe);
SPHINXBASE_EXPORT
void yin_end(yin_t *pe);
-/**
- * Store a frame of data to the pitch estimator.
- *
- * @param pe Pitch estimator.
- * @param frame Frame of frame_size (see
- * yin_init()) samples of audio data.
- */
-SPHINXBASE_EXPORT
-void yin_store(yin_t *pe, int16 const *frame);
-
/**
* Feed a frame of data to the pitch estimator.
*
@@ -103,15 +93,6 @@ void yin_store(yin_t *pe, int16 const *frame);
SPHINXBASE_EXPORT
void yin_write(yin_t *pe, int16 const *frame);
-/**
- * Feed stored frame of data to the pitch estimator.
- * (see yin_store())
- *
- * @param pe Pitch estimator.
- */
-SPHINXBASE_EXPORT
-void yin_write_stored(yin_t *pe);
-
/**
* Read a raw estimated pitch value from the pitch estimator.
*
@@ -126,7 +107,7 @@ void yin_write_stored(yin_t *pe);
* estimate, zero otherwise.
*/
SPHINXBASE_EXPORT
-int yin_read(yin_t *pe, uint16 *out_period, float *out_bestdiff);
+int yin_read(yin_t *pe, uint16 *out_period, uint16 *out_bestdiff);
#ifdef __cplusplus
}
diff --git a/Sphinx/lib/pocketsphinx/arm64/libpocketsphinx.a b/Sphinx/lib/pocketsphinx/arm64/libpocketsphinx.a
index 0991651..05ad6a2 100644
Binary files a/Sphinx/lib/pocketsphinx/arm64/libpocketsphinx.a and b/Sphinx/lib/pocketsphinx/arm64/libpocketsphinx.a differ
diff --git a/Sphinx/lib/pocketsphinx/armv7/libpocketsphinx.a b/Sphinx/lib/pocketsphinx/armv7/libpocketsphinx.a
index 401fa8e..98d9781 100644
Binary files a/Sphinx/lib/pocketsphinx/armv7/libpocketsphinx.a and b/Sphinx/lib/pocketsphinx/armv7/libpocketsphinx.a differ
diff --git a/Sphinx/lib/pocketsphinx/armv7s/libpocketsphinx.a b/Sphinx/lib/pocketsphinx/armv7s/libpocketsphinx.a
index 195c843..b88b25f 100644
Binary files a/Sphinx/lib/pocketsphinx/armv7s/libpocketsphinx.a and b/Sphinx/lib/pocketsphinx/armv7s/libpocketsphinx.a differ
diff --git a/Sphinx/lib/pocketsphinx/i386/libpocketsphinx.a b/Sphinx/lib/pocketsphinx/i386/libpocketsphinx.a
index 7cba5b0..27e2db1 100644
Binary files a/Sphinx/lib/pocketsphinx/i386/libpocketsphinx.a and b/Sphinx/lib/pocketsphinx/i386/libpocketsphinx.a differ
diff --git a/Sphinx/lib/pocketsphinx/libpocketsphinx.a b/Sphinx/lib/pocketsphinx/libpocketsphinx.a
index 4bc3b1b..01390e5 100644
Binary files a/Sphinx/lib/pocketsphinx/libpocketsphinx.a and b/Sphinx/lib/pocketsphinx/libpocketsphinx.a differ
diff --git a/Sphinx/lib/pocketsphinx/x86_64/libpocketsphinx.a b/Sphinx/lib/pocketsphinx/x86_64/libpocketsphinx.a
index 12dcd6e..c4bdd71 100644
Binary files a/Sphinx/lib/pocketsphinx/x86_64/libpocketsphinx.a and b/Sphinx/lib/pocketsphinx/x86_64/libpocketsphinx.a differ
diff --git a/Sphinx/lib/sphinxbase/arm64/libsphinxad.a b/Sphinx/lib/sphinxbase/arm64/libsphinxad.a
index 93ce3f4..948224a 100644
Binary files a/Sphinx/lib/sphinxbase/arm64/libsphinxad.a and b/Sphinx/lib/sphinxbase/arm64/libsphinxad.a differ
diff --git a/Sphinx/lib/sphinxbase/arm64/libsphinxbase.a b/Sphinx/lib/sphinxbase/arm64/libsphinxbase.a
index 172c64c..dd29011 100644
Binary files a/Sphinx/lib/sphinxbase/arm64/libsphinxbase.a and b/Sphinx/lib/sphinxbase/arm64/libsphinxbase.a differ
diff --git a/Sphinx/lib/sphinxbase/armv7/libsphinxad.a b/Sphinx/lib/sphinxbase/armv7/libsphinxad.a
index 0472228..6802492 100644
Binary files a/Sphinx/lib/sphinxbase/armv7/libsphinxad.a and b/Sphinx/lib/sphinxbase/armv7/libsphinxad.a differ
diff --git a/Sphinx/lib/sphinxbase/armv7/libsphinxbase.a b/Sphinx/lib/sphinxbase/armv7/libsphinxbase.a
index 9d98db4..2644bb8 100644
Binary files a/Sphinx/lib/sphinxbase/armv7/libsphinxbase.a and b/Sphinx/lib/sphinxbase/armv7/libsphinxbase.a differ
diff --git a/Sphinx/lib/sphinxbase/armv7s/libsphinxad.a b/Sphinx/lib/sphinxbase/armv7s/libsphinxad.a
index b259167..50a00fb 100644
Binary files a/Sphinx/lib/sphinxbase/armv7s/libsphinxad.a and b/Sphinx/lib/sphinxbase/armv7s/libsphinxad.a differ
diff --git a/Sphinx/lib/sphinxbase/armv7s/libsphinxbase.a b/Sphinx/lib/sphinxbase/armv7s/libsphinxbase.a
index 98f0bc2..886ba9e 100644
Binary files a/Sphinx/lib/sphinxbase/armv7s/libsphinxbase.a and b/Sphinx/lib/sphinxbase/armv7s/libsphinxbase.a differ
diff --git a/Sphinx/lib/sphinxbase/i386/libsphinxad.a b/Sphinx/lib/sphinxbase/i386/libsphinxad.a
index 2186030..4ba1fea 100644
Binary files a/Sphinx/lib/sphinxbase/i386/libsphinxad.a and b/Sphinx/lib/sphinxbase/i386/libsphinxad.a differ
diff --git a/Sphinx/lib/sphinxbase/i386/libsphinxbase.a b/Sphinx/lib/sphinxbase/i386/libsphinxbase.a
index 2811dab..3168baa 100644
Binary files a/Sphinx/lib/sphinxbase/i386/libsphinxbase.a and b/Sphinx/lib/sphinxbase/i386/libsphinxbase.a differ
diff --git a/Sphinx/lib/sphinxbase/libsphinxad.a b/Sphinx/lib/sphinxbase/libsphinxad.a
index 21dd809..7455cd9 100644
Binary files a/Sphinx/lib/sphinxbase/libsphinxad.a and b/Sphinx/lib/sphinxbase/libsphinxad.a differ
diff --git a/Sphinx/lib/sphinxbase/libsphinxbase.a b/Sphinx/lib/sphinxbase/libsphinxbase.a
index e383e66..857360e 100644
Binary files a/Sphinx/lib/sphinxbase/libsphinxbase.a and b/Sphinx/lib/sphinxbase/libsphinxbase.a differ
diff --git a/Sphinx/lib/sphinxbase/x86_64/libsphinxad.a b/Sphinx/lib/sphinxbase/x86_64/libsphinxad.a
index d146703..45d21f8 100644
Binary files a/Sphinx/lib/sphinxbase/x86_64/libsphinxad.a and b/Sphinx/lib/sphinxbase/x86_64/libsphinxad.a differ
diff --git a/Sphinx/lib/sphinxbase/x86_64/libsphinxbase.a b/Sphinx/lib/sphinxbase/x86_64/libsphinxbase.a
index d4ebdd8..64b3cc4 100644
Binary files a/Sphinx/lib/sphinxbase/x86_64/libsphinxbase.a and b/Sphinx/lib/sphinxbase/x86_64/libsphinxbase.a differ
diff --git a/TLSphinx.xcodeproj/project.pbxproj b/TLSphinx.xcodeproj/project.pbxproj
index 2abd497..709d7ea 100644
--- a/TLSphinx.xcodeproj/project.pbxproj
+++ b/TLSphinx.xcodeproj/project.pbxproj
@@ -374,7 +374,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
- ENABLE_BITCODE = NO;
+ ENABLE_BITCODE = YES;
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
@@ -408,7 +408,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
- ENABLE_BITCODE = NO;
+ ENABLE_BITCODE = YES;
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,