porcupine/lib/mcu/psoc062s2/include/picovoice.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 PICOVOICE_H
11 #define PICOVOICE_H
12 
13 #include <stdint.h>
14 
15 #ifdef __cplusplus
16 
17 extern "C" {
18 
19 #endif
20 
21 #define PV_API __attribute__((visibility("default")))
22 
26 PV_API int32_t pv_sample_rate(void);
27 
31 typedef enum {
44 } pv_status_t;
45 
52 PV_API const char *pv_status_to_string(pv_status_t status);
53 
54 #ifdef __cplusplus
55 
56 }
57 
58 #endif
59 
60 #endif // PICOVOICE_H
PV_STATUS_SUCCESS
@ PV_STATUS_SUCCESS
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:32
PV_STATUS_IO_ERROR
@ PV_STATUS_IO_ERROR
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:34
PV_STATUS_INVALID_STATE
@ PV_STATUS_INVALID_STATE
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:38
PV_STATUS_RUNTIME_ERROR
@ PV_STATUS_RUNTIME_ERROR
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:39
PV_STATUS_ACTIVATION_REFUSED
@ PV_STATUS_ACTIVATION_REFUSED
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:43
pv_sample_rate
PV_API int32_t pv_sample_rate(void)
PV_STATUS_ACTIVATION_ERROR
@ PV_STATUS_ACTIVATION_ERROR
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:40
PV_STATUS_INVALID_ARGUMENT
@ PV_STATUS_INVALID_ARGUMENT
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:35
PV_API
#define PV_API
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:21
pv_status_t
pv_status_t
Definition: porcupine/include/picovoice.h:33
PV_STATUS_ACTIVATION_LIMIT_REACHED
@ PV_STATUS_ACTIVATION_LIMIT_REACHED
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:41
pv_status_t
pv_status_t
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:31
pv_status_to_string
const PV_API char * pv_status_to_string(pv_status_t status)
PV_STATUS_STOP_ITERATION
@ PV_STATUS_STOP_ITERATION
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:36
PV_STATUS_OUT_OF_MEMORY
@ PV_STATUS_OUT_OF_MEMORY
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:33
PV_STATUS_KEY_ERROR
@ PV_STATUS_KEY_ERROR
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:37
PV_STATUS_ACTIVATION_THROTTLED
@ PV_STATUS_ACTIVATION_THROTTLED
Definition: porcupine/lib/mcu/psoc062s2/include/picovoice.h:42


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