Skip to content
Newer
Older
100644 671 lines (529 sloc) 16.4 KB
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
1 # Process this file with autoconf to produce a configure script.
1bbac3a @MattShannon (standardize and fix program name)
authored Jul 3, 2011
2 AC_INIT(HTS-demo_CMU-ARCTIC-SLT-STRAIGHT-AR-decision-tree,2.1,matt.shannon@cantab.net)
4ccc0df @MattShannon update installation instructions, improve README greatly, and general…
authored Jul 3, 2011
3 AC_COPYRIGHT(Copyright 2011 Matt Shannon)
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
4 AC_COPYRIGHT(Copyright 2001-2008 Nagoya Institute of Technology)
5 AC_COPYRIGHT(Copyright 2001-2008 Tokyo Institute of Technology)
6
7
8
9 # Checks for programs.
10 # awk
11 AC_PROG_AWK
12
13
14
15 # perl
16 AC_PATH_PROG([PERL], [perl], [/usr/bin], [$PATH:/usr/bin])
17 if test ! -f "$PERL"; then
18 AC_MSG_ERROR(Can't find perl)
19 fi
20
21
22
23 # bc
24 AC_PATH_PROG([BC], [bc], [/usr/bin], [$PATH:/usr/bin])
25 if test ! -f "$BC"; then
26 AC_MSG_ERROR(Can't find bc)
27 fi
28
29
30
31 # festival
32 # festival search path
33 AC_ARG_WITH(fest-search-path,
34 AS_HELP_STRING([--with-fest-search-path],[specify the additional festival search path]),
35 [fest_search_path=$withval])
36
37 # dumpfeats (festival)
38 AC_PATH_PROG([DUMPFEATS], [dumpfeats], [:], [${fest_search_path}:$PATH])
39 if test ! -f "$DUMPFEATS"; then
40 AC_MSG_ERROR(Can't find dumpfeats of festival)
41 fi
42
43
44
45 # SPTK commands
46 # SPTK search path
47 AC_ARG_WITH(sptk-search-path,
48 AS_HELP_STRING([--with-sptk-search-path],[specify the additional SPTK binary search path]),
49 [sptk_search_path=$withval])
50
51 # swab
52 AC_PATH_PROG([SWAB], [swab], [:], [${sptk_search_path}:$PATH])
53 if test ! -f "$SWAB"; then
54 AC_MSG_ERROR(Can't find swab of SPTK)
55 fi
56
57 # x2x
58 AC_PATH_PROG([X2X], [x2x], [:], [${sptk_search_path}:$PATH])
59 if test ! -f "$X2X"; then
60 AC_MSG_ERROR(Can't find x2x of SPTK)
61 fi
62
63 # mgcep
64 if test -z "$GAMMA"; then
65 AC_PATH_PROG([MGCEP], [mcep], [:], [${sptk_search_path}:$PATH])
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
66 if test ! -f "$MGCEP"; then
67 AC_MSG_ERROR(Can't find mcep of SPTK)
68 fi
69 version=`$MGCEP -h 2>&1 | grep "version" | sed -e "s/.* //g"`
70 if test -z "$version"; then
71 AC_MSG_ERROR(mcep in SPTK version 3.2 or later is required.)
72 elif test `echo "$version < 3.2" | $BC` = 1; then
73 AC_MSG_ERROR(mcep in SPTK version 3.2 or later is required.)
74 fi
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
75 elif test $GAMMA -eq 0; then
76 AC_PATH_PROG([MGCEP], [mcep], [:], [${sptk_search_path}:$PATH])
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
77 if test ! -f "$MGCEP"; then
78 AC_MSG_ERROR(Can't find mcep of SPTK)
79 fi
80 version=`$MGCEP -h 2>&1 | grep "version" | sed -e "s/.* //g"`
81 if test -z "$version"; then
82 AC_MSG_ERROR(mcep in SPTK version 3.2 or later is required.)
83 elif test `echo "$version < 3.2" | $BC` = 1; then
84 AC_MSG_ERROR(mcep in SPTK version 3.2 or later is required.)
85 fi
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
86 else
87 AC_PATH_PROG([MGCEP], [mgcep], [:], [${sptk_search_path}:$PATH])
88 if test ! -f "$MGCEP"; then
89 AC_MSG_ERROR(Can't find mgcep of SPTK)
90 fi
91 version=`$MGCEP -h 2>&1 | grep "version" | sed -e "s/.* //g"`
92 if test -z "$version"; then
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
93 AC_MSG_ERROR(mgcep in SPTK version 3.2 or later is required.)
94 elif test `echo "$version < 3.2" | $BC` = 1; then
95 AC_MSG_ERROR(mgcep in SPTK version 3.2 or later is required.)
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
96 fi
97 fi
98
99 # lpc2lsp
100 AC_PATH_PROG([LPC2LSP], [lpc2lsp], [:], [${sptk_search_path}:$PATH])
101 if test ! -f "$LPC2LSP"; then
102 AC_MSG_ERROR(Can't find lpc2lsp of SPTK)
103 fi
104 version=`$LPC2LSP -h 2>&1 | grep "version" | sed -e "s/.* //g"`
105 if test -z "$version"; then
106 AC_MSG_ERROR(lpc2lsp in SPTK version 3.1 or later is required.)
107 elif test `echo "$version < 3.1" | $BC` = 1; then
108 AC_MSG_ERROR(lpc2lsp in SPTK version 3.1 or later is required.)
109 fi
110
111 # vstat
112 AC_PATH_PROG([VSTAT], [vstat], [:], [${sptk_search_path}:$PATH])
113 if test ! -f "$VSTAT"; then
114 AC_MSG_ERROR(Can't find vstat of SPTK)
115 fi
116
117 # sopr
118 AC_PATH_PROG([SOPR], [sopr], [:], [${sptk_search_path}:$PATH])
119 if test ! -f "$SOPR"; then
120 AC_MSG_ERROR(Can't find sopr of SPTK)
121 fi
122
123 # vopr
124 AC_PATH_PROG([VOPR], [vopr], [:], [${sptk_search_path}:$PATH])
125 if test ! -f "$VOPR"; then
126 AC_MSG_ERROR(Can't find vopr of SPTK)
127 fi
128
129 # freqt
130 AC_PATH_PROG([FREQT], [freqt], [:], [${sptk_search_path}:$PATH])
131 if test ! -f "$FREQT"; then
132 AC_MSG_ERROR(Can't find freqt of SPTK)
133 fi
134
135 # c2acr
136 AC_PATH_PROG([C2ACR], [c2acr], [:], [${sptk_search_path}:$PATH])
137 if test ! -f "$C2ACR"; then
138 AC_MSG_ERROR(Can't find c2acr of SPTK)
139 fi
140
141 # mc2b
142 AC_PATH_PROG([MC2B], [mc2b], [:], [${sptk_search_path}:$PATH])
143 if test ! -f "$MC2B"; then
144 AC_MSG_ERROR(Can't find mc2b of SPTK)
145 fi
146
147 # b2mc
148 AC_PATH_PROG([B2MC], [b2mc], [:], [${sptk_search_path}:$PATH])
149 if test ! -f "$B2MC"; then
150 AC_MSG_ERROR(Can't find b2mc of SPTK)
151 fi
152
153 # merge
154 AC_PATH_PROG([MERGE], [merge], [:], [${sptk_search_path}:$PATH])
155 if test ! -f "$MERGE"; then
156 AC_MSG_ERROR(Can't find merge of SPTK)
157 fi
158 version=`$MERGE -h 2>&1 | grep "version" | sed -e "s/.* //g"`
159 if test -z "$version"; then
160 AC_MSG_ERROR(merge in SPTK version 3.1 or later is required.)
161 elif test `echo "$version < 3.1" | $BC` = 1; then
162 AC_MSG_ERROR(merge in SPTK version 3.1 or later is required.)
163 fi
164
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
165 # average
166 AC_PATH_PROG([AVERAGE], [average], [:], [${sptk_search_path}:$PATH])
167 if test ! -f "$AVERAGE"; then
168 AC_MSG_ERROR(Can't find average of SPTK)
169 fi
170 version=`$AVERAGE -h 2>&1 | grep "version" | sed -e "s/.* //g"`
171 if test -z "$version"; then
172 AC_MSG_ERROR(average in SPTK version 3.1 or later is required.)
173 elif test `echo "$version < 3.1" | $BC` = 1; then
174 AC_MSG_ERROR(average in SPTK version 3.1 or later is required.)
175 fi
176
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
177 # bcp
178 AC_PATH_PROG([BCP], [bcp], [:], [${sptk_search_path}:$PATH])
179 if test ! -f "$BCP"; then
180 AC_MSG_ERROR(Can't find bcp of SPTK)
181 fi
182
183 # lsp2lpc
184 AC_PATH_PROG([LSP2LPC], [lsp2lpc], [:], [${sptk_search_path}:$PATH])
185 if test ! -f "$LSP2LPC"; then
186 AC_MSG_ERROR(Can't find lsp2lpc of SPTK)
187 fi
188 version=`$LSP2LPC -h 2>&1 | grep "version" | sed -e "s/.* //g"`
189 if test -z "$version"; then
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
190 AC_MSG_ERROR(lsp2lpc in SPTK version 3.1 or later is required.)
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
191 elif test `echo "$version < 3.1" | $BC` = 1; then
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
192 AC_MSG_ERROR(lsp2lpc in SPTK version 3.1 or later is required.)
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
193 fi
194
195 # lspcheck
196 AC_PATH_PROG([LSPCHECK], [lspcheck], [:], [${sptk_search_path}:$PATH])
197 if test ! -f "$LSPCHECK"; then
198 AC_MSG_ERROR(Can't find lspcheck of SPTK)
199 fi
200
201 # mgc2mgc
202 AC_PATH_PROG([MGC2MGC], [mgc2mgc], [:], [${sptk_search_path}:$PATH])
203 if test ! -f "$MGC2MGC"; then
204 AC_MSG_ERROR(Can't find mgc2mgc of SPTK)
205 fi
206
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
207 # mgc2sp
208 AC_PATH_PROG([MGC2SP], [mgc2sp], [:], [${sptk_search_path}:$PATH])
209 if test ! -f "$MGC2SP"; then
210 AC_MSG_ERROR(Can't find mgc2sp of SPTK)
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
211 fi
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
212
213 # interpolate
214 AC_PATH_PROG([INTERPOLATE], [interpolate], [:], [${sptk_search_path}:$PATH])
215 if test ! -f "$INTERPOLATE"; then
216 AC_MSG_ERROR(Can't find interpolate of SPTK)
217 fi
218
219 # dfs
220 AC_PATH_PROG([DFS], [dfs], [:], [${sptk_search_path}:$PATH])
221 if test ! -f "$DFS"; then
222 AC_MSG_ERROR(Can't find dfs of SPTK)
223 fi
224
225 # nan
226 AC_PATH_PROG([NAN], [nan], [:], [${sptk_search_path}:$PATH])
227 if test ! -f "$NAN"; then
228 AC_MSG_ERROR(Can't find nan of SPTK)
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
229 fi
230
231
232
233 # sox (Sound eXchange)
234 # sox search path
235 AC_ARG_WITH(sox-search-path,
236 AS_HELP_STRING([--with-sox-search-path],[specify the additional sox (Sound eXchange) search path]),
237 [sox_search_path=$withval])
238
239 # sox
240 AC_PATH_PROG([SOX], [sox], [:], [${sox_search_path}:$PATH])
241 if test ! -f "$SOX"; then
242 AC_MSG_ERROR(Can't find sox)
243 fi
244
245
246
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
247 # MATLAB
248 # MATLAB search path
249 AC_ARG_WITH(matlab-search-path,
250 AS_HELP_STRING([--with-matlab-search-path],[specify the additional MATLAB binary search path]),
251 [matlab_search_path=$withval])
252
253 AC_PATH_PROG([MATLAB], [matlab], [:], [${matlab_search_path}:$PATH])
254 if test ! -f "$MATLAB"; then
255 AC_MSG_ERROR(Can't find MATLAB)
256 fi
257 MATLAB="$MATLAB -nodisplay -nosplash -nojvm"
258
259
260
261 # STRAIGHT
262 # STRAIGHTpath
263 AC_ARG_WITH(straight-path,
264 AS_HELP_STRING([--with-straight-path],[specify the STRAIGHT MATLAB code path]),
265 [STRAIGHT=$withval])
266 if test ! -f "$STRAIGHT/exstraightsource.p" -a ! -f "$STRAIGHT/exstraightsource.m"; then
267 AC_MSG_ERROR(Can't find exstraightsource in $STRAIGHT)
268 fi
269 if test ! -f "$STRAIGHT/exstraightspec.p" -a ! -f "$STRAIGHT/exstraightspec.m"; then
270 AC_MSG_ERROR(Can't find exstraightspec in $STRAIGHT)
271 fi
272 if test ! -f "$STRAIGHT/exstraightsynth.p" -a ! -f "$STRAIGHT/exstraightsynth.m"; then
273 AC_MSG_ERROR(Can't find exstraightsynth in $STRAIGHT)
274 fi
275 AC_SUBST(STRAIGHT)
276
277
278
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
279 # HTS commands
280 # HTS search path
281 AC_ARG_WITH(hts-search-path,
282 AS_HELP_STRING([--with-hts-search-path],[specify the additional HTS binary search path]),
283 [hts_search_path=$withval])
284
285 # HMGenS
286 AC_PATH_PROG([HMGENS], [HMGenS], [:], [${hts_search_path}:$PATH])
287 if test ! -f "$HMGENS"; then
288 AC_MSG_ERROR(Can't find HMGenS of HTS)
289 fi
290
291 # HCompV
292 AC_PATH_PROG([HCOMPV], [HCompV], [:], [${hts_search_path}:$PATH])
293 if test ! -f "$HCOMPV"; then
294 AC_MSG_ERROR(Can't find HCompV of HTS)
295 fi
296
297 # HInit
298 AC_PATH_PROG([HINIT], [HInit], [:], [${hts_search_path}:$PATH])
299 if test ! -f "$HINIT"; then
300 AC_MSG_ERROR(Can't find HInit of HTS)
301 fi
302
303 # HRest
304 AC_PATH_PROG([HREST], [HRest], [:], [${hts_search_path}:$PATH])
305 if test ! -f "$HREST"; then
306 AC_MSG_ERROR(Can't find HRest of HTS)
307 fi
308
309 # HERest
310 AC_PATH_PROG([HEREST], [HERest], [:], [${hts_search_path}:$PATH])
311 if test ! -f "$HEREST"; then
312 AC_MSG_ERROR(Can't find HERest of HTS)
313 fi
314
315 # HHEd
316 AC_PATH_PROG([HHED], [HHEd], [:], [${hts_search_path}:$PATH])
317 if test ! -f "$HHED"; then
318 AC_MSG_ERROR(Can't find HHEd of HTS)
319 fi
320
321
322
323 # hts_engine API
324 # hts_engine search path
325 AC_ARG_WITH(hts-engine-search-path,
326 AS_HELP_STRING([--with-hts-engine-search-path],[specify the additional hts_engine binary search path]),
327 [hts_engine_search_path=$withval])
328
329 # hts_engine
330 AC_PATH_PROG([ENGINE], [hts_engine], [:], [${hts_engine_search_path}:$PATH])
331 if test ! -f "$ENGINE"; then
332 AC_MSG_ERROR(Can't find hts_engine)
333 fi
334 version=`$ENGINE -h 2>&1 | grep "version" | sed -e "s/.*version //g" -e "s/ .*//g"`
335 if test -z "$version"; then
336 AC_MSG_ERROR(hts_engine using hts_engine API version 0.95 or later is required.)
337 elif test `echo "$version < 0.95" | $BC` = 1; then
338 AC_MSG_ERROR(hts_engine using hts_engine API version 0.95 or later is required.)
339 fi
340
341
342
343 # check endianness
344 AC_C_BIGENDIAN(BYTESWAP="1",BYTESWAP="0", AC_MSG_ERROR(Can't determine endianness))
345 AC_SUBST(BYTESWAP)
346
347
348
349 # speaker and dataset names
350 AC_ARG_VAR([SPEAKER],[speaker name (default=slt)])
351 AC_ARG_VAR([DATASET],[dataset (default=cmu_us_arctic)])
352
353 if test -z "$SPEAKER"; then
354 SPEAKER=slt
355 fi
356
357 if test -z "$DATASET"; then
358 DATASET=cmu_us_arctic
359 fi
360
361 AC_SUBST(SPEAKER)
362 AC_SUBST(DATASET)
363
364
365
366 # version number and question set name
367 AC_ARG_VAR([VER],[version number of this setting (default=1)])
368 AC_ARG_VAR([QNUM],[question set number (default='001')])
369
370 if test -z "$VER"; then
371 VER=1
372 fi
373
374 if test -z "$QNUM"; then
375 QNUM='001'
376 fi
377
378 AC_SUBST(VER)
379 AC_SUBST(QNUM)
380
381
382
383 # current directory
384 AC_SUBST(PWD)
385
386
387
388 # setting of mel-generalized cepstral analysis, F0 extraction, and postfiltering related settings
389 # parse command-line arguments
390 AC_ARG_VAR([FRAMESHIFT],[Frame shift in point (default=80)])
391 AC_ARG_VAR([FREQWARP],[Frequency warping factor (default=0.42)])
392 AC_ARG_VAR([GAMMA],[Pole/Zero weight factor (0: mel-cepstral analysis 1: LPC analysis 2,3,...,N: mel-generalized cepstral (MGC) analysis) (default=0)])
393 AC_ARG_VAR([MGCLSP],[Use MGC-LSPs instead of MGC coefficients (default=0)])
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
394 AC_ARG_VAR([MGCORDER],[Order of MGC analysis (default=39)])
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
395 AC_ARG_VAR([LNGAIN],[Use logarithmic gain instead of linear gain (default=0)])
396 AC_ARG_VAR([LOWERF0],[Lower limit for F0 extraction in Hz (default=80)])
397 AC_ARG_VAR([UPPERF0],[Upper limit for F0 extraction in Hz (default=350)])
76d960a @MattShannon (turn off postfiltering by default)
authored Jan 9, 2009
398 AC_ARG_VAR([PSTFILTER],[Postfiltering factor (default=1.0)])
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
399 AC_ARG_VAR([IMPLEN],[Length of impulse response (default=4096)])
400 AC_ARG_VAR([SAMPFREQ],[Sampling frequency in Hz (default=16000)])
401
402 # default values
403 if test -z "$FRAMESHIFT"; then
404 FRAMESHIFT=80
405 fi
406
407 if test -z "$SAMPFREQ"; then
408 SAMPFREQ=16000
409 fi
410
411 if test -z "$FREQWARP"; then
412 case $SAMPFREQ in
413 8000) FREQWARP=0.31 ;;
414 10000) FREQWARP=0.35 ;;
415 12000) FREQWARP=0.37 ;;
416 16000) FREQWARP=0.42 ;;
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
417 22050) FREQWARP=0.45 ;;
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
418 *) FREQWARP=0.50 ;;
419 esac
420 fi
421
422 if test -z "$GAMMA"; then
423 GAMMA=0
424 fi
425
426 if test -z "$MGCLSP"; then
427 MGCLSP=0
428 fi
429
430 if test -z "$MGCORDER"; then
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
431 MGCORDER=39
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
432 fi
433
434 if test -z "$LNGAIN"; then
435 LNGAIN=1
436 fi
437
438 if test -z "$LOWERF0"; then
439 LOWERF0=80
440 fi
441
442 if test -z "$UPPERF0"; then
443 UPPERF0=350
444 fi
445
446 if test -z "$PSTFILTER"; then
76d960a @MattShannon (turn off postfiltering by default)
authored Jan 9, 2009
447 PSTFILTER=1.0
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
448 fi
449
450 if test -z "$IMPLEN"; then
451 IMPLEN=4096
452 fi
453
454 MGCVSIZE=`expr $MGCORDER + 1`
455
456 if test $GAMMA -eq 0 -a $MGCLSP -eq 1; then
457 AC_MSG_ERROR(Cannot convert MGC coefficients into LSP form if GAMMA=0!)
458 fi
459
460 if test $GAMMA -ne 0 -a $MGCLSP -eq 0; then
461 AC_MSG_ERROR(Cannot use MGC coefficients directly if GAMMA>0! Convert into the LSP form by setting MGCLSP=1!)
462 fi
463
464
465
466 # substitute variables
467 AC_SUBST(FRAMESHIFT)
468 AC_SUBST(FREQWARP)
469 AC_SUBST(GAMMA)
470 AC_SUBST(MGCORDER)
471 AC_SUBST(MGCLSP)
472 AC_SUBST(LOWERF0)
473 AC_SUBST(UPPERF0)
474 AC_SUBST(PSTFILTER)
475 AC_SUBST(IMPLEN)
476 AC_SUBST(SAMPFREQ)
477 AC_SUBST(MGCVSIZE)
478
479
480
481 # number of windows
482 # parse command-line arguments
cb584b8 @MattShannon add 4th mgc window by default
authored Jan 9, 2009
483 AC_ARG_VAR([NMGCWIN],[number of delta windows for MGC coefficients (default=4)])
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
484 AC_ARG_VAR([NLF0WIN],[number of delta windows for log F0 values (default=3)])
a378663 @MattShannon make bap autoregressive (change windows to autoregressive, add 4th wi…
authored Sep 11, 2009
485 AC_ARG_VAR([NBAPWIN],[number of delta windows for band aperiodicity values (default=4)])
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
486
487 # default values
488 if test -z "$NMGCWIN"; then
cb584b8 @MattShannon add 4th mgc window by default
authored Jan 9, 2009
489 NMGCWIN=4
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
490 fi
491
492 if test -z "$NLF0WIN"; then
493 NLF0WIN=3
494 fi
495
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
496 if test -z "$NBAPWIN"; then
a378663 @MattShannon make bap autoregressive (change windows to autoregressive, add 4th wi…
authored Sep 11, 2009
497 NBAPWIN=4
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
498 fi
499
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
500 F0STREN=`expr $NLF0WIN + 1`
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
501 BAPSTREN=`expr $F0STREN + 1`
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
502
503 # substitute variables
504 AC_SUBST(NMGCWIN)
505 AC_SUBST(NLF0WIN)
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
506 AC_SUBST(NBAPWIN)
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
507 AC_SUBST(F0STREN)
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
508 AC_SUBST(BAPSTREN)
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
509
510
511
512 # model training settings
513 # parse command-line arguments
514 AC_ARG_VAR([NSTATE],[number of HMM states (default=5)])
515 AC_ARG_VAR([NITER],[number of iterations of embedded training (default=5)])
516 AC_ARG_VAR([WFLOOR],[mixture weight flooring scale (default=3)])
517 AC_ARG_VAR([MAXDEV],[maximum duration scaling factor (default=10)])
518 AC_ARG_VAR([MINDUR],[minimum duration to be evaluated (default=5)])
cb584b8 @MattShannon add 4th mgc window by default
authored Jan 9, 2009
519 AC_ARG_VAR([NMGCTRANSBLK],[number of blocks for MGC transforms (default=4)])
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
520 AC_ARG_VAR([NLF0TRANSBLK],[number of blocks for log F0 transforms (default=1)])
a378663 @MattShannon make bap autoregressive (change windows to autoregressive, add 4th wi…
authored Sep 11, 2009
521 AC_ARG_VAR([NBAPTRANSBLK],[number of blocks for band aperiodicity transforms (default=4)])
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
522 AC_ARG_VAR([MGCBANDWIDTH],[band width for MGC transforms (default=24 for cepstral form, derault=2 for LSP form)])
523 AC_ARG_VAR([LF0BANDWIDTH],[band width for log F0 transforms (default=1)])
524
525 # default values
526 if test -z "$NSTATE"; then
527 NSTATE=5
528 fi
529
530 if test -z "$NITER"; then
531 NITER=5
532 fi
533
534 if test -z "$WFLOOR"; then
535 WFLOOR=3
536 fi
537
538 if test -z "$MAXDEV"; then
539 MAXDEV=10
540 fi
541
542 if test -z "$MINDUR"; then
543 MINDUR=5
544 fi
545
546 if test -z "$NMGCTRANSBLK"; then
cb584b8 @MattShannon add 4th mgc window by default
authored Jan 9, 2009
547 NMGCTRANSBLK=4
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
548 fi
549
550 if test -z "$NLF0TRANSBLK"; then
551 NLF0TRANSBLK=1
552 fi
553
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
554 if test -z "$NBAPTRANSBLK"; then
a378663 @MattShannon make bap autoregressive (change windows to autoregressive, add 4th wi…
authored Sep 11, 2009
555 NBAPTRANSBLK=4
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
556 fi
557
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
558 if test -z "$MGCBANDWIDTH"; then
559 if test $MGCLSP -eq 0; then
560 MGCBANDWIDTH=$MGCORDER
561 else
562 MGCBANDWIDTH=2
563 fi
564 fi
565
566 if test -z "$LF0BANDWIDTH"; then
567 LF0BANDWIDTH=0
568 fi
569
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
570 if test -z "$BAPBANDWIDTH"; then
571 BAPBANDWIDTH=5
572 fi
573
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
574 # substitute variables
575 AC_SUBST(NSTATE)
576 AC_SUBST(NITER)
577 AC_SUBST(WFLOOR)
578 AC_SUBST(MAXDEV)
579 AC_SUBST(MINDUR)
580 AC_SUBST(NMGCTRANSBLK)
581 AC_SUBST(NLF0TRANSBLK)
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
582 AC_SUBST(NBAPTRANSBLK)
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
583 AC_SUBST(MGCBANDWIDTH)
584 AC_SUBST(LF0BANDWIDTH)
0e58e4b @MattShannon STRAIGHT demo delta (as downloaded)
authored Oct 29, 2008
585 AC_SUBST(BAPBANDWIDTH)
5d403b4 @MattShannon initial revision (as downloaded)
authored Oct 29, 2008
586
587
588 # parameter generation algorithm settings
589 # parse command-line arguments
590 AC_ARG_VAR([MAXEMITER],[max EM iteration (default=20)])
591 AC_ARG_VAR([EMEPSILON],[convergence factor for EM iteration (default=0.0001)])
592 AC_ARG_VAR([USEGV],[turn on GV-based parameter generation algorithm (0:off or 1:on, default=1)])
593 AC_ARG_VAR([MAXGVITER],[maximum number of iterations of GV-based parameter generation algorithm (default=50)])
594 AC_ARG_VAR([GVEPSILON],[convergence factor for GV iteration (default=0.0001)])
595 AC_ARG_VAR([MINEUCNORM],[minimum Euclid norm for GV iteration (default=0.01)])
596 AC_ARG_VAR([STEPINIT],[initial step size (default=1.0)])
597 AC_ARG_VAR([STEPINC],[step size acceleration factor (default=1.2)])
598 AC_ARG_VAR([STEPDEC],[step size deceleration factor (default=0.5)])
599 AC_ARG_VAR([HMMWEIGHT],[weight for HMM output prob. (default=1.0)])
600 AC_ARG_VAR([GVWEIGHT],[weight for GV output prob. (default=1.0)])
601 AC_ARG_VAR([OPTKIND],[optimization method (STEEPEST, NEWTON, or LBFGS) (default=NEWTON)])
602
603 # default values
604 if test -z "$MAXEMITER"; then
605 MAXEMITER=20
606 fi
607
608 if test -z "$EMEPSILON"; then
609 EMEPSILON=0.0001
610 fi
611
612 if test -z "$USEGV"; then
613 USEGV=1
614 fi
615
616 if test -z "$MAXGVITER"; then
617 MAXGVITER=50
618 fi
619
620 if test -z "$GVEPSILON"; then
621 GVEPSILON=0.0001
622 fi
623
624 if test -z "$MINEUCNORM"; then
625 MINEUCNORM=0.01
626 fi
627
628 if test -z "$STEPINIT"; then
629 STEPINIT=1.0
630 fi
631
632 if test -z "$STEPINC"; then
633 STEPINC=1.2
634 fi
635
636 if test -z "$STEPDEC"; then
637 STEPDEC=0.5
638 fi
639
640 if test -z "$HMMWEIGHT"; then
641 HMMWEIGHT=1.0
642 fi
643
644 if test -z "$GVWEIGHT"; then
645 GVWEIGHT=1.0
646 fi
647
648 if test -z "$OPTKIND"; then
649 OPTKIND=NEWTON
650 fi
651
652 # substitute variables
653 AC_SUBST(MAXEMITER)
654 AC_SUBST(EMEPSILON)
655 AC_SUBST(USEGV)
656 AC_SUBST(MAXGVITER)
657 AC_SUBST(GVEPSILON)
658 AC_SUBST(MINEUCNORM)
659 AC_SUBST(STEPINIT)
660 AC_SUBST(STEPINC)
661 AC_SUBST(STEPDEC)
662 AC_SUBST(HMMWEIGHT)
663 AC_SUBST(GVWEIGHT)
664 AC_SUBST(OPTKIND)
665
666
667
668 # output data/Makefile and scripts/Config.pm
669 AC_OUTPUT(data/Makefile scripts/Config.pm Makefile)
670
Something went wrong with that request. Please try again.