rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h
Go to the documentation of this file.
1 /*
2  Copyright 2018-2021 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 PICOVOICE_H
13 #define PICOVOICE_H
14 
15 #include <stdint.h>
16 
17 #ifdef __cplusplus
18 
19 extern "C" {
20 
21 #endif
22 
23 #define PV_API __attribute__((visibility("default")))
24 
28 PV_API int32_t pv_sample_rate(void);
29 
33 typedef enum {
34 
35 #ifdef __PV_PLATFORM_WASM__
36 
37  PV_STATUS_SUCCESS = 10000,
38 
39 #else
40 
42 
43 #endif
44 
56 } pv_status_t;
57 
64 PV_API const char *pv_status_to_string(pv_status_t status);
65 
66 #ifdef __cplusplus
67 }
68 
69 #endif
70 
71 #endif // PICOVOICE_H
PV_API
#define PV_API
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:23
PV_STATUS_IO_ERROR
@ PV_STATUS_IO_ERROR
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:46
PV_STATUS_OUT_OF_MEMORY
@ PV_STATUS_OUT_OF_MEMORY
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:45
PV_STATUS_ACTIVATION_ERROR
@ PV_STATUS_ACTIVATION_ERROR
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:52
PV_STATUS_INVALID_ARGUMENT
@ PV_STATUS_INVALID_ARGUMENT
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:47
pv_sample_rate
PV_API int32_t pv_sample_rate(void)
PV_STATUS_INVALID_STATE
@ PV_STATUS_INVALID_STATE
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:50
PV_STATUS_ACTIVATION_THROTTLED
@ PV_STATUS_ACTIVATION_THROTTLED
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:54
PV_STATUS_SUCCESS
@ PV_STATUS_SUCCESS
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:41
pv_status_t
pv_status_t
Definition: porcupine/include/picovoice.h:33
pv_status_t
pv_status_t
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:33
PV_STATUS_STOP_ITERATION
@ PV_STATUS_STOP_ITERATION
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:48
PV_STATUS_KEY_ERROR
@ PV_STATUS_KEY_ERROR
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:49
pv_status_to_string
const PV_API char * pv_status_to_string(pv_status_t status)
PV_STATUS_RUNTIME_ERROR
@ PV_STATUS_RUNTIME_ERROR
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:51
PV_STATUS_ACTIVATION_REFUSED
@ PV_STATUS_ACTIVATION_REFUSED
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:55
PV_STATUS_ACTIVATION_LIMIT_REACHED
@ PV_STATUS_ACTIVATION_LIMIT_REACHED
Definition: rhino/lib/ios/PvRhino.xcframework/ios-arm64_armv7/PvRhino.framework/Headers/picovoice.h:53


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