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

Commit ac70b15

Browse files
committed
Updated to latest HEAD
No need for winmm or libsphinxad in python
1 parent d9a4bac commit ac70b15

File tree

4 files changed

+7
-18
lines changed

4 files changed

+7
-18
lines changed

example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Create a decoder with certain model
1010
config = Decoder.default_config()
1111
config.set_string('-hmm', path.join(MODELDIR, 'en-us/en-us'))
12-
config.set_string('-lm', path.join(MODELDIR, 'en-us/en-us.lm.dmp'))
12+
config.set_string('-lm', path.join(MODELDIR, 'en-us/en-us.lm.bin'))
1313
config.set_string('-dict', path.join(MODELDIR, 'en-us/cmudict-en-us.dict'))
1414
decoder = Decoder(config)
1515

setup.py

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,12 @@
5555
PY2 = sys.version_info[0] == 2
5656

5757
libsphinxbase = (
58-
[s for s in glob('sphinxbase/src/libsphinxbase/lm/*.c') if 'lm3g_templates.c' not in s] +
58+
glob('sphinxbase/src/libsphinxbase/lm/*.c') +
5959
glob('sphinxbase/src/libsphinxbase/feat/*.c') +
6060
glob('sphinxbase/src/libsphinxbase/util/*.c') +
6161
glob('sphinxbase/src/libsphinxbase/fe/*.c')
6262
)
6363

64-
libsphinxad = []
65-
6664
libpocketsphinx = glob('pocketsphinx/src/libpocketsphinx/*.c')
6765

6866
sb_include_dirs = ['sphinxbase/include', 'sphinxbase/include/sphinxbase']
@@ -82,9 +80,6 @@
8280
extra_compile_args = []
8381

8482
if sys.platform.startswith('linux'):
85-
libsphinxad.extend([
86-
'sphinxbase/src/libsphinxad/ad_oss.c'
87-
])
8883
sb_include_dirs.extend(['include'])
8984
extra_compile_args.extend([
9085
'-Wno-unused-label',
@@ -94,11 +89,7 @@
9489
'-Wno-unused-variable'
9590
])
9691
elif sys.platform.startswith('win'):
97-
libsphinxad.extend([
98-
'sphinxbase/src/libsphinxad/ad_win32.c'
99-
])
10092
sb_include_dirs.extend(['sphinxbase/include/win32'])
101-
libraries.append('winmm')
10293
define_macros.extend([
10394
('WIN32', None),
10495
('_WINDOWS', None),
@@ -112,19 +103,17 @@
112103
'/wd4018'
113104
])
114105
elif sys.platform.startswith('darwin'):
115-
pass
106+
sb_include_dirs.extend(['include'])
116107
else:
117108
pass
118109

119110
sb_sources = (
120111
libsphinxbase +
121-
libsphinxad +
122112
['sphinxbase/swig/sphinxbase.i']
123113
)
124114

125115
ps_sources = (
126116
libsphinxbase +
127-
libsphinxad +
128117
libpocketsphinx +
129118
['pocketsphinx/swig/pocketsphinx.i']
130119
)
@@ -147,14 +136,14 @@
147136

148137
setup(
149138
name='pocketsphinx',
150-
version='0.0.4',
139+
version='0.0.5',
151140
description='Python interface to CMU SphinxBase and PocketSphinx libraries',
152141
long_description=__doc__,
153142
author='Dmitry Prazdnichnov',
154143
author_email='[email protected]',
155144
maintainer='Dmitry Prazdnichnov',
156145
maintainer_email='[email protected]',
157-
url='https://github.com/bambocher/pocketsphinx-python',
146+
url='https://github.com/cmusphinx/pocketsphinx-python',
158147
download_url='https://pypi.python.org/pypi/pocketsphinx',
159148
packages=['sphinxbase', 'pocketsphinx'],
160149
ext_modules=[

sphinxbase

Submodule sphinxbase updated 61 files

0 commit comments

Comments
 (0)