Skip to content
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Commit 48da059

Browse files
authored
Merge pull request #68 from lenzo-duo/kal-merge-up
Merge from upstream
2 parents 3e711aa + 603138a commit 48da059

32 files changed

+1617
-538
lines changed

.gitignore

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1-
.idea
2-
venv
3-
build
4-
dist
1+
.idea/
2+
.vscode/
3+
build/
4+
dist/
55
MANIFEST
6+
__pycache__
67
*.pyd
78
*.egg-info
89
*.so
9-
__pycache__
10+
*.htk
11+
*.lat
12+
*.pyc
13+
*.log
14+
sphinxbase/ad_win32.py
15+
sphinxbase/ad_openal.py
16+
sphinxbase/ad_pulse.py
17+
sphinxbase/ad_alsa.py
18+
sphinxbase/sphinxbase.py
19+
pocketsphinx/pocketsphinx.py
20+
*_wrap.c
21+
pocketsphinx/data/
22+
pocketsphinx/model/

.gitmodules

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
[submodule "pocketsphinx"]
2-
path = pocketsphinx
3-
url = https://github.com/cmusphinx/pocketsphinx
4-
ignore = dirty
5-
[submodule "sphinxbase"]
6-
path = sphinxbase
7-
url = https://github.com/cmusphinx/sphinxbase
8-
ignore = dirty
1+
[submodule "deps/pocketsphinx"]
2+
path = deps/pocketsphinx
3+
url = https://github.com/cmusphinx/pocketsphinx
4+
[submodule "deps/sphinxbase"]
5+
path = deps/sphinxbase
6+
url = https://github.com/cmusphinx/sphinxbase

.travis.yml

Lines changed: 67 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,70 @@
1-
language: python
2-
python:
3-
- "2.6"
4-
- "2.7"
5-
- "3.2"
6-
- "3.3"
7-
- "3.4"
8-
- "3.5"
9-
- "3.5-dev"
10-
- "nightly"
1+
sudo: false
2+
3+
env:
4+
global:
5+
secure: kRjum2tZsaQZPnti27bc/ZIjYS1hftXTyuSWdq/6raRignORgbZMUc/RMXBz+ig8kiEVE3SFBZdapECGj+3Vb6Q6Vi4ypv8lR4rtJMTNITSOeM1KHHDCi6xLLGKrOsJ5ndkYHTNxuyIMGZu9Sv3TMcNqHcBChbZKT383OXgrxLA=
6+
7+
matrix:
8+
include:
9+
- os: osx
10+
osx_image: xcode6.4
11+
language: generic
12+
env: ENABLE_LIBSPHINXAD=1 BUILD_WHEEL=true
13+
- os: osx
14+
osx_image: xcode8
15+
language: generic
16+
env: ENABLE_LIBSPHINXAD=1 BUILD_WHEEL=true
17+
- os: osx
18+
osx_image: xcode8.3
19+
language: generic
20+
env: ENABLE_LIBSPHINXAD=1 BUILD_WHEEL=true
21+
- os: osx
22+
osx_image: xcode9.3
23+
language: generic
24+
env: ENABLE_LIBSPHINXAD=1 BUILD_WHEEL=true
25+
- os: linux
26+
language: python
27+
python: 2.7
28+
env: ENABLE_LIBSPHINXAD=1
29+
- os: linux
30+
language: python
31+
python: 3.5
32+
env: ENABLE_LIBSPHINXAD=1
33+
- os: linux
34+
language: python
35+
python: 3.6
36+
env: ENABLE_LIBSPHINXAD=1 BUILD_SDIST=true
37+
1138
before_install:
12-
- sudo apt-get update -qq
13-
- sudo apt-get install -qq build-essential swig
39+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
40+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew reinstall swig python python@2; fi
41+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$HOME/Library/Python/3.6/bin:$PATH; fi
42+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
43+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y swig libpulse-dev libasound2-dev; fi
44+
1445
install:
15-
- python setup.py bdist_wheel build
16-
- python setup.py bdist_wheel build
17-
- pip install ./dist/pocketsphinx-*.whl
46+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python2 -m pip install --user --upgrade pip setuptools wheel twine; fi
47+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 -m pip install --user --upgrade pip setuptools wheel twine; fi
48+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python -m pip install --upgrade pip setuptools wheel twine; fi
49+
1850
script:
19-
- cd pocketsphinx/swig/python/test
20-
- python ./config_test.py
21-
- python ./decoder_test.py
22-
- python ./fsg_test.py
23-
- python ./jsgf_test.py
24-
- python ./kws_test.py
25-
- python ./lattice_test.py
26-
- python ./lm_test.py
51+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python2 setup.py test; fi
52+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 setup.py test; fi
53+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python setup.py test; fi
54+
55+
before_deploy:
56+
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$BUILD_SDIST" == "true" ]]; then python2 setup.py sdist; fi
57+
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$BUILD_WHEEL" == "true" ]]; then python2 setup.py bdist_wheel; fi
58+
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$BUILD_SDIST" == "true" ]]; then python3 setup.py sdist; fi
59+
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$BUILD_WHEEL" == "true" ]]; then python3 setup.py bdist_wheel; fi
60+
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD_SDIST" == "true" ]]; then python setup.py sdist; fi
61+
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD_WHEEL" == "true" ]]; then python setup.py bdist_wheel; fi
62+
63+
deploy:
64+
provider: script
65+
script: twine upload -u bambucha -p $PASSWORD dist/*
66+
on:
67+
tags: true
68+
branch: master
69+
condition: '"$BUILD_SDIST" == "true" || "$BUILD_WHEEL" == "true"'
70+
skip_cleanup: true

LICENSE

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Copyright (c) 1999-2016 Carnegie Mellon University. All rights
2+
reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions
6+
are met:
7+
8+
1. Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
11+
2. Redistributions in binary form must reproduce the above copyright
12+
notice, this list of conditions and the following disclaimer in
13+
the documentation and/or other materials provided with the
14+
distribution.
15+
16+
This work was supported in part by funding from the Defense Advanced
17+
Research Projects Agency and the National Science Foundation of the
18+
United States of America, and the CMU Sphinx Speech Consortium.
19+
20+
THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND
21+
ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
24+
NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MANIFEST.in

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
prune build
2-
prune dist
3-
recursive-include sphinxbase/include *.h
4-
recursive-include sphinxbase/src *.c
5-
recursive-include sphinxbase/src *.h
6-
recursive-include sphinxbase/swig *.i
7-
prune sphinxbase/include/wince
8-
prune sphinxbase/include/android
9-
prune sphinxbase/src/sphinx_adtools
10-
prune sphinxbase/src/sphinx_cepview
11-
prune sphinxbase/src/sphinx_fe
12-
prune sphinxbase/src/sphinx_jsgf2fsg
13-
prune sphinxbase/src/sphinx_lmtools
14-
recursive-include pocketsphinx/include *.h
15-
recursive-include pocketsphinx/src *.c
16-
recursive-include pocketsphinx/src *.h
17-
recursive-include pocketsphinx/swig *.i
18-
prune pocketsphinx/src/gst-plugin
19-
prune pocketsphinx/src/programs
20-
include readme.md
21-
recursive-include include *.h
1+
recursive-include deps/sphinxbase/include *.h
2+
prune deps/sphinxbase/include/wince
3+
recursive-include deps/sphinxbase/src/libsphinxad *.c
4+
recursive-include deps/sphinxbase/src/libsphinxbase *.c *.h
5+
recursive-include deps/pocketsphinx/include *.h
6+
recursive-include deps/pocketsphinx/src/libpocketsphinx *.c *.h
7+
global-include *.i
8+
graft pocketsphinx/model
9+
graft pocketsphinx/data
10+
include README.md LICENSE

0 commit comments

Comments
 (0)