UniMRCP  1.7.0
mrcp_recog_resource.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2015 Arsen Chaloyan
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef MRCP_RECOG_RESOURCE_H
18 #define MRCP_RECOG_RESOURCE_H
19 
20 /**
21  * @file mrcp_recog_resource.h
22  * @brief MRCP Recognizer Resource
23  */
24 
25 #include "mrcp_types.h"
26 
28 
29 /** MRCP recognizer methods */
30 typedef enum {
31  RECOGNIZER_SET_PARAMS,
32  RECOGNIZER_GET_PARAMS,
33  RECOGNIZER_DEFINE_GRAMMAR,
34  RECOGNIZER_RECOGNIZE,
35  RECOGNIZER_INTERPRET,
36  RECOGNIZER_GET_RESULT,
37  RECOGNIZER_START_INPUT_TIMERS,
38  RECOGNIZER_STOP,
39  RECOGNIZER_START_PHRASE_ENROLLMENT,
40  RECOGNIZER_ENROLLMENT_ROLLBACK,
41  RECOGNIZER_END_PHRASE_ENROLLMENT,
42  RECOGNIZER_MODIFY_PHRASE,
43  RECOGNIZER_DELETE_PHRASE,
44 
45  RECOGNIZER_METHOD_COUNT
47 
48 /** MRCP recognizer events */
49 typedef enum {
50  RECOGNIZER_START_OF_INPUT,
51  RECOGNIZER_RECOGNITION_COMPLETE,
52  RECOGNIZER_INTERPRETATION_COMPLETE,
53 
54  RECOGNIZER_EVENT_COUNT
56 
57 /** Create MRCP recognizer resource */
59 
61 
62 #endif /* MRCP_RECOG_RESOURCE_H */
#define MRCP_DECLARE(type)
Definition: mrcp.h:40
mrcp_recognizer_event_id
Definition: mrcp_recog_resource.h:49
#define APT_END_EXTERN_C
Definition: apt.h:38
mrcp_resource_t * mrcp_recog_resource_create(apr_pool_t *pool)
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
Basic MRCP Types.
mrcp_recognizer_method_id
Definition: mrcp_recog_resource.h:30
Definition: mrcp_resource.h:32