• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*---------------------------------------------------------------------------*
2  *  SR_AcousticStateImpl.h                                                   *
3  *                                                                           *
4  *  Copyright 2007, 2008 Nuance Communciations, Inc.                         *
5  *                                                                           *
6  *  Licensed under the Apache License, Version 2.0 (the 'License');          *
7  *  you may not use this file except in compliance with the License.         *
8  *                                                                           *
9  *  You may obtain a copy of the License at                                  *
10  *      http://www.apache.org/licenses/LICENSE-2.0                           *
11  *                                                                           *
12  *  Unless required by applicable law or agreed to in writing, software      *
13  *  distributed under the License is distributed on an 'AS IS' BASIS,        *
14  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
15  *  See the License for the specific language governing permissions and      *
16  *  limitations under the License.                                           *
17  *                                                                           *
18  *---------------------------------------------------------------------------*/
19 
20 #ifndef __SR_ACOUSTICSTATEIMPL_H
21 #define __SR_ACOUSTICSTATEIMPL_H
22 
23 
24 
25 #ifndef __vxworks
26 #include <memory.h>
27 #endif
28 #include "SR_AcousticModels.h"
29 #include "SR_AcousticState.h"
30 #include "SR_RecognizerImpl.h"
31 #include "ESR_ReturnCode.h"
32 
33 /**
34  * SR_AcousticState implementation.
35  */
36 typedef struct SR_AcousticStateImpl_t
37 {
38   /**
39    * Interface functions that must be implemented.
40    */
41   SR_AcousticState Interface;
42 }
43 SR_AcousticStateImpl;
44 
45 
46 /**
47  * Default implementation.
48  */
49 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateCreateImpl(SR_Recognizer* recognizer);
50 /**
51  * Default implementation.
52  */
53 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateDestroyImpl(SR_Recognizer* recognizer);
54 /**
55  * Default implementation.
56  */
57 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateResetImpl(SR_Recognizer* recognizer);
58 /**
59  * Default implementation.
60  */
61 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateLoadImpl(SR_Recognizer* recognizer, const LCHAR* filename);
62 /**
63  * Default implementation.
64  */
65 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateSaveImpl(SR_Recognizer* recognizer, const LCHAR* filename);
66 /**
67  * Default implementation.
68  */
69 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateSetImpl(SR_Recognizer* recognizer, const LCHAR *param_string );
70 /**
71  * Default implementation.
72  */
73 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateGetImpl(SR_Recognizer* recognizer, LCHAR *param_string, size_t* len );
74 /**
75  * Default implementation.
76  */
77 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateActivateModelImpl(SR_Recognizer* recognizer, SR_AcousticModelID id);
78 /**
79  * Default implementation.
80  */
81 SREC_ACOUSTICSTATE_API ESR_ReturnCode SR_AcousticStateDeactivateModelImpl(SR_Recognizer* recognizer, SR_AcousticModelID id);
82 
83 
84 #endif /* __SR_ACOUSTICSTATEIMPL_H */
85