Edinburgh Speech Tools  2.4-release
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Pages
siod_est.h
1 /*************************************************************************/
2 /* */
3 /* Centre for Speech Technology Research */
4 /* University of Edinburgh, UK */
5 /* Copyright (c) 1996-1998 */
6 /* All Rights Reserved. */
7 /* */
8 /* Permission is hereby granted, free of charge, to use and distribute */
9 /* this software and its documentation without restriction, including */
10 /* without limitation the rights to use, copy, modify, merge, publish, */
11 /* distribute, sublicense, and/or sell copies of this work, and to */
12 /* permit persons to whom this work is furnished to do so, subject to */
13 /* the following conditions: */
14 /* 1. The code must retain the above copyright notice, this list of */
15 /* conditions and the following disclaimer. */
16 /* 2. Any modifications must be clearly marked as such. */
17 /* 3. Original authors' names are not deleted. */
18 /* 4. The authors' names are not used to endorse or promote products */
19 /* derived from this software without specific prior written */
20 /* permission. */
21 /* */
22 /* THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK */
23 /* DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING */
24 /* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT */
25 /* SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE */
26 /* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES */
27 /* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN */
28 /* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, */
29 /* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF */
30 /* THIS SOFTWARE. */
31 /* */
32 /*************************************************************************/
33 /* Author : Alan W Black */
34 /* Date : February 1999 */
35 /*-----------------------------------------------------------------------*/
36 /* */
37 /* Siod additions specific to Speech Tools */
38 /* */
39 /*=======================================================================*/
40 #ifndef __SIOD_EST_H__
41 #define __SIOD_EST_H__
42 
43 void siod_est_init();
44 void siod_fringe_init();
45 
46 class EST_Val &val(LISP x);
47 int val_p(LISP x);
48 LISP siod(const class EST_Val v);
49 
50 SIOD_REGISTER_CLASS_DCLS(wave,EST_Wave)
51 SIOD_REGISTER_CLASS_DCLS(track,EST_Track)
52 SIOD_REGISTER_CLASS_DCLS(feats,EST_Features)
53 SIOD_REGISTER_CLASS_DCLS(utterance,EST_Utterance)
54 SIOD_REGISTER_CLASS_DCLS(item,EST_Item)
55 /* SIOD_REGISTER_CLASS_DCLS(scheme,obj) */ /* removed for clang -- 14/10/13 */
56 
57 #define get_c_utt(x) (utterance(x))
58 #define get_c_item(x) (item(x))
59 
60 LISP lisp_val(const EST_Val &pv);
61 EST_Val val_lisp(LISP v);
62 
63 LISP features_to_lisp(EST_Features &f);
64 void lisp_to_features(LISP lf,EST_Features &f);
65 
66 LISP kvlss_to_lisp(const EST_TKVL<EST_String, EST_String> &kvl);
67 void lisp_to_kvlss(LISP l, EST_TKVL<EST_String, EST_String> &kvl);
68 
69 EST_Features &Param();
70 
71 #endif