include/pv_rhino.h
Go to the documentation of this file.
1 /*
2  Copyright 2018-2022 Picovoice Inc.
3 
4  You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
5  file accompanying this source.
6 
7  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
8  an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
9  specific language governing permissions and limitations under the License.
10 */
11 
12 #ifndef PV_RHINO_H
13 #define PV_RHINO_H
14 
15 #include <stdbool.h>
16 #include <stdint.h>
17 
18 #include "picovoice.h"
19 
20 #ifdef __cplusplus
21 
22 extern "C" {
23 
24 #endif
25 
34 typedef struct pv_rhino pv_rhino_t;
35 
51  const char *access_key,
52  const char *model_path,
53  const char *context_path,
54  float sensitivity,
55  bool require_endpoint,
56  pv_rhino_t **object);
57 
63 PV_API void pv_rhino_delete(pv_rhino_t *object);
64 
76 PV_API pv_status_t pv_rhino_process(pv_rhino_t *object, const int16_t *pcm, bool *is_finalized);
77 
87 PV_API pv_status_t pv_rhino_is_understood(const pv_rhino_t *object, bool *is_understood);
88 
104  const pv_rhino_t *object,
105  const char **intent,
106  int32_t *num_slots,
107  const char ***slots,
108  const char ***values);
109 
120 PV_API pv_status_t pv_rhino_free_slots_and_values(const pv_rhino_t *object, const char **slots, const char **values);
121 
130 
138 PV_API pv_status_t pv_rhino_context_info(const pv_rhino_t *object, const char **context_info);
139 
145 PV_API const char *pv_rhino_version(void);
146 
152 PV_API int32_t pv_rhino_frame_length(void);
153 
154 #ifdef __cplusplus
155 
156 }
157 
158 #endif
159 
160 #endif // PV_RHINO_H
pv_rhino_free_slots_and_values
PV_API pv_status_t pv_rhino_free_slots_and_values(const pv_rhino_t *object, const char **slots, const char **values)
pv_rhino_version
const PV_API char * pv_rhino_version(void)
pv_rhino_get_intent
PV_API pv_status_t pv_rhino_get_intent(const pv_rhino_t *object, const char **intent, int32_t *num_slots, const char ***slots, const char ***values)
pv_rhino_process
PV_API pv_status_t pv_rhino_process(pv_rhino_t *object, const int16_t *pcm, bool *is_finalized)
pv_rhino_frame_length
PV_API int32_t pv_rhino_frame_length(void)
pv_rhino_delete
PV_API void pv_rhino_delete(pv_rhino_t *object)
pv_status_t
pv_status_t
Definition: porcupine/include/picovoice.h:33
pv_rhino_init
PV_API pv_status_t pv_rhino_init(const char *access_key, const char *model_path, const char *context_path, float sensitivity, bool require_endpoint, pv_rhino_t **object)
pv_rhino_reset
PV_API pv_status_t pv_rhino_reset(pv_rhino_t *object)
pv_rhino_context_info
PV_API pv_status_t pv_rhino_context_info(const pv_rhino_t *object, const char **context_info)
PV_API
#define PV_API
Definition: porcupine/demo/c/pvrecorder/include/pv_recorder.h:18
pv_rhino_is_understood
PV_API pv_status_t pv_rhino_is_understood(const pv_rhino_t *object, bool *is_understood)
pv_rhino_t
struct pv_rhino pv_rhino_t
Definition: include/pv_rhino.h:34
picovoice.h


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:50