Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0 C libs #661

Merged
merged 4 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified demo/respeaker/pvrespeakerdemo/respeaker_raspberry-pi.rhn
Binary file not shown.
26 changes: 25 additions & 1 deletion sdk/c/include/picovoice.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018-2021 Picovoice Inc.
Copyright 2018-2023 Picovoice Inc.

You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
file accompanying this source.
Expand Down Expand Up @@ -53,6 +53,30 @@ typedef enum {
*/
PV_API const char *pv_status_to_string(pv_status_t status);

/**
* If a function returns a failure (any pv_status_t other than PV_STATUS_SUCCESS), this function can be called
* to get a series of error messages related to the failure. This function can only be called only once per
* failure status on another function. The memory for `message_stack` must be freed using `pv_free_error_stack`.
*
* Regardless of the return status of this function, if `message_stack` is not `NULL`, then `message_stack`
* contains valid memory. However, a failure status on this function indicates that future error messages
* may not be reported.
*
* @param[out] message_stack Array of messages relating to the failure. Messages are NULL terminated strings.
* The array and messages must be freed using `pv_free_error_stack`.
* @param[out] message_stack_depth The number of messages in the `message_stack` array.
*/
PV_API pv_status_t pv_get_error_stack(
char ***message_stack,
int32_t *message_stack_depth);

/**
* This function frees the memory used by error messages allocated by `pv_get_error_stack`.
*
* @param message_stack Array of messages relating to the failure, allocated from `pv_get_error_stack`.
*/
PV_API void pv_free_error_stack(char **message_stack);

#ifdef __cplusplus
}

Expand Down
2 changes: 1 addition & 1 deletion sdk/c/include/pv_picovoice.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2020-2022 Picovoice Inc.
Copyright 2020-2023 Picovoice Inc.

You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
file accompanying this source.
Expand Down
Binary file modified sdk/c/lib/beaglebone/libpicovoice.so
Binary file not shown.
Binary file modified sdk/c/lib/jetson/cortex-a57-aarch64/libpicovoice.so
Binary file not shown.
Binary file modified sdk/c/lib/linux/x86_64/libpicovoice.so
Binary file not shown.
Binary file modified sdk/c/lib/mac/arm64/libpicovoice.dylib
Binary file not shown.
Binary file modified sdk/c/lib/mac/x86_64/libpicovoice.dylib
Binary file not shown.
Binary file modified sdk/c/lib/raspberry-pi/arm11/libpicovoice.so
Binary file not shown.
Binary file modified sdk/c/lib/raspberry-pi/cortex-a53-aarch64/libpicovoice.so
Binary file not shown.
Binary file modified sdk/c/lib/raspberry-pi/cortex-a53/libpicovoice.so
Binary file not shown.
Binary file modified sdk/c/lib/raspberry-pi/cortex-a7/libpicovoice.so
Binary file not shown.
Binary file modified sdk/c/lib/raspberry-pi/cortex-a72-aarch64/libpicovoice.so
Binary file not shown.
Binary file modified sdk/c/lib/raspberry-pi/cortex-a72/libpicovoice.so
Binary file not shown.
Binary file modified sdk/c/lib/windows/amd64/libpicovoice.dll
Binary file not shown.
Loading