ms_mllr.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /* ====================================================================
3  * Copyright (c) 1999-2004 Carnegie Mellon University. All rights
4  * reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  *
10  * 1. Redistributions of source code must retain the above copyright
11  * notice, this list of conditions and the following disclaimer.
12  *
13  * 2. Redistributions in binary form must reproduce the above copyright
14  * notice, this list of conditions and the following disclaimer in
15  * the documentation and/or other materials provided with the
16  * distribution.
17  *
18  * This work was supported in part by funding from the Defense Advanced
19  * Research Projects Agency and the National Science Foundation of the
20  * United States of America, and the CMU Sphinx Speech Consortium.
21  *
22  * THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND
23  * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
24  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
25  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
26  * NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33  *
34  * ====================================================================
35  *
36  */
37 /*
38  * ms_mllr.h -- Application of MLLR regression matrices to codebook means
39  *
40  * **********************************************
41  * CMU ARPA Speech Project
42  *
43  * Copyright (c) 1996 Carnegie Mellon University.
44  * ALL RIGHTS RESERVED.
45  * **********************************************
46  *
47  * HISTORY
48  * $Log$
49  * Revision 1.1 2006/04/05 20:27:30 dhdfu
50  * A Great Reorganzation of header files and executables
51  *
52  * Revision 1.7 2006/02/22 17:21:35 arthchan2003
53  * Merged from SPHINX3_5_2_RCI_IRII_BRANCH: 1, Added ms_mllr.[ch]
54  *
55  * Revision 1.6.4.1 2005/07/20 19:39:01 arthchan2003
56  * Added licences in ms_* series of code.
57  *
58  * Revision 1.6 2005/06/21 18:56:13 arthchan2003
59  * 1, Fixed doxygen documentation. 2, Added $ keyword.
60  *
61  * Revision 1.6 2005/06/19 04:50:02 archan
62  * Sphinx3 to s3.generic: allow multiple classes for MLLR
63  *
64  * Revision 1.5 2005/06/13 04:02:56 archan
65  * Fixed most doxygen-style documentation under libs3decoder.
66  *
67  * Revision 1.4 2005/03/30 01:22:47 archan
68  * Fixed mistakes in last updates. Add
69  *
70  *
71  * 26-Sep-96 M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University
72  * Started.
73  */
74 
75 
76 #ifndef _MS_MLLR_H_
77 #define _MS_MLLR_H_
78 
79 #include <s3types.h>
80 
84 #ifdef __cplusplus
85 extern "C" {
86 #endif
87 #if 0
88 } /* Fool Emacs into not indenting things. */
89 #endif
90 
96 int32 ms_mllr_read_regmat (const char *regmatfile,
97  float32 *****A,
98  float32 ****B,
99  int32 *streamlen,
100  int32 n_stream,
101  int32 *nclass
102  );
103 
108 int32 ms_mllr_free_regmat (float32 ****A,
109  float32 ***B,
110  int32 n_stream
111  );
112 
117 int32 ms_mllr_norm_mgau (float32 ***mean,
119  int32 n_density,
120  float32 ****A,
121  float32 ***B,
122  int32 *streamlen,
123  int32 n_stream,
124  int32 _class
125  );
126 
127 #if 0
128 { /* Stop indent from complaining */
129 #endif
130 #ifdef __cplusplus
131 }
132 #endif
133 
134 #endif