├── .gitignore ├── .travis.yml ├── AUTHORS ├── COPYING ├── ChangeLog ├── INSTALL ├── NEWS ├── README.md ├── README.org ├── SPTK.pc.in ├── appveyor.yml ├── bin ├── acep │ └── _acep.c ├── acorr │ └── _acorr.c ├── agcep │ └── _agcep.c ├── amcep │ └── _amcep.c ├── average │ └── _average.c ├── b2mc │ └── _b2mc.c ├── c2acr │ └── _c2acr.c ├── c2ir │ └── _c2ir.c ├── c2ndps │ └── _c2ndps.c ├── c2sp │ └── _c2sp.c ├── clip │ └── _clip.c ├── da │ ├── da.h │ ├── dawrite.c │ ├── winplay.c │ └── winplay.h ├── dct │ └── _dct.c ├── df2 │ └── _df2.c ├── dfs │ └── _dfs.c ├── dllexport.h ├── ds │ ├── lpfcoef.2to1 │ ├── lpfcoef.3to2 │ ├── lpfcoef.4to3 │ ├── lpfcoef.5to2dn │ ├── lpfcoef.5to2up │ └── titech │ │ ├── COPYING │ │ └── lpfcoef.7to4 ├── excite │ └── _excite.c ├── fft │ └── _fft.c ├── fft2 │ └── _fft2.c ├── fftcep │ └── _fftcep.c ├── fftr │ └── _fftr.c ├── fftr2 │ └── _fftr2.c ├── fig+fdrw │ ├── fdrw.c │ ├── fig.c │ ├── fig.h │ ├── fig0.c │ ├── fig1.c │ ├── plot.c │ ├── plot.h │ └── plsub.c ├── freqt │ └── _freqt.c ├── gc2gc │ └── _gc2gc.c ├── gcep │ └── _gcep.c ├── glsadf │ └── _glsadf.c ├── gmm │ ├── _gmm.c │ ├── gmm.h │ └── gmmp.c ├── gnorm │ └── _gnorm.c ├── grpdelay │ └── _grpdelay.c ├── histogram │ └── _histogram.c ├── ifft │ └── _ifft.c ├── ifft2 │ └── _ifft2.c ├── ifftr │ └── _ifftr.c ├── ignorm │ └── _ignorm.c ├── imsvq │ └── _imsvq.c ├── ivq │ └── _ivq.c ├── lbg │ └── _lbg.c ├── levdur │ └── _levdur.c ├── lmadf │ └── _lmadf.c ├── lpc │ └── _lpc.c ├── lpc2c │ └── _lpc2c.c ├── lpc2lsp │ └── _lpc2lsp.c ├── lpc2par │ └── _lpc2par.c ├── lsp2lpc │ └── _lsp2lpc.c ├── lsp2sp │ └── _lsp2sp.c ├── lspcheck │ └── _lspcheck.c ├── lspdf │ └── _lspdf.c ├── ltcdf │ └── _ltcdf.c ├── mc2b │ └── _mc2b.c ├── mcep │ └── _mcep.c ├── mfcc │ └── _mfcc.c ├── mgc2mgc │ └── _mgc2mgc.c ├── mgc2sp │ └── _mgc2sp.c ├── mgcep │ └── _mgcep.c ├── mgclsp2sp │ └── _mgclsp2sp.c ├── mglsadf │ └── _mglsadf.c ├── mlpg │ └── _mlpg.c ├── mlsadf │ └── _mlsadf.c ├── msvq │ └── _msvq.c ├── ndps2c │ └── _ndps2c.c ├── norm0 │ └── _norm0.c ├── nrand │ └── _nrand.c ├── par2lpc │ └── _par2lpc.c ├── pca │ └── pcas.c ├── phase │ └── _phase.c ├── pitch │ ├── snack │ │ ├── COPYING │ │ ├── jkGetF0.c │ │ ├── jkGetF0.h │ │ ├── sigproc.c │ │ └── sigproc.h │ └── swipe │ │ ├── COPYING │ │ ├── swipe.c │ │ ├── vector.c │ │ └── vector.h ├── poledf │ └── _poledf.c ├── psgr │ ├── dict.c │ ├── eps.c │ ├── plot.c │ └── psgr.h ├── reverse │ └── _reverse.c ├── rmse │ └── _rmse.c ├── root_pol │ └── _root_pol.c ├── smcep │ └── _smcep.c ├── transpose │ └── _transpose.c ├── uels │ └── _uels.c ├── ulaw │ └── _ulaw.c ├── us │ ├── lpfcoef.2to3f │ ├── lpfcoef.2to3s │ ├── lpfcoef.3to4 │ ├── lpfcoef.4to5 │ ├── lpfcoef.5to7 │ ├── lpfcoef.5to8 │ └── titech │ │ ├── COPYING │ │ ├── lpfcoef.3to5 │ │ └── lpfcoef.7to8 ├── vc │ ├── _vc.c │ └── hts_engine_API │ │ ├── COPYING │ │ ├── HTS_engine.h │ │ ├── HTS_hidden.h │ │ ├── HTS_misc.c │ │ ├── HTS_pstream.c │ │ └── HTS_sstream.c ├── vq │ └── _vq.c ├── wavjoin │ └── _wavjoin.c ├── wavsplit │ └── _wavsplit.c ├── window │ └── _window.c ├── wscript ├── xgr │ ├── config.h │ ├── gcdata.h │ ├── marks │ │ ├── mark0.dat │ │ ├── mark1.dat │ │ ├── mark10.dat │ │ ├── mark11.dat │ │ ├── mark12.dat │ │ ├── mark13.dat │ │ ├── mark14.dat │ │ ├── mark15.dat │ │ ├── mark2.dat │ │ ├── mark3.dat │ │ ├── mark4.dat │ │ ├── mark5.dat │ │ ├── mark6.dat │ │ ├── mark7.dat │ │ ├── mark8.dat │ │ └── mark9.dat │ ├── plot.c │ ├── tills │ │ ├── till0.dat │ │ ├── till1.dat │ │ ├── till10.dat │ │ ├── till11.dat │ │ ├── till12.dat │ │ ├── till13.dat │ │ ├── till14.dat │ │ ├── till15.dat │ │ ├── till16.dat │ │ ├── till2.dat │ │ ├── till3.dat │ │ ├── till4.dat │ │ ├── till5.dat │ │ ├── till6.dat │ │ ├── till7.dat │ │ ├── till8.dat │ │ └── till9.dat │ ├── window.c │ └── xgr.h ├── zcross │ └── _zcross.c └── zerodf │ └── _zerodf.c ├── example ├── arayuru.wav ├── hello.c ├── hello.cpp └── wscript ├── include └── SPTK.h ├── lib ├── agexp.c ├── cholesky.c ├── fileio.c ├── fillz.c ├── getfp.c ├── getmem.c ├── gexp.c ├── glog.c ├── invert.c ├── matrix.c ├── movem.c ├── mseq.c ├── theq.c └── toeplitz.c ├── msys_build.sh ├── waf └── wscript /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by https://www.gitignore.io 2 | 3 | ### Emacs ### 4 | # -*- mode: gitignore; -*- 5 | *~ 6 | \#*\# 7 | /.emacs.desktop 8 | /.emacs.desktop.lock 9 | *.elc 10 | auto-save-list 11 | tramp 12 | .\#* 13 | 14 | # Org-mode 15 | .org-id-locations 16 | *_archive 17 | 18 | # flymake-mode 19 | *_flymake.* 20 | 21 | # eshell files 22 | /eshell/history 23 | /eshell/lastdir 24 | 25 | # elpa packages 26 | /elpa/ 27 | 28 | # reftex files 29 | *.rel 30 | 31 | # AUCTeX auto folder 32 | /auto/ 33 | 34 | # cask packages 35 | .cask/ 36 | 37 | 38 | ### vim ### 39 | [._]*.s[a-w][a-z] 40 | [._]s[a-w][a-z] 41 | *.un~ 42 | Session.vim 43 | .netrwhist 44 | *~ 45 | 46 | 47 | ### C++ ### 48 | # Compiled Object files 49 | *.slo 50 | *.lo 51 | *.o 52 | *.obj 53 | 54 | # Precompiled Headers 55 | *.gch 56 | *.pch 57 | 58 | # Compiled Dynamic libraries 59 | *.so 60 | *.dylib 61 | *.dll 62 | 63 | # Fortran module files 64 | *.mod 65 | 66 | # Compiled Static libraries 67 | *.lai 68 | *.la 69 | *.a 70 | *.lib 71 | 72 | # Executables 73 | *.exe 74 | *.out 75 | *.app 76 | 77 | 78 | ### Autotools ### 79 | # http://www.gnu.org/software/automake 80 | 81 | Makefile.in 82 | 83 | # http://www.gnu.org/software/autoconf 84 | 85 | /autom4te.cache 86 | /aclocal.m4 87 | /compile 88 | /configure 89 | /depcomp 90 | /install-sh 91 | /missing 92 | /stamp-h1 93 | 94 | 95 | ### CMake ### 96 | CMakeCache.txt 97 | CMakeFiles 98 | Makefile 99 | cmake_install.cmake 100 | install_manifest.txt 101 | 102 | 103 | ### Linux ### 104 | *~ 105 | 106 | # KDE directory preferences 107 | .directory 108 | 109 | 110 | ### OSX ### 111 | .DS_Store 112 | .AppleDouble 113 | .LSOverride 114 | 115 | # Icon must end with two \r 116 | Icon 117 | 118 | 119 | # Thumbnails 120 | ._* 121 | 122 | # Files that might appear on external disk 123 | .Spotlight-V100 124 | .Trashes 125 | 126 | # Directories potentially created on remote AFP share 127 | .AppleDB 128 | .AppleDesktop 129 | Network Trash Folder 130 | Temporary Items 131 | .apdisk 132 | 133 | 134 | ### Windows ### 135 | # Windows image file caches 136 | Thumbs.db 137 | ehthumbs.db 138 | 139 | # Folder config file 140 | Desktop.ini 141 | 142 | # Recycle Bin used on file shares 143 | $RECYCLE.BIN/ 144 | 145 | # Windows Installer files 146 | *.cab 147 | *.msi 148 | *.msm 149 | *.msp 150 | 151 | # Windows shortcuts 152 | *.lnk 153 | 154 | # manually added 155 | .waf* 156 | .dropbox 157 | .lock-* 158 | *.lib 159 | *.log 160 | build 161 | Makefile 162 | .deps/ 163 | config.status -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: cpp 2 | 3 | compiler: 4 | - gcc 5 | - clang 6 | 7 | # Just check if build success or not for now 8 | script: 9 | - ./waf configure 10 | - ./waf build 11 | 12 | notifications: 13 | email: false 14 | 15 | os: 16 | - linux 17 | - osx 18 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | The Speech Signal Processing Toolkit (SPTK) is a software for speech signal 2 | processing tools for UNIX environments. This software is released under the 3 | Modified BSD license. See the COPYING file in the same directory as this file 4 | for the license. 5 | 6 | The SPTK has been developed by several members of SPTK Working Group and some 7 | guraduate students in Nagoya Institute of Technology: 8 | 9 | Keiichi Tokuda http://www.sp.nitech.ac.jp/~tokuda/ 10 | (Produce and Design) 11 | Keiichiro Oura http://www.sp.nitech.ac.jp/~uratec/ 12 | (Main Maintainer) 13 | Takenori Yoshimura http://www.sp.nitech.ac.jp/~takenori/ 14 | Akira Tamamori http://www.sp.nitech.ac.jp/~mataki/ 15 | Shinji Sako http://www.mmsp.nitech.ac.jp/~sako/ 16 | Heiga Zen 17 | Takashi Nose 18 | Toru Takahashi http://winnie.kuis.kyoto-u.ac.jp/~tall/ 19 | Junichi Yamagishi http://homepages.inf.ed.ac.uk/jyamagis/ 20 | Yoshihiko Nankaku http://www.sp.nitech.ac.jp/~nankaku/ 21 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* 2014- Ryuichi Yamamoto (ex. NIT) */ 15 | /* */ 16 | /* */ 17 | /* All rights reserved. */ 18 | /* */ 19 | /* Redistribution and use in source and binary forms, with or */ 20 | /* without modification, are permitted provided that the following */ 21 | /* conditions are met: */ 22 | /* */ 23 | /* - Redistributions of source code must retain the above copyright */ 24 | /* notice, this list of conditions and the following disclaimer. */ 25 | /* - Redistributions in binary form must reproduce the above */ 26 | /* copyright notice, this list of conditions and the following */ 27 | /* disclaimer in the documentation and/or other materials provided */ 28 | /* with the distribution. */ 29 | /* - Neither the name of the SPTK working group nor the names of its */ 30 | /* contributors may be used to endorse or promote products derived */ 31 | /* from this software without specific prior written permission. */ 32 | /* */ 33 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 34 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 35 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 36 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 37 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 38 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 39 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 40 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 41 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 42 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 43 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 44 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 45 | /* POSSIBILITY OF SUCH DAMAGE. */ 46 | /* ----------------------------------------------------------------- */ 47 | -------------------------------------------------------------------------------- /INSTALL: -------------------------------------------------------------------------------- 1 | Installation Instructions 2 | ************************* 3 | 4 | 1. After unpacking the tar.gz file, cd to the SPTK directory. 5 | 6 | 2. Run configure script with appropriate options. 7 | 8 | % ./configure 9 | 10 | For detail, please see. 11 | 12 | % ./configure --help 13 | 14 | 3. Run make. 15 | 16 | % make 17 | 18 | 4. Install library and binary. 19 | 20 | % make install 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SPTK 2 | 3 | [![Build Status](https://travis-ci.org/r9y9/SPTK.svg?branch=master)](https://travis-ci.org/r9y9/SPTK) 4 | [![Build status](https://ci.appveyor.com/api/projects/status/8y2w0gbvve6anrsn/branch/master?svg=true)](https://ci.appveyor.com/project/r9y9/sptk/branch/master) 5 | 6 | This repository hosts a modified version of [Speech Signal Processing Toolkit (SPTK)](http://sp-tk.sourceforge.net/) to provide a SPTK library rather than CLI tools so that it can easily be used from FFI interfaces (e.g., cython or cffi in Python). 7 | 8 | This version of SPTK is used by the following bindings: 9 | 10 | - [r9y9/SPTK.jl](https://github.com/r9y9/SPTK.jl) 11 | - [r9y9/pysptk](https://github.com/r9y9/pysptk) 12 | - [r9y9/gossp](https://github.com/r9y9/gossp/tree/master/3rdparty/sptk) 13 | 14 | Note that if you want the command line programs of SPTK, please check the original one instead. 15 | 16 | ## Supported Platforms 17 | 18 | - Linux 19 | - Mac OS X 20 | - Windows 21 | 22 | ## Changes 23 | 24 | The important changes from the original SPTK are summerized as follows: 25 | 26 | - Integrate [waf](https://code.google.com/p/waf/) build tool 27 | - Add `swipe` inteface to `SPTK.h` [SPTK.h#L382](https://github.com/r9y9/SPTK/blob/master/include/SPTK.h#L382) 28 | - Windows 32/64 bit support. DLLs are avilable on the release page (https://github.com/r9y9/SPTK/releases) 29 | - Avoid `exit` inside a function, as possible. 30 | - Remove `wavsplit` and `wavjoin` from target sources to compile for cross-platform compilation ability, since original `wavsplit` and `wavjoin` use `direct.h` that only exists in POSIX enviroments. ([#8]) 31 | - Add `DLLEXPORT` macro to expose API functions explicitly in MSVC environments (NOTE: this is not fully used for now) ([#8]) 32 | - Ensure c89 compatibility 33 | - Export excite function ([#11]) 34 | - Cleanup and export RAPT function ([#12]) 35 | 36 | ## Installation 37 | 38 | Type the following commands from terminal: 39 | 40 | ```bash 41 | ./waf configure 42 | ./waf 43 | sudo ./waf install 44 | ``` 45 | 46 | ## License 47 | 48 | [Modified BSD](./COPYING) 49 | 50 | 51 | [#8]: https://github.com/r9y9/SPTK/pull/8 52 | [#11]: https://github.com/r9y9/SPTK/pull/11 53 | [#12]: https://github.com/r9y9/SPTK/pull/12 54 | -------------------------------------------------------------------------------- /SPTK.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: @PACKAGE@ 7 | Description: Speech Signal Processing Toolkit (SPTK) 8 | Version: @VERSION@ 9 | Cflags: -I${includedir} 10 | Libs: -L${libdir} @libs@ 11 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | environment: 2 | PYTHON: "C:/Python27" 3 | matrix: 4 | - COMPILER: gcc 5 | ARCH: "i686" 6 | 7 | - COMPILER: gcc 8 | ARCH: "x86_64" 9 | 10 | - COMPILER: msvc 11 | ARCH: "i686" 12 | 13 | - COMPILER: msvc 14 | ARCH: "x86_64" 15 | 16 | init: 17 | - "ECHO %PYTHON%" 18 | - ps: "ls C:/Python*" 19 | - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" 20 | 21 | cache: 22 | - mingw-w32-bin-i686-20161221.7z 23 | - mingw-w64-bin-x86_64-20161221.7z 24 | 25 | skip_commits: 26 | # Add [av skip] to commit messages for docfixes, etc to reduce load on queue 27 | message: /\[av skip\]/ 28 | 29 | notifications: 30 | - provider: Email 31 | on_build_success: false 32 | on_build_failure: false 33 | on_build_status_changed: false 34 | 35 | build_script: 36 | - C:\MinGW\msys\1.0\bin\sh --login /c/projects/sptk/msys_build.sh 37 | 38 | artifacts: 39 | - path: '**\*.dll' 40 | name: SPTK 41 | -------------------------------------------------------------------------------- /bin/acorr/_acorr.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /*********************************************************** 46 | 47 | $Id: _acorr.c,v 1.18 2016/12/22 10:52:59 fjst15124 Exp $ 48 | 49 | obtain autocorrelation sequence 50 | 51 | void acorr(x,l,r,np) 52 | 53 | double *x : input sequence 54 | int l : flame length 55 | double *r : autocorrelation sequence 56 | int np : order of sequence 57 | 58 | ***********************************************************/ 59 | 60 | #include 61 | 62 | #if defined(WIN32) 63 | #include "SPTK.h" 64 | #else 65 | #include 66 | #endif 67 | 68 | void acorr(double *x, int l, double *r, const int np) 69 | { 70 | double d; 71 | int k, i; 72 | 73 | for (k = 0; k <= np; k++) { 74 | for (d = 0.0, i = 0; i < l - k; i++) 75 | d += x[i] * x[i + k]; 76 | r[k] = d; 77 | } 78 | 79 | return; 80 | } 81 | -------------------------------------------------------------------------------- /bin/dllexport.h: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------*/ 2 | /* Ryuichi YAMAMOTO (zryuichi@gmail.com) */ 3 | /*--------------------------------------------------------------------------*/ 4 | 5 | #ifndef SPTK_DLLEXPORT_H_ 6 | #define SPTK_DLLEXPORT_H_ 7 | 8 | #ifndef DLLEXPORT 9 | # ifdef _WIN32 10 | # define DLLEXPORT __declspec(dllexport) 11 | # else 12 | # define DLLEXPORT 13 | # endif 14 | #endif 15 | 16 | #endif /* SPTK_DLLEXPORT_H_ */ 17 | -------------------------------------------------------------------------------- /bin/ds/lpfcoef.3to2: -------------------------------------------------------------------------------- 1 | -0.00000207861603485071100294590 2 | -0.00000026733701474768167827278 3 | 0.00000787742737884400412440300 4 | 0.00002083149229292757809162140 5 | 0.00002527162541809957474470139 6 | 0.00000111873600872058887034655 7 | -0.00005889813110115937888622284 8 | -0.00012528910883702337741851807 9 | -0.00012911873636767268180847168 10 | -0.00000288511250801093410700560 11 | 0.00024447636678814888000488281 12 | 0.00047288826317526400089263916 13 | 0.00044930339208804070949554443 14 | 0.00000620898072156705893576145 15 | -0.00075431878212839365005493164 16 | -0.00137708312831819057464599609 17 | -0.00124217686243355274200439453 18 | -0.00001163053275377023965120316 19 | 0.00192089041229337453842163086 20 | 0.00336875231005251407623291016 21 | 0.00292880460619926452636718750 22 | 0.00001944409268617164343595505 23 | -0.00426516029983758926391601562 24 | -0.00726389000192284584045410156 25 | -0.00614703679457306861877441406 26 | -0.00002948570727312471717596054 27 | 0.00856846850365400314331054688 28 | 0.01429103314876556396484375000 29 | 0.01186878699809312820434570312 30 | 0.00004099227226106449961662292 31 | -0.01608676835894584655761718750 32 | -0.02650957182049751281738281250 33 | -0.02181259728968143463134765625 34 | -0.00005263184357318095862865448 35 | 0.02937634848058223724365234375 36 | 0.04849086329340934753417968750 37 | 0.04018242657184600830078125000 38 | 0.00006271777965594083070755005 39 | -0.05627608299255371093750000000 40 | -0.09626765549182891845703125000 41 | -0.08420566469430923461914062500 42 | -0.00006959075835766270756721497 43 | 0.14640828967094421386718750000 44 | 0.31490007042884826660156250000 45 | 0.44899895787239074707031250000 46 | 0.50007206201553344726562500000 47 | 0.44899895787239074707031250000 48 | 0.31490007042884826660156250000 49 | 0.14640828967094421386718750000 50 | -0.00006959075835766270756721497 51 | -0.08420566469430923461914062500 52 | -0.09626765549182891845703125000 53 | -0.05627608299255371093750000000 54 | 0.00006271777965594083070755005 55 | 0.04018242657184600830078125000 56 | 0.04849086329340934753417968750 57 | 0.02937634848058223724365234375 58 | -0.00005263184357318095862865448 59 | -0.02181259728968143463134765625 60 | -0.02650957182049751281738281250 61 | -0.01608676835894584655761718750 62 | 0.00004099227226106449961662292 63 | 0.01186878699809312820434570312 64 | 0.01429103314876556396484375000 65 | 0.00856846850365400314331054688 66 | -0.00002948570727312471717596054 67 | -0.00614703679457306861877441406 68 | -0.00726389000192284584045410156 69 | -0.00426516029983758926391601562 70 | 0.00001944409268617164343595505 71 | 0.00292880460619926452636718750 72 | 0.00336875231005251407623291016 73 | 0.00192089041229337453842163086 74 | -0.00001163053275377023965120316 75 | -0.00124217686243355274200439453 76 | -0.00137708312831819057464599609 77 | -0.00075431878212839365005493164 78 | 0.00000620898072156705893576145 79 | 0.00044930339208804070949554443 80 | 0.00047288826317526400089263916 81 | 0.00024447636678814888000488281 82 | -0.00000288511250801093410700560 83 | -0.00012911873636767268180847168 84 | -0.00012528910883702337741851807 85 | -0.00005889813110115937888622284 86 | 0.00000111873600872058887034655 87 | 0.00002527162541809957474470139 88 | 0.00002083149229292757809162140 89 | 0.00000787742737884400412440300 90 | -0.00000026733701474768167827278 91 | -0.00000207861603485071100294590 92 | -------------------------------------------------------------------------------- /bin/ds/lpfcoef.5to2dn: -------------------------------------------------------------------------------- 1 | 1.499249265179969370365142822266e-06 2 | 1.322897500358521938323974609375e-03 3 | -1.051198432833189144730567932129e-05 4 | -1.055694743990898132324218750000e-02 5 | 3.620622374000959098339080810547e-05 6 | 4.527866095304489135742187500000e-02 7 | -7.999139779713004827499389648438e-05 8 | -1.481104493141174316406250000000e-01 9 | 1.251430512638762593269348144531e-04 10 | 6.120690703392028808593750000000e-01 11 | 9.998552799224853515625000000000e-01 12 | 6.120690703392028808593750000000e-01 13 | 1.251430512638762593269348144531e-04 14 | -1.481104493141174316406250000000e-01 15 | -7.999139779713004827499389648438e-05 16 | 4.527866095304489135742187500000e-02 17 | 3.620622374000959098339080810547e-05 18 | -1.055694743990898132324218750000e-02 19 | -1.051198432833189144730567932129e-05 20 | 1.322897500358521938323974609375e-03 21 | 1.499249265179969370365142822266e-06 22 | -------------------------------------------------------------------------------- /bin/ds/titech/COPYING: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* */ 3 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 4 | /* Interdisciplinary Graduate School of */ 5 | /* Science and Engineering */ 6 | /* */ 7 | /* All rights reserved. */ 8 | /* */ 9 | /* Redistribution and use in source and binary forms, with or */ 10 | /* without modification, are permitted provided that the following */ 11 | /* conditions are met: */ 12 | /* */ 13 | /* - Redistributions of source code must retain the above copyright */ 14 | /* notice, this list of conditions and the following disclaimer. */ 15 | /* - Redistributions in binary form must reproduce the above */ 16 | /* copyright notice, this list of conditions and the following */ 17 | /* disclaimer in the documentation and/or other materials provided */ 18 | /* with the distribution. */ 19 | /* - Neither the name of the SPTK working group nor the names of its */ 20 | /* contributors may be used to endorse or promote products derived */ 21 | /* from this software without specific prior written permission. */ 22 | /* */ 23 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 24 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 25 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 26 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 27 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 28 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 29 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 30 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 31 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 32 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 33 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 34 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 35 | /* POSSIBILITY OF SUCH DAMAGE. */ 36 | /* ----------------------------------------------------------------- */ 37 | 38 | Filter coefficients were designed by Prof. Takao Kobayashi. 39 | -------------------------------------------------------------------------------- /bin/ds/titech/lpfcoef.7to4: -------------------------------------------------------------------------------- 1 | -2.02059e-07 2 | -4.19377e-06 3 | -2.35035e-05 4 | -7.48734e-05 5 | -0.00015442 6 | -0.000188281 7 | -5.05567e-06 8 | 0.00058044 9 | 0.00151677 10 | 0.00221077 11 | 0.00150458 12 | -0.00168565 13 | -0.00707619 14 | -0.0118392 15 | -0.0109136 16 | 0.000190744 17 | 0.0207728 18 | 0.0414233 19 | 0.0455294 20 | 0.0178206 21 | -0.0427124 22 | -0.113043 23 | -0.148084 24 | -0.098023 25 | 0.0647626 26 | 0.323179 27 | 0.611992 28 | 0.839454 29 | 0.925782 30 | 0.839454 31 | 0.611992 32 | 0.323179 33 | 0.0647626 34 | -0.098023 35 | -0.148084 36 | -0.113043 37 | -0.0427124 38 | 0.0178206 39 | 0.0455294 40 | 0.0414233 41 | 0.0207728 42 | 0.000190744 43 | -0.0109136 44 | -0.0118392 45 | -0.00707619 46 | -0.00168565 47 | 0.00150458 48 | 0.00221077 49 | 0.00151677 50 | 0.00058044 51 | -5.05567e-06 52 | -0.000188281 53 | -0.00015442 54 | -7.48734e-05 55 | -2.35035e-05 56 | -4.19377e-06 57 | -2.02059e-07 58 | -------------------------------------------------------------------------------- /bin/fig+fdrw/fig.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2014 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /******************************************************** 46 | * $Id: fig.h,v 1.12 2014/12/11 08:30:35 uratec Exp $ * 47 | * NAME : fig.h - Header for fig * 48 | ********************************************************/ 49 | 50 | #include 51 | #include 52 | 53 | #define BUFLNG 512 54 | #define SBUFLNG 81 55 | #define LSCALE 1.5 56 | #define MSCALE 1.5 57 | #define NSCALE 3 58 | #define MADJ 1.0 59 | #define LADJ 0.8 60 | #define SSIZE 0.6 61 | 62 | #define is_number(c) (isdigit(c) || c=='-') 63 | -------------------------------------------------------------------------------- /bin/gmm/gmm.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2012 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /* $Id: gmm.h,v 1.5 2012/12/21 11:27:33 mataki Exp $ */ 46 | 47 | #define LZERO (-1.0E10) /* ~log(0) */ 48 | #define LSMALL (-0.5E10) /* log values < LSMALL are set to LZERO */ 49 | #define sq(x) ((x)*(x)) 50 | -------------------------------------------------------------------------------- /bin/ifftr/_ifftr.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /*************************************************************** 46 | $Id: _ifftr.c,v 1.6 2016/12/22 10:53:05 fjst15124 Exp $ 47 | 48 | Inverse Fast Fourier Transform for Real Sequence 49 | 50 | int ifftr(x, y, l) 51 | 52 | double *x : real part of data 53 | double *y : working area 54 | int l : number of data(radix 2) 55 | 56 | ***************************************************************/ 57 | 58 | #include 59 | 60 | #if defined(WIN32) 61 | #include "SPTK.h" 62 | #else 63 | #include 64 | #endif 65 | 66 | int ifftr(double *x, double *y, const int l) 67 | { 68 | int i; 69 | double *xp, *yp; 70 | 71 | fftr(x, y, l); 72 | 73 | xp = x; 74 | yp = y; 75 | i = l; 76 | while (i--) { 77 | *xp++ /= l; 78 | *yp++ /= -l; 79 | } 80 | 81 | return (0); 82 | } 83 | -------------------------------------------------------------------------------- /bin/ivq/_ivq.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /**************************************************************** 46 | 47 | $Id: _ivq.c,v 1.19 2016/12/22 10:53:05 fjst15124 Exp $ 48 | 49 | Decoder of Vector Quantization 50 | 51 | void ivq(index, cb, l, x) 52 | 53 | int index : index of codebook 54 | double *cb : codebook vector 55 | int l : vector order 56 | double *x : decoded vector 57 | 58 | *****************************************************************/ 59 | 60 | #include 61 | 62 | #if defined(WIN32) 63 | #include "SPTK.h" 64 | #else 65 | #include 66 | #endif 67 | 68 | void ivq(const int index, double *cb, const int l, double *x) 69 | { 70 | movem((cb + index * l), x, sizeof(*cb), l); 71 | 72 | return; 73 | } 74 | -------------------------------------------------------------------------------- /bin/ltcdf/_ltcdf.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /**************************************************************** 46 | 47 | $Id: _ltcdf.c,v 1.15 2016/12/22 10:53:07 fjst15124 Exp $ 48 | 49 | All-Pole Lattice Digital Filter 50 | 51 | double ltcdf(x, k, m, d) 52 | 53 | double x : input 54 | double *k : reflection coefficients 55 | int m : order of coefficients 56 | double *d : delay 57 | 58 | return value : filtered data 59 | 60 | *****************************************************************/ 61 | 62 | double ltcdf(double x, double *k, int m, double *d) 63 | { 64 | x -= k[m] * d[m - 1]; 65 | for (m--; m >= 1; m--) { 66 | x -= k[m] * d[m - 1]; 67 | d[m] = d[m - 1] + k[m] * x; 68 | } 69 | d[0] = x; 70 | 71 | return (x); 72 | } 73 | -------------------------------------------------------------------------------- /bin/mc2b/_mc2b.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /*************************************************************** 46 | $Id: _mc2b.c,v 1.17 2016/12/22 10:53:07 fjst15124 Exp $ 47 | 48 | Transform Mel Cepstrum to MLSA Digital Filter Coefficients 49 | 50 | void mc2b(mc, b, m, a) 51 | 52 | double *mc : mel cepstral coefficients 53 | double *b : MLSA digital filter coefficients 54 | int m : order of mel cepstrum 55 | double a : all-pass constant 56 | 57 | ***************************************************************/ 58 | 59 | #include 60 | 61 | #if defined(WIN32) 62 | #include "SPTK.h" 63 | #else 64 | #include 65 | #endif 66 | 67 | void mc2b(double *mc, double *b, int m, const double a) 68 | { 69 | b[m] = mc[m]; 70 | 71 | for (m--; m >= 0; m--) 72 | b[m] = mc[m] - a * b[m + 1]; 73 | 74 | return; 75 | } 76 | -------------------------------------------------------------------------------- /bin/norm0/_norm0.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /*************************************************************** 46 | $Id: _norm0.c,v 1.17 2016/12/22 10:53:10 fjst15124 Exp $ 47 | 48 | Normalize coefficients 49 | 50 | void norm0(x, y, m) 51 | 52 | double *x : input coefficients 53 | double *y : normalized coefficients 54 | int m : order of coefficients 55 | 56 | ***************************************************************/ 57 | 58 | #include 59 | 60 | #if defined(WIN32) 61 | #include "SPTK.h" 62 | #else 63 | #include 64 | #endif 65 | 66 | void norm0(double *x, double *y, int m) 67 | { 68 | y[0] = 1 / x[0]; 69 | for (; m >= 1; m--) 70 | y[m] = x[m] * y[0]; 71 | 72 | return; 73 | } 74 | -------------------------------------------------------------------------------- /bin/par2lpc/_par2lpc.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /*************************************************************** 46 | 47 | $Id: _par2lpc.c,v 1.19 2016/12/22 10:53:10 fjst15124 Exp $ 48 | 49 | Transformation PARCOR to LPC 50 | 51 | void par2lpc(k, a, m) 52 | 53 | double *k : PARCOR coefficients 54 | double *a : LP coefficients 55 | int m : order of LPC 56 | 57 | ****************************************************************/ 58 | 59 | #include 60 | 61 | #if defined(WIN32) 62 | #include "SPTK.h" 63 | #else 64 | #include 65 | #endif 66 | 67 | void par2lpc(double *k, double *a, const int m) 68 | { 69 | int i, n; 70 | 71 | a[0] = k[0]; 72 | for (n = 1; n <= m; n++) { 73 | for (i = 1; i < n; i++) 74 | a[i] = k[i] + k[n] * k[n - i]; 75 | movem(&a[1], &k[1], sizeof(*a), n - 1); 76 | } 77 | a[m] = k[m]; 78 | 79 | return; 80 | } 81 | -------------------------------------------------------------------------------- /bin/pitch/snack/sigproc.h: -------------------------------------------------------------------------------- 1 | #ifndef SIGPROC_H_ 2 | #define SIGPROC_H_ 3 | 4 | #define BIGSORD 100 5 | 6 | #define Fprintf (void) fprintf 7 | 8 | int xget_window(register float *dout, register int n, register int type); 9 | void xrwindow(register float *din, register float *dout, register int n, 10 | register float preemp); 11 | void xcwindow(register float *din, register float *dout, register int n, 12 | register float preemp); 13 | void xhwindow(register float *din, register float *dout, register int n, 14 | register float preemp); 15 | void xhnwindow(register float *din, register float *dout, register int n, 16 | register float preemp); 17 | int sigproc_window(register float *din, register float *dout, register int n, 18 | register float preemp, int type); 19 | void xautoc(register int windowsize, register float *s, register int p, 20 | register float *r, register float *e); 21 | void xdurbin(register float *r, register float *k, register float *a, 22 | register int p, register float *ex); 23 | void xa_to_aca(float *a, float *b, float *c, register int p); 24 | float xitakura(register int p, register float *b, register float *c, 25 | register float *r, register float *gain); 26 | float wind_energy(register float *data, register int size, register int w_type); 27 | int xlpc(int lpc_ord, float lpc_stabl, int wsize, float *data, float *lpca, 28 | float *ar, float *lpck, float *normerr, float *rms, float preemp, 29 | int type); 30 | void crossf(float *data, int size, int start, int nlags, float *engref, 31 | int *maxloc, float *maxval, float *correl); 32 | void crossfi(float *data, int size, int start0, int nlags0, int nlags, 33 | float *engref, int *maxloc, float *maxval, float *correl, 34 | int *locs, int nlocs); 35 | 36 | #endif /* SIGPROC_H_ */ 37 | -------------------------------------------------------------------------------- /bin/reverse/_reverse.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /************************************************************************ 46 | 47 | $Id: _reverse.c,v 1.17 2016/12/22 10:53:11 fjst15124 Exp $ 48 | 49 | Reverse the order of data in sequence 50 | reverse(real* p, int l) 51 | 52 | double* p : data seqence (Overwrite) 53 | int l : length of sequence 54 | 55 | ************************************************************************/ 56 | 57 | #include 58 | 59 | #if defined(WIN32) 60 | #include "SPTK.h" 61 | #else 62 | #include 63 | #endif 64 | 65 | void reverse(double *x, const int l) 66 | { 67 | int i = 0; 68 | double d; 69 | 70 | while (i < l - i - 1) { 71 | d = x[i]; 72 | x[i] = x[l - i - 1]; 73 | x[l - i - 1] = d; 74 | i++; 75 | } 76 | 77 | return; 78 | } 79 | -------------------------------------------------------------------------------- /bin/transpose/_transpose.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /************************************************************************ 46 | 47 | $Id: _transpose.c,v 1.8 2016/12/22 10:53:12 fjst15124 Exp $ 48 | 49 | Transpose a matrix 50 | transpose(float* buf, int m, int n) 51 | 52 | float* buf : data seqence (Overwrite) 53 | int m : number of rows 54 | int n : number of columns 55 | 56 | ************************************************************************/ 57 | 58 | #include 59 | 60 | #if defined(WIN32) 61 | #include "SPTK.h" 62 | #else 63 | #include 64 | #endif 65 | 66 | void transpose(double *buf, const int m, const int n) 67 | { 68 | int i, j; 69 | 70 | for (i = 0; i < n; i++) { 71 | for (j = 0; j < m; j++) { 72 | fwritef(&buf[i + j * n], *buf, 1, stdout); 73 | } 74 | } 75 | 76 | } 77 | -------------------------------------------------------------------------------- /bin/us/lpfcoef.2to3s: -------------------------------------------------------------------------------- 1 | -3.778110794883104972541332244873e-06 2 | -5.370259168557822704315185546875e-05 3 | -9.664696699474006891250610351562e-05 4 | 1.997184699575882405042648315430e-05 5 | 3.528786182869225740432739257812e-04 6 | 5.353563465178012847900390625000e-04 7 | -5.449890522868372499942779541016e-05 8 | -1.351920422166585922241210937500e-03 9 | -1.880544703453779220581054687500e-03 10 | 1.196314406115561723709106445312e-04 11 | 3.909112885594367980957031250000e-03 12 | 5.147227086126804351806640625000e-03 13 | -2.240541216451674699783325195312e-04 14 | -9.427714161574840545654296875000e-03 15 | -1.195016317069530487060546875000e-02 16 | 3.693796461448073387145996093750e-04 17 | 2.004249393939971923828125000000e-02 18 | 2.475706115365028381347656250000e-02 19 | -5.462514236569404602050781250000e-04 20 | -3.916403651237487792968750000000e-02 21 | -4.774343967437744140625000000000e-02 22 | 7.333457469940185546875000000000e-04 23 | 7.369096577167510986328125000000e-02 24 | 9.046247601509094238281250000000e-02 25 | -9.007404441945254802703857421875e-04 26 | -1.452732086181640625000000000000e-01 27 | -1.894205808639526367187500000000e-01 28 | 1.017168746329843997955322265625e-03 29 | 4.053546786308288574218750000000e-01 30 | 8.221039772033691406250000000000e-01 31 | 9.989410638809204101562500000000e-01 32 | 8.221039772033691406250000000000e-01 33 | 4.053546786308288574218750000000e-01 34 | 1.017168746329843997955322265625e-03 35 | -1.894205808639526367187500000000e-01 36 | -1.452732086181640625000000000000e-01 37 | -9.007404441945254802703857421875e-04 38 | 9.046247601509094238281250000000e-02 39 | 7.369096577167510986328125000000e-02 40 | 7.333457469940185546875000000000e-04 41 | -4.774343967437744140625000000000e-02 42 | -3.916403651237487792968750000000e-02 43 | -5.462514236569404602050781250000e-04 44 | 2.475706115365028381347656250000e-02 45 | 2.004249393939971923828125000000e-02 46 | 3.693796461448073387145996093750e-04 47 | -1.195016317069530487060546875000e-02 48 | -9.427714161574840545654296875000e-03 49 | -2.240541216451674699783325195312e-04 50 | 5.147227086126804351806640625000e-03 51 | 3.909112885594367980957031250000e-03 52 | 1.196314406115561723709106445312e-04 53 | -1.880544703453779220581054687500e-03 54 | -1.351920422166585922241210937500e-03 55 | -5.449890522868372499942779541016e-05 56 | 5.353563465178012847900390625000e-04 57 | 3.528786182869225740432739257812e-04 58 | 1.997184699575882405042648315430e-05 59 | -9.664696699474006891250610351562e-05 60 | -5.370259168557822704315185546875e-05 61 | -3.778110794883104972541332244873e-06 62 | -------------------------------------------------------------------------------- /bin/us/lpfcoef.5to7: -------------------------------------------------------------------------------- 1 | 1.153559423983097076416015625000e-04 2 | 2.795171458274126052856445312500e-04 3 | 5.168918869458138942718505859375e-04 4 | 7.421943591907620429992675781250e-04 5 | 8.035023929551243782043457031250e-04 6 | 4.914122400805354118347167968750e-04 7 | -4.040934145450592041015625000000e-04 8 | -1.997824292629957199096679687500e-03 9 | -4.194368142634630203247070312500e-03 10 | -6.589582655578851699829101562500e-03 11 | -8.438861928880214691162109375000e-03 12 | -8.736841380596160888671875000000e-03 13 | -6.434364710003137588500976562500e-03 14 | -7.774449186399579048156738281250e-04 15 | 8.294553495943546295166015625000e-03 16 | 1.980045437812805175781250000000e-02 17 | 3.155207261443138122558593750000e-02 18 | 4.029463231563568115234375000000e-02 19 | 4.222260415554046630859375000000e-02 20 | 3.384944424033164978027343750000e-02 21 | 1.310056168586015701293945312500e-02 22 | -1.960278302431106567382812500000e-02 23 | -6.056013703346252441406250000000e-02 24 | -1.025925427675247192382812500000e-01 25 | -1.356229484081268310546875000000e-01 26 | -1.480741649866104125976562500000e-01 27 | -1.289242953062057495117187500000e-01 28 | -7.006952166557312011718750000000e-02 29 | 3.148823976516723632812500000000e-02 30 | 1.721408069133758544921875000000e-01 31 | 3.412819206714630126953125000000e-01 32 | 5.222419500350952148437500000000e-01 33 | 6.944916248321533203125000000000e-01 34 | 8.367717862129211425781250000000e-01 35 | 9.305801391601562500000000000000e-01 36 | 9.633352160453796386718750000000e-01 37 | 9.305801391601562500000000000000e-01 38 | 8.367717862129211425781250000000e-01 39 | 6.944916248321533203125000000000e-01 40 | 5.222419500350952148437500000000e-01 41 | 3.412819206714630126953125000000e-01 42 | 1.721408069133758544921875000000e-01 43 | 3.148823976516723632812500000000e-02 44 | -7.006952166557312011718750000000e-02 45 | -1.289242953062057495117187500000e-01 46 | -1.480741649866104125976562500000e-01 47 | -1.356229484081268310546875000000e-01 48 | -1.025925427675247192382812500000e-01 49 | -6.056013703346252441406250000000e-02 50 | -1.960278302431106567382812500000e-02 51 | 1.310056168586015701293945312500e-02 52 | 3.384944424033164978027343750000e-02 53 | 4.222260415554046630859375000000e-02 54 | 4.029463231563568115234375000000e-02 55 | 3.155207261443138122558593750000e-02 56 | 1.980045437812805175781250000000e-02 57 | 8.294553495943546295166015625000e-03 58 | -7.774449186399579048156738281250e-04 59 | -6.434364710003137588500976562500e-03 60 | -8.736841380596160888671875000000e-03 61 | -8.438861928880214691162109375000e-03 62 | -6.589582655578851699829101562500e-03 63 | -4.194368142634630203247070312500e-03 64 | -1.997824292629957199096679687500e-03 65 | -4.040934145450592041015625000000e-04 66 | 4.914122400805354118347167968750e-04 67 | 8.035023929551243782043457031250e-04 68 | 7.421943591907620429992675781250e-04 69 | 5.168918869458138942718505859375e-04 70 | 2.795171458274126052856445312500e-04 71 | 1.153559423983097076416015625000e-04 72 | -------------------------------------------------------------------------------- /bin/us/titech/COPYING: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* */ 3 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 4 | /* Interdisciplinary Graduate School of */ 5 | /* Science and Engineering */ 6 | /* */ 7 | /* All rights reserved. */ 8 | /* */ 9 | /* Redistribution and use in source and binary forms, with or */ 10 | /* without modification, are permitted provided that the following */ 11 | /* conditions are met: */ 12 | /* */ 13 | /* - Redistributions of source code must retain the above copyright */ 14 | /* notice, this list of conditions and the following disclaimer. */ 15 | /* - Redistributions in binary form must reproduce the above */ 16 | /* copyright notice, this list of conditions and the following */ 17 | /* disclaimer in the documentation and/or other materials provided */ 18 | /* with the distribution. */ 19 | /* - Neither the name of the SPTK working group nor the names of its */ 20 | /* contributors may be used to endorse or promote products derived */ 21 | /* from this software without specific prior written permission. */ 22 | /* */ 23 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 24 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 25 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 26 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 27 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 28 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 29 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 30 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 31 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 32 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 33 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 34 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 35 | /* POSSIBILITY OF SUCH DAMAGE. */ 36 | /* ----------------------------------------------------------------- */ 37 | 38 | Filter coefficients were designed by Prof. Takao Kobayashi. 39 | -------------------------------------------------------------------------------- /bin/us/titech/lpfcoef.3to5: -------------------------------------------------------------------------------- 1 | 6.27736e-06 2 | -3.80598e-05 3 | -0.000101959 4 | -0.000183375 5 | -0.000231972 6 | -0.000174802 7 | 5.435e-05 8 | 0.000465877 9 | 0.000966219 10 | 0.00134126 11 | 0.00129987 12 | 0.000586991 13 | -0.000858992 14 | -0.00276596 15 | -0.00448732 16 | -0.00512904 17 | -0.00385791 18 | -0.000320216 19 | 0.00498247 20 | 0.010554 21 | 0.0141578 22 | 0.0134978 23 | 0.00717975 24 | -0.00436758 25 | -0.0184222 26 | -0.0302951 27 | -0.0345716 28 | -0.0270402 29 | -0.00673792 30 | 0.0226684 31 | 0.0528865 32 | 0.0727659 33 | 0.0716259 34 | 0.0433181 35 | -0.0102537 36 | -0.077504 37 | -0.138378 38 | -0.168556 39 | -0.145829 40 | -0.0569713 41 | 0.0969251 42 | 0.298486 43 | 0.5164 44 | 0.711814 45 | 0.847245 46 | 0.895668 47 | 0.847245 48 | 0.711814 49 | 0.5164 50 | 0.298486 51 | 0.0969251 52 | -0.0569713 53 | -0.145829 54 | -0.168556 55 | -0.138378 56 | -0.077504 57 | -0.0102537 58 | 0.0433181 59 | 0.0716259 60 | 0.0727659 61 | 0.0528865 62 | 0.0226684 63 | -0.00673792 64 | -0.0270402 65 | -0.0345716 66 | -0.0302951 67 | -0.0184222 68 | -0.00436758 69 | 0.00717975 70 | 0.0134978 71 | 0.0141578 72 | 0.010554 73 | 0.00498247 74 | -0.000320216 75 | -0.00385791 76 | -0.00512904 77 | -0.00448732 78 | -0.00276596 79 | -0.000858992 80 | 0.000586991 81 | 0.00129987 82 | 0.00134126 83 | 0.000966219 84 | 0.000465877 85 | 5.435e-05 86 | -0.000174802 87 | -0.000231972 88 | -0.000183375 89 | -0.000101959 90 | -3.80598e-05 91 | 6.27736e-06 92 | -------------------------------------------------------------------------------- /bin/us/titech/lpfcoef.7to8: -------------------------------------------------------------------------------- 1 | 4.74509e-07 2 | -2.0537e-07 3 | -3.00467e-06 4 | -1.057e-05 5 | -2.61857e-05 6 | -5.31743e-05 7 | -9.34333e-05 8 | -0.000145319 9 | -0.000201214 10 | -0.000245453 11 | -0.000253573 12 | -0.000193975 13 | -3.29385e-05 14 | 0.000256655 15 | 0.00068344 16 | 0.00122432 17 | 0.00181288 18 | 0.00233354 19 | 0.00262554 20 | 0.00250053 21 | 0.00177489 22 | 0.000315284 23 | -0.00190843 24 | -0.00477244 25 | -0.00796325 26 | -0.0109705 27 | -0.0131204 28 | -0.0136562 29 | -0.0118641 30 | -0.00723291 31 | 0.000375859 32 | 0.0105787 33 | 0.022378 34 | 0.0341613 35 | 0.0438173 36 | 0.0489783 37 | 0.0473742 38 | 0.0372642 39 | 0.0178837 40 | -0.0101645 41 | -0.0446557 42 | -0.0816938 43 | -0.115915 44 | -0.140953 45 | -0.150145 46 | -0.137391 47 | -0.0980702 48 | -0.0298812 49 | 0.0665319 50 | 0.187278 51 | 0.32532 52 | 0.470994 53 | 0.612919 54 | 0.739182 55 | 0.838658 56 | 0.902297 57 | 0.924194 58 | 0.902297 59 | 0.838658 60 | 0.739182 61 | 0.612919 62 | 0.470994 63 | 0.32532 64 | 0.187278 65 | 0.0665319 66 | -0.0298812 67 | -0.0980702 68 | -0.137391 69 | -0.150145 70 | -0.140953 71 | -0.115915 72 | -0.0816938 73 | -0.0446557 74 | -0.0101645 75 | 0.0178837 76 | 0.0372642 77 | 0.0473742 78 | 0.0489783 79 | 0.0438173 80 | 0.0341613 81 | 0.022378 82 | 0.0105787 83 | 0.000375859 84 | -0.00723291 85 | -0.0118641 86 | -0.0136562 87 | -0.0131204 88 | -0.0109705 89 | -0.00796325 90 | -0.00477244 91 | -0.00190843 92 | 0.000315284 93 | 0.00177489 94 | 0.00250053 95 | 0.00262554 96 | 0.00233354 97 | 0.00181288 98 | 0.00122432 99 | 0.00068344 100 | 0.000256655 101 | -3.29385e-05 102 | -0.000193975 103 | -0.000253573 104 | -0.000245453 105 | -0.000201214 106 | -0.000145319 107 | -9.34333e-05 108 | -5.31743e-05 109 | -2.61857e-05 110 | -1.057e-05 111 | -3.00467e-06 112 | -2.0537e-07 113 | 4.74509e-07 114 | -------------------------------------------------------------------------------- /bin/vc/hts_engine_API/COPYING: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The HMM-Based Speech Synthesis Engine "hts_engine API" */ 3 | /* developed by HTS Working Group */ 4 | /* http://hts-engine.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 2001-2015 Nagoya Institute of Technology */ 8 | /* Department of Computer Science */ 9 | /* */ 10 | /* 2001-2008 Tokyo Institute of Technology */ 11 | /* Interdisciplinary Graduate School of */ 12 | /* Science and Engineering */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the HTS working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | -------------------------------------------------------------------------------- /bin/wscript: -------------------------------------------------------------------------------- 1 | from os.path import join 2 | 3 | 4 | def configure(conf): 5 | pass 6 | 7 | 8 | def build(bld): 9 | bld.install_files('${HPREFIX}', '../include/SPTK.h') 10 | 11 | lib_src = bld.path.parent.ant_glob('**/lib/*.c') 12 | 13 | swipe_src = [ 14 | 'pitch/swipe/swipe.c', 15 | 'pitch/swipe/vector.c', 16 | ] 17 | rapt_src = [ 18 | 'pitch/snack/jkGetF0.c', 19 | 'pitch/snack/sigproc.c', 20 | ] 21 | 22 | hts_engine_src = bld.path.ant_glob('**/vc/hts_engine_API/*.c') 23 | 24 | # Collect sources 25 | src = list(bld.path.ant_glob('**/_*.c') + 26 | swipe_src + rapt_src + hts_engine_src + lib_src) 27 | 28 | # NOTE: Since wavjoin and wavsplit use direct.h, which only exists in POSIX 29 | # environments, I ignore these files to compile for cross-platform compilation 30 | # ability. 31 | ignore_bin_list = ["wavjoin", "wavsplit"] 32 | 33 | # collect ignore sources 34 | ignore_src = [] 35 | for name in ignore_bin_list: 36 | ignore_src.append(*bld.path.ant_glob(join(name, '_*.c'))) 37 | 38 | for ignore in ignore_src: 39 | src = list(filter(lambda s: not str(s).startswith(str(ignore)), src)) 40 | 41 | bld.shlib( 42 | source=src, 43 | target='SPTK', 44 | vnum=bld.env['VERSION'], 45 | use='SPTKlib', 46 | includes=['../include']) 47 | -------------------------------------------------------------------------------- /bin/xgr/config.h: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2014 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /* 46 | * $Id: config.h,v 1.11 2014/12/11 08:30:52 uratec Exp $ 47 | * Configuration. 48 | */ 49 | 50 | /* Define arch type in this file. */ 51 | 52 | #define SUN 1 53 | 54 | /* 55 | #define DGAV 1 56 | #define NeXT 1 57 | */ 58 | 59 | /* 60 | #define X11R3 61 | */ 62 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark0.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark0_width 9 51 | #define mark0_height 9 52 | static char mark0_bits[] = { 53 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 54 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark1.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark1_width 9 51 | #define mark1_height 9 52 | static char mark1_bits[] = { 53 | 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x7c, 0x00, 0x7c, 0x00, 0x7c, 0x00, 54 | 0x38, 0x00, 0x00, 0x00, 0x00, 0x00}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark10.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark10_width 9 51 | #define mark10_height 9 52 | static char mark10_bits[] = { 53 | 0x38, 0x00, 0x54, 0x00, 0x92, 0x00, 0x11, 0x01, 0xff, 0x01, 0x11, 0x01, 54 | 0x92, 0x00, 0x54, 0x00, 0x38, 0x00}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark11.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark11_width 9 51 | #define mark11_height 9 52 | static char mark11_bits[] = { 53 | 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 54 | 0xff, 0x01, 0xff, 0x01, 0xff, 0x01}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark12.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark12_width 9 51 | #define mark12_height 9 52 | static char mark12_bits[] = { 53 | 0x00, 0x00, 0x10, 0x00, 0x38, 0x00, 0x7c, 0x00, 0xfe, 0x00, 0xff, 0x01, 54 | 0xff, 0x01, 0x00, 0x00, 0x00, 0x00}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark13.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark13_width 9 51 | #define mark13_height 9 52 | static char mark13_bits[] = { 53 | 0x38, 0x00, 0x7c, 0x00, 0xfe, 0x00, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 54 | 0xfe, 0x00, 0x7c, 0x00, 0x38, 0x00}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark14.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark14_width 9 51 | #define mark14_height 9 52 | static char mark14_bits[] = { 53 | 0x10, 0x00, 0xbb, 0x01, 0xbb, 0x01, 0xd6, 0x00, 0x38, 0x00, 0xd6, 0x00, 54 | 0xbb, 0x01, 0xbb, 0x01, 0x10, 0x00}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark15.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark15_width 9 51 | #define mark15_height 9 52 | static char mark15_bits[] = { 53 | 0x10, 0x00, 0x38, 0x00, 0x7c, 0x00, 0xfe, 0x00, 0xff, 0x01, 0xfe, 0x00, 54 | 0x7c, 0x00, 0x38, 0x00, 0x10, 0x00}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark2.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark2_width 9 51 | #define mark2_height 9 52 | static char mark2_bits[] = { 53 | 0x00, 0x00, 0x00, 0x00, 0x44, 0x00, 0x28, 0x00, 0x10, 0x00, 0x28, 0x00, 54 | 0x44, 0x00, 0x00, 0x00, 0x00, 0x00}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark3.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark3_width 9 51 | #define mark3_height 9 52 | static char mark3_bits[] = { 53 | 0xff, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 54 | 0x01, 0x01, 0x01, 0x01, 0xff, 0x01}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark4.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark4_width 9 51 | #define mark4_height 9 52 | static char mark4_bits[] = { 53 | 0x00, 0x00, 0x10, 0x00, 0x28, 0x00, 0x44, 0x00, 0x82, 0x00, 0x01, 0x01, 54 | 0xff, 0x01, 0x00, 0x00, 0x00, 0x00}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark5.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark5_width 9 51 | #define mark5_height 9 52 | static char mark5_bits[] = { 53 | 0x38, 0x00, 0x44, 0x00, 0x82, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 54 | 0x82, 0x00, 0x44, 0x00, 0x38, 0x00}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark6.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark6_width 9 51 | #define mark6_height 9 52 | static char mark6_bits[] = { 53 | 0x10, 0x00, 0x28, 0x00, 0x44, 0x00, 0x82, 0x00, 0x01, 0x01, 0x82, 0x00, 54 | 0x44, 0x00, 0x28, 0x00, 0x10, 0x00}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark7.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark7_width 9 51 | #define mark7_height 9 52 | static char mark7_bits[] = { 53 | 0x01, 0x01, 0x82, 0x00, 0x44, 0x00, 0x28, 0x00, 0x10, 0x00, 0x28, 0x00, 54 | 0x44, 0x00, 0x82, 0x00, 0x01, 0x01}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark8.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark8_width 9 51 | #define mark8_height 9 52 | static char mark8_bits[] = { 53 | 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0xff, 0x01, 0x10, 0x00, 54 | 0x10, 0x00, 0x10, 0x00, 0x10, 0x00}; 55 | -------------------------------------------------------------------------------- /bin/xgr/marks/mark9.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define mark9_width 9 51 | #define mark9_height 9 52 | static char mark9_bits[] = { 53 | 0x38, 0x00, 0x44, 0x00, 0xc6, 0x00, 0x29, 0x01, 0x11, 0x01, 0x29, 0x01, 54 | 0xc6, 0x00, 0x44, 0x00, 0x38, 0x00}; 55 | -------------------------------------------------------------------------------- /bin/xgr/tills/till0.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till0_width 4 51 | #define till0_height 4 52 | static char till0_bits[] = { 53 | 0x00, 0x00, 0x00, 0x00}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till1.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till1_width 4 51 | #define till1_height 4 52 | static char till1_bits[] = { 53 | 0x01, 0x00, 0x00, 0x00}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till10.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till10_width 4 51 | #define till10_height 4 52 | static char till10_bits[] = { 53 | 0x0b, 0x06, 0x06, 0x0d}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till11.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till11_width 4 51 | #define till11_height 4 52 | static char till11_bits[] = { 53 | 0x0b, 0x0e, 0x06, 0x0d}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till12.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till12_width 4 51 | #define till12_height 4 52 | static char till12_bits[] = { 53 | 0x0b, 0x0e, 0x07, 0x0d}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till13.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till13_width 4 51 | #define till13_height 4 52 | static char till13_bits[] = { 53 | 0x0f, 0x0e, 0x07, 0x0d}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till14.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till14_width 4 51 | #define till14_height 4 52 | static char till14_bits[] = { 53 | 0x0f, 0x0e, 0x07, 0x0f}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till15.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till15_width 4 51 | #define till15_height 4 52 | static char till15_bits[] = { 53 | 0x0f, 0x0e, 0x0f, 0x0f}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till16.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till16_width 4 51 | #define till16_height 4 52 | static char till16_bits[] = { 53 | 0x0f, 0x0f, 0x0f, 0x0f}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till2.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till2_width 4 51 | #define till2_height 4 52 | static char till2_bits[] = { 53 | 0x01, 0x00, 0x00, 0x08}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till3.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till3_width 4 51 | #define till3_height 4 52 | static char till3_bits[] = { 53 | 0x09, 0x00, 0x00, 0x08}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till4.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till4_width 4 51 | #define till4_height 4 52 | static char till4_bits[] = { 53 | 0x09, 0x00, 0x00, 0x09}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till5.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till5_width 4 51 | #define till5_height 4 52 | static char till5_bits[] = { 53 | 0x09, 0x02, 0x00, 0x09}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till6.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till6_width 4 51 | #define till6_height 4 52 | static char till6_bits[] = { 53 | 0x09, 0x02, 0x04, 0x09}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till7.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till7_width 4 51 | #define till7_height 4 52 | static char till7_bits[] = { 53 | 0x09, 0x06, 0x04, 0x09}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till8.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till8_width 4 51 | #define till8_height 4 52 | static char till8_bits[] = { 53 | 0x09, 0x06, 0x06, 0x09}; 54 | -------------------------------------------------------------------------------- /bin/xgr/tills/till9.dat: -------------------------------------------------------------------------------- 1 | /* 2 | --------------------------------------------------------------- 3 | Speech Signal Processing Toolkit (SPTK) 4 | 5 | SPTK Working Group 6 | 7 | Department of Computer Science 8 | Nagoya Institute of Technology 9 | and 10 | Interdisciplinary Graduate School of Science and Engineering 11 | Tokyo Institute of Technology 12 | 13 | Copyright (c) 1984-2007 14 | All Rights Reserved. 15 | 16 | Permission is hereby granted, free of charge, to use and 17 | distribute this software and its documentation without 18 | restriction, including without limitation the rights to use, 19 | copy, modify, merge, publish, distribute, sublicense, and/or 20 | sell copies of this work, and to permit persons to whom this 21 | work is furnished to do so, subject to the following conditions: 22 | 23 | 1. The source code must retain the above copyright notice, 24 | this list of conditions and the following disclaimer. 25 | 26 | 2. Any modifications to the source code must be clearly 27 | marked as such. 28 | 29 | 3. Redistributions in binary form must reproduce the above 30 | copyright notice, this list of conditions and the 31 | following disclaimer in the documentation and/or other 32 | materials provided with the distribution. Otherwise, one 33 | must contact the SPTK working group. 34 | 35 | NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF TECHNOLOGY, 36 | SPTK WORKING GROUP, AND THE CONTRIBUTORS TO THIS WORK DISCLAIM 37 | ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 38 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 39 | SHALL NAGOYA INSTITUTE OF TECHNOLOGY, TOKYO INSTITUTE OF 40 | TECHNOLOGY, SPTK WORKING GROUP, NOR THE CONTRIBUTORS BE LIABLE 41 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 42 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 43 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS 44 | ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 45 | PERFORMANCE OF THIS SOFTWARE. 46 | 47 | --------------------------------------------------------------- 48 | */ 49 | 50 | #define till9_width 4 51 | #define till9_height 4 52 | static char till9_bits[] = { 53 | 0x0b, 0x06, 0x06, 0x09}; 54 | -------------------------------------------------------------------------------- /example/arayuru.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r9y9/SPTK/2accca99be205d10fde0a4b9969cc3eba7ad930e/example/arayuru.wav -------------------------------------------------------------------------------- /example/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | // #include // if you use installed header 5 | #include "SPTK.h" 6 | 7 | using namespace std; 8 | 9 | int main() 10 | { 11 | cout << "Hello SPTK!" << endl; 12 | for (int i = 0; i < 10; ++i) { 13 | cout << gexp(2.0, i) << endl; 14 | } 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /example/hello.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | // #include // if you use installed header 5 | #include "SPTK.h" 6 | 7 | using namespace std; 8 | 9 | int main() 10 | { 11 | cout << "Hello SPTK!" << endl; 12 | for (int i = 0; i < 10; ++i) { 13 | cout << gexp(2.0, i) << endl; 14 | } 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /example/wscript: -------------------------------------------------------------------------------- 1 | def options(opt): 2 | pass 3 | 4 | def configure(conf): 5 | pass 6 | 7 | def build(bld): 8 | bld.program( 9 | source = 'hello.cpp', 10 | target = 'hello', 11 | use = ['SPTK'], # if you use local library 12 | # lib = ['SPTK'], # if you use installed library 13 | includes = ['../include']) # SPTK.h 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /lib/agexp.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /*************************************************************** 46 | $Id: agexp.c,v 1.14 2016/12/22 10:53:15 fjst15124 Exp $ 47 | 48 | Magnitude Squared Generalized Exponential Function 49 | 50 | double agexp(r, x, y) 51 | 52 | double r : gamma 53 | double x : real part 54 | double y : imaginary part 55 | 56 | *****************************************************************/ 57 | 58 | #include 59 | #include 60 | 61 | double agexp(double r, double x, double y) 62 | { 63 | double w; 64 | 65 | if (r == 0.0) 66 | return (exp(2 * x)); 67 | else { 68 | x = 1 + r * x; 69 | y = r * y; 70 | w = x * x + y * y; 71 | if (r < 0.0) 72 | return (pow(1 / w, -1 / r)); 73 | else 74 | return (pow(w, 1 / r)); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /lib/fillz.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /******************************************************** 46 | $Id: fillz.c,v 1.15 2016/12/22 10:53:15 fjst15124 Exp $ 47 | 48 | Fill Data with Zero 49 | 50 | fillz(ptr, size, nitem) 51 | 52 | void *ptr : intput data 53 | size_t size : size of data type 54 | int nitem : data length 55 | 56 | *********************************************************/ 57 | 58 | #include 59 | 60 | void fillz(void *ptr, const size_t size, const int nitem) 61 | { 62 | long n; 63 | char *p = ptr; 64 | 65 | n = size * nitem; 66 | while (n--) 67 | *p++ = '\0'; 68 | } 69 | -------------------------------------------------------------------------------- /lib/getfp.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /*************************************************************** 46 | $Id: getfp.c,v 1.16 2016/12/22 10:53:15 fjst15124 Exp $ 47 | 48 | File Open Function 49 | 50 | FILE *getfp(name, opt) 51 | 52 | char *name : file name 53 | char *opt : file open mode 54 | 55 | ***************************************************************/ 56 | 57 | #include 58 | #include 59 | 60 | FILE *getfp(char *name, char *opt) 61 | { 62 | FILE *fp; 63 | 64 | if ((fp = fopen(name, opt)) == NULL) { 65 | fprintf(stderr, "Cannot open file %s!\n", name); 66 | exit(2); 67 | } 68 | 69 | return (fp); 70 | } 71 | -------------------------------------------------------------------------------- /lib/gexp.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /*************************************************************** 46 | $Id: gexp.c,v 1.14 2016/12/22 10:53:15 fjst15124 Exp $ 47 | 48 | Generalized Exponential Function (real argument) 49 | 50 | double gexp(r, x) 51 | 52 | double r : gamma 53 | double x : argument 54 | 55 | *****************************************************************/ 56 | 57 | #include 58 | 59 | double gexp(const double r, const double x) 60 | { 61 | if (r == 0.0) { 62 | return (exp(x)); 63 | } else { 64 | if (r < 0.0) 65 | return (pow(1 / (1 + r * x), -1 / r)); 66 | else 67 | return (pow(1 + r * x, 1 / r)); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /lib/glog.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /**************************************************************** 46 | $Id: glog.c,v 1.15 2016/12/22 10:53:15 fjst15124 Exp $ 47 | 48 | Generalized Logarithmic Function (real argument) 49 | 50 | double glog(r, x) 51 | 52 | double r : gamma 53 | double x : argument 54 | 55 | *****************************************************************/ 56 | 57 | #include 58 | 59 | double glog(const double r, const double x) 60 | { 61 | if (r == 0.0) { 62 | return (log(x)); 63 | } else { 64 | if (r < 0.0) 65 | return ((pow(1 / x, -r) - 1.0) / r); 66 | else 67 | return ((pow(x, r) - 1.0) / r); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /lib/movem.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /******************************************************** 46 | $Id: movem.c,v 1.15 2016/12/22 10:53:15 fjst15124 Exp $ 47 | 48 | Data Transfer Function 49 | 50 | movem(a, b, size, nitem) 51 | 52 | void *a : intput data 53 | void *b : output data 54 | size_t size : size of data type 55 | int nitem : data length 56 | 57 | *********************************************************/ 58 | 59 | #include 60 | 61 | void movem(void *a, void *b, const size_t size, const int nitem) 62 | { 63 | long i; 64 | char *c = a; 65 | char *d = b; 66 | 67 | i = size * nitem; 68 | if (c > d) 69 | while (i--) 70 | *d++ = *c++; 71 | else { 72 | c += i; 73 | d += i; 74 | while (i--) 75 | *--d = *--c; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /lib/mseq.c: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------- */ 2 | /* The Speech Signal Processing Toolkit (SPTK) */ 3 | /* developed by SPTK Working Group */ 4 | /* http://sp-tk.sourceforge.net/ */ 5 | /* ----------------------------------------------------------------- */ 6 | /* */ 7 | /* Copyright (c) 1984-2007 Tokyo Institute of Technology */ 8 | /* Interdisciplinary Graduate School of */ 9 | /* Science and Engineering */ 10 | /* */ 11 | /* 1996-2016 Nagoya Institute of Technology */ 12 | /* Department of Computer Science */ 13 | /* */ 14 | /* All rights reserved. */ 15 | /* */ 16 | /* Redistribution and use in source and binary forms, with or */ 17 | /* without modification, are permitted provided that the following */ 18 | /* conditions are met: */ 19 | /* */ 20 | /* - Redistributions of source code must retain the above copyright */ 21 | /* notice, this list of conditions and the following disclaimer. */ 22 | /* - Redistributions in binary form must reproduce the above */ 23 | /* copyright notice, this list of conditions and the following */ 24 | /* disclaimer in the documentation and/or other materials provided */ 25 | /* with the distribution. */ 26 | /* - Neither the name of the SPTK working group nor the names of its */ 27 | /* contributors may be used to endorse or promote products derived */ 28 | /* from this software without specific prior written permission. */ 29 | /* */ 30 | /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ 31 | /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ 32 | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 33 | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ 34 | /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */ 35 | /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */ 36 | /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */ 37 | /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 38 | /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */ 39 | /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */ 40 | /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */ 41 | /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ 42 | /* POSSIBILITY OF SUCH DAMAGE. */ 43 | /* ----------------------------------------------------------------- */ 44 | 45 | /**************************************************************** 46 | $Id: mseq.c,v 1.14 2016/12/22 10:53:15 fjst15124 Exp $ 47 | 48 | M-Sequence Generator using X**31 + X**28 + 1 49 | 50 | int mseq(void) 51 | 52 | return value : M-Sequence 53 | 54 | ****************************************************************/ 55 | 56 | #define B0 0x00000001 57 | #define B28 0x10000000 58 | #define B31 0x80000000 59 | #define B31_ 0x7fffffff 60 | #define Z 0x00000000 61 | 62 | int mseq(void) 63 | { 64 | static int x = 0x55555555; 65 | int x0, x28; 66 | 67 | x >>= 1; 68 | 69 | if (x & B0) 70 | x0 = 1; 71 | else 72 | x0 = -1; 73 | 74 | if (x & B28) 75 | x28 = 1; 76 | else 77 | x28 = -1; 78 | 79 | if (x0 + x28) 80 | x &= B31_; 81 | else 82 | x |= B31; 83 | 84 | return (x0); 85 | } 86 | -------------------------------------------------------------------------------- /msys_build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "$ARCH" = x86_64 ]; then 6 | bits=64 7 | else 8 | bits=32 9 | fi 10 | 11 | # Use this mingw instead of the pre-installed mingw on Appveyor 12 | if [ "$COMPILER" = gcc ]; then 13 | f=mingw-w$bits-bin-$ARCH-20161221.7z 14 | if ! [ -e $f ]; then 15 | echo "Downloading $f" 16 | curl -LsSO https://sourceforge.net/projects/mingw-w64-dgn/files/mingw-w64/$f 17 | fi 18 | 7z x $f > /dev/null 19 | export PATH=$PWD/mingw$bits/bin:$PATH 20 | fi 21 | 22 | # Build SPTK 23 | cd /c/projects/sptk 24 | ./waf configure --check-c-compiler="$COMPILER" 25 | ./waf 26 | -------------------------------------------------------------------------------- /waf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r9y9/SPTK/2accca99be205d10fde0a4b9969cc3eba7ad930e/waf -------------------------------------------------------------------------------- /wscript: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | from __future__ import division, print_function, absolute_import 3 | 4 | APPNAME = 'SPTK' 5 | VERSION = '3.11.0' 6 | 7 | from waflib import Options 8 | import sys 9 | import os 10 | import re 11 | import waflib 12 | 13 | subdirs = [ 14 | 'bin', 15 | ] 16 | 17 | top = '.' 18 | out = 'build' 19 | 20 | 21 | def options(opt): 22 | opt.load('compiler_c') 23 | 24 | 25 | def configure(conf): 26 | conf.load('compiler_c') 27 | 28 | conf.define('SPTK_VERSION', VERSION) 29 | conf.env['VERSION'] = VERSION 30 | 31 | if re.search('clang', conf.env.CC[0]): 32 | conf.env.append_unique( 33 | 'CFLAGS', 34 | ['-O3', '-Wall', '-fno-common', '-Wstrict-prototypes']) 35 | elif re.search('gcc', conf.env.CC[0]): 36 | conf.env.append_unique( 37 | 'CFLAGS', 38 | ['-O2', '-Wall', '-fno-common', '-Wstrict-prototypes']) 39 | elif re.search('cl.exe', conf.env.CC[0].lower()): 40 | conf.env.append_unique('CFLAGS', ['']) 41 | else: 42 | raise RuntimeError("Not supported compiler: %s" % conf.env.CC[0]) 43 | 44 | conf.env.HPREFIX = conf.env.PREFIX + '/include/SPTK' 45 | 46 | # check headers 47 | conf.check_cc(header_name="fcntl.h") 48 | conf.check_cc(header_name="limits.h") 49 | conf.check_cc(header_name="stdlib.h") 50 | conf.check_cc(header_name="string.h") 51 | 52 | conf.recurse(subdirs) 53 | 54 | print(""" 55 | SPTK has been configured as follows: 56 | 57 | [Build information] 58 | Package: {0} 59 | build (compile on): {1} 60 | host endian: {2} 61 | Compiler: {3} 62 | Compiler version: {4} 63 | CFLAGS: {5} 64 | """.format( 65 | APPNAME + '-' + VERSION, 66 | conf.env.DEST_CPU + '-' + conf.env.DEST_OS, 67 | sys.byteorder, 68 | conf.env.COMPILER_CC, 69 | '.'.join(conf.env.CC_VERSION), 70 | ' '.join(conf.env.CFLAGS) 71 | )) 72 | 73 | conf.write_config_header('src/SPTK-config.h') 74 | 75 | 76 | def build(bld): 77 | bld.recurse(subdirs) 78 | 79 | libs = [] 80 | for tasks in bld.get_build_iterator(): 81 | if tasks == []: 82 | break 83 | for task in tasks: 84 | if isinstance(task.generator, waflib.TaskGen.task_gen) and 'cshlib' in task.generator.features: 85 | libs.append(task.generator.target) 86 | ls = '' 87 | for l in set(libs): 88 | ls = ls + ' -l' + l 89 | ls += ' -lm' 90 | 91 | bld(source='SPTK.pc.in', 92 | prefix=bld.env['PREFIX'], 93 | exec_prefix='${prefix}', 94 | libdir=bld.env['LIBDIR'], 95 | libs=ls, 96 | includedir='${prefix}/include', 97 | PACKAGE=APPNAME, 98 | VERSION=VERSION) 99 | --------------------------------------------------------------------------------