diff options
author | Moonchild <moonchild@palemoon.org> | 2020-05-20 10:19:04 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-05-20 14:04:17 +0000 |
commit | 99c2e698d2a3c56649e42d8d2133706cd8c9501e (patch) | |
tree | 85be449d772eb57860f0f386efb4bc1e790fd498 /media/sphinxbase/update.sh | |
parent | 15ac4021b06d549e47c9e2efc9364a9eb96bfe82 (diff) | |
download | UXP-99c2e698d2a3c56649e42d8d2133706cd8c9501e.tar UXP-99c2e698d2a3c56649e42d8d2133706cd8c9501e.tar.gz UXP-99c2e698d2a3c56649e42d8d2133706cd8c9501e.tar.lz UXP-99c2e698d2a3c56649e42d8d2133706cd8c9501e.tar.xz UXP-99c2e698d2a3c56649e42d8d2133706cd8c9501e.zip |
Issue #1538 - remove speech recognition engine
This removes speech recognition, pocketsphinx, training models
and the speech automated test interface.
This also re-establishes proper use of MOZ_WEBSPEECH to work
for the speech API (synthesis part only) that was a broken mess
before, with some synth parts being always built, some parts
being built only with it enabled and recognition parts being
dependent on it. I'm pretty sure it'd be totally busted if you'd
ever have tried building without MOZ_WEBPEECH before.
Tested that synthesis still works as-intended.
This resolves #1538
Diffstat (limited to 'media/sphinxbase/update.sh')
-rwxr-xr-x | media/sphinxbase/update.sh | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/media/sphinxbase/update.sh b/media/sphinxbase/update.sh deleted file mode 100755 index e0188b3ff..000000000 --- a/media/sphinxbase/update.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Usage: ./update.sh <sphinxbase_directory> -# -# Copies the needed files from a directory containing the original -# sphinxbase source, and applies any local patches we're carrying. - - -# Create config.h -echo "#if ( defined(_WIN32) || defined(__CYGWIN__) )" > config.h -cat $1/include/win32/config.h >> config.h -echo "#else" >> config.h -cat $1/include/android/config.h >> config.h -echo "#endif" >> config.h - -# Create sphinx_config.h -echo "#if ( defined(_WIN32) || defined(__CYGWIN__) )" > sphinx_config.h -cat $1/include/win32/sphinx_config.h >> sphinx_config.h -echo "#else" >> sphinx_config.h -cat $1/include/android/sphinx_config.h >> sphinx_config.h -echo "#endif" >> sphinx_config.h -sed -i '' -e 's/#define HAVE_LONG_LONG 1/\/*#define HAVE_LONG_LONG 1*\//g' sphinx_config.h - -# Copy created file -cp sphinx_config.h sphinxbase/sphinx_config.h - -# Copy source files -cp $1/include/sphinxbase/*.h sphinxbase/ -cp $1/src/libsphinxbase/fe/*.c src/libsphinxbase/fe/ -cp $1/src/libsphinxbase/fe/*.h src/libsphinxbase/fe/ -cp $1/src/libsphinxbase/feat/*.c src/libsphinxbase/feat/ -cp $1/src/libsphinxbase/lm/*.c src/libsphinxbase/lm/ -cp $1/src/libsphinxbase/lm/*.h src/libsphinxbase/lm/ -cp $1/src/libsphinxbase/util/*.c src/libsphinxbase/util/ - -# Apply any patches against upstream here. -patch -l -p1 < sbthread.patch |