This repository has been archived by the owner on Oct 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathcommon.py
61 lines (51 loc) · 1.98 KB
/
common.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
descr = """Talkbox, to make your numpy environment speech aware !
Talkbox is set of python modules for speech/signal processing. The goal of this
toolbox is to be a sandbox for features which may end up in scipy at some
point. The following features are planned before a 1.0 release:
* Spectrum estimation related functions: both parametic (lpc, high
resolution methods like music and co), and non-parametric (Welch,
periodogram)
* Fourier-like transforms (DCT, DST, MDCT, etc...)
* Basic signal processing tasks such as resampling
* Speech related functionalities: mfcc, mel spectrum, etc..
* More as it comes
I want talkbox to be useful for both research and educational purpose. As such,
a requirement is to have a pure python implementation for everything - for
educational purpose and reproducibility - and optional C for speed."""
DISTNAME = 'scikits.talkbox'
DESCRIPTION = 'Talkbox, a set of python modules for speech/signal processing'
LONG_DESCRIPTION = descr
MAINTAINER = 'David Cournapeau',
MAINTAINER_EMAIL = '[email protected]',
URL = 'http://projects.scipy.org/scipy/scikits'
LICENSE = 'MIT'
DOWNLOAD_URL = URL
MAJOR = 0
MINOR = 2
MICRO = 3
DEV = False
CLASSIFIERS = [ 'Development Status :: 1 - Planning',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Topic :: Scientific/Engineering']
def build_verstring():
return '%d.%d.%d' % (MAJOR, MINOR, MICRO)
def build_fverstring():
if DEV:
return build_verstring() + '.dev'
else:
return build_verstring()
def write_version(fname):
f = open(fname, "w")
f.write("""
short_version='%s'
version=short_version
dev=%s
if dev:
version += '.dev'
""" % (build_verstring(), DEV))
f.close()
VERSION = build_fverstring()
INSTALL_REQUIRE = 'numpy'