include/pv_porcupine.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_PORCUPINE_H
13 #define PV_PORCUPINE_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 
33 typedef struct pv_porcupine pv_porcupine_t;
34 
49  const char *access_key,
50  const char *model_path,
51  int32_t num_keywords,
52  const char *const *keyword_paths,
53  const float *sensitivities,
54  pv_porcupine_t **object);
55 
62 
74 PV_API pv_status_t pv_porcupine_process(pv_porcupine_t *object, const int16_t *pcm, int32_t *keyword_index);
75 
81 PV_API const char *pv_porcupine_version(void);
82 
88 PV_API int32_t pv_porcupine_frame_length(void);
89 
90 #ifdef __cplusplus
91 
92 }
93 
94 #endif
95 
96 #endif // PV_PORCUPINE_H
pv_porcupine_init
PV_API pv_status_t pv_porcupine_init(const char *access_key, const char *model_path, int32_t num_keywords, const char *const *keyword_paths, const float *sensitivities, pv_porcupine_t **object)
picovoice.h
pv_porcupine_process
PV_API pv_status_t pv_porcupine_process(pv_porcupine_t *object, const int16_t *pcm, int32_t *keyword_index)
pv_porcupine_version
const PV_API char * pv_porcupine_version(void)
pv_porcupine_frame_length
PV_API int32_t pv_porcupine_frame_length(void)
pv_status_t
pv_status_t
Definition: porcupine/include/picovoice.h:33
pv_porcupine_delete
PV_API void pv_porcupine_delete(pv_porcupine_t *object)
pv_porcupine_t
struct pv_porcupine pv_porcupine_t
Definition: include/pv_porcupine.h:33
PV_API
#define PV_API
Definition: porcupine/demo/c/pvrecorder/include/pv_recorder.h:18


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