pv_porcupine_mcu.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 
35 
51  const char *access_key,
52  int32_t memory_size,
53  void *memory_buffer,
54  int32_t num_keywords,
55  const int32_t *keyword_model_sizes,
56  const void *const *keyword_models,
57  const float *sensitivities,
58  pv_porcupine_t **object);
59 
66 
78 PV_API pv_status_t pv_porcupine_process(pv_porcupine_t *object, const int16_t *pcm, int32_t *keyword_index);
79 
96  int32_t preliminary_memory_size,
97  void *preliminary_memory_buffer,
98  int32_t num_keywords,
99  const int32_t *keyword_model_sizes,
100  const void *const *keyword_models,
101  int32_t *min_memory_buffer_size);
102 
108 PV_API const char *pv_porcupine_version(void);
109 
115 PV_API int32_t pv_porcupine_frame_length(void);
116 
117 #ifdef __cplusplus
118 }
119 
120 #endif
121 
122 #endif // PV_PORCUPINE_H
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)
picovoice.h
pv_status_t
pv_status_t
Definition: porcupine/include/picovoice.h:33
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_t
struct pv_porcupine pv_porcupine_t
Definition: include/pv_porcupine.h:33
pv_porcupine_version
const PV_API char * pv_porcupine_version(void)
PV_API
#define PV_API
Definition: porcupine/demo/c/pvrecorder/include/pv_recorder.h:18
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)
pv_porcupine_delete
PV_API void pv_porcupine_delete(pv_porcupine_t *object)


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