lib/mcu/psoc062s2/include/pv_porcupine.h
Go to the documentation of this file.
1 /*
2  Copyright 2021 Picovoice Inc.
3  You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
4  file accompanying this source.
5  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
6  an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
7  specific language governing permissions and limitations under the License.
8 */
9 
10 #ifndef PV_PORCUPINE_H
11 #define PV_PORCUPINE_H
12 
13 #include <stdbool.h>
14 #include <stdint.h>
15 
16 #include "picovoice.h"
17 
18 #ifdef __cplusplus
19 
20 extern "C" {
21 
22 #endif
23 
31 typedef struct pv_porcupine pv_porcupine_t;
32 
33 
49  const char *access_key,
50  int32_t memory_size,
51  void *memory_buffer,
52  int32_t num_keywords,
53  const int32_t *keyword_model_sizes,
54  const void *const *keyword_models,
55  const float *sensitivities,
56  pv_porcupine_t **object);
57 
64 
76 PV_API pv_status_t pv_porcupine_process(pv_porcupine_t *object, const int16_t *pcm, int32_t *keyword_index);
77 
94  int32_t preliminary_memory_size,
95  void *preliminary_memory_buffer,
96  int32_t num_keywords,
97  const int32_t *keyword_model_sizes,
98  const void *const *keyword_models,
99  int32_t *min_memory_buffer_size);
100 
106 PV_API const char *pv_porcupine_version(void);
107 
113 PV_API int32_t pv_porcupine_frame_length(void);
114 
115 #ifdef __cplusplus
116 }
117 
118 #endif
119 
120 #endif // PV_PORCUPINE_H
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_porcupine_process
PV_API pv_status_t pv_porcupine_process(pv_porcupine_t *object, const int16_t *pcm, int32_t *keyword_index)
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_init
PV_API pv_status_t pv_porcupine_init(const char *access_key, int32_t memory_size, void *memory_buffer, int32_t num_keywords, const int32_t *keyword_model_sizes, const void *const *keyword_models, const float *sensitivities, pv_porcupine_t **object)
pv_porcupine_get_min_memory_buffer_size
PV_API pv_status_t pv_porcupine_get_min_memory_buffer_size(int32_t preliminary_memory_size, void *preliminary_memory_buffer, int32_t num_keywords, const int32_t *keyword_model_sizes, const void *const *keyword_models, int32_t *min_memory_buffer_size)
picovoice.h
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