Go to the source code of this file.
Functions | |
IMMERSITECH_API imm_cv_config | imm_cv_get_default_config () |
Return a default configuration object for initialization. More... | |
IMMERSITECH_API imm_cv_handle | imm_cv_init_from_file (const char *license_file_path, imm_cv_config config, imm_error_code *error_code) |
Initialize an instance of the Immersitech ClearVoice Library. More... | |
IMMERSITECH_API imm_cv_handle | imm_cv_init_from_memory (uint8_t *license_file_data, size_t license_file_data_size, imm_cv_config config, imm_error_code *error_code) |
Initialize an instance of the Immersitech ClearVoice Library. More... | |
IMMERSITECH_API imm_error_code | imm_cv_destroy (imm_cv_handle handle) |
Destroy an instance of the Immersitech ClearVoice Library. More... | |
IMMERSITECH_API imm_error_code | imm_cv_set_config (imm_cv_handle handle, imm_cv_mutable_config config, int val) |
Set a configuration value. More... | |
IMMERSITECH_API imm_error_code | imm_cv_get_config (imm_cv_handle handle, imm_cv_mutable_config config, int *val) |
Get a configuration value. More... | |
IMMERSITECH_API imm_error_code | imm_cv_process (imm_cv_handle handle, float *input, float *output, imm_cv_output_metadata *output_metadata) |
Process audio through the Immersitech ClearVoice Library. More... | |
IMMERSITECH_API imm_error_code | imm_cv_add_stream (imm_cv_handle handle, int *id) |
Add a stream for audio processing. More... | |
IMMERSITECH_API imm_error_code | imm_cv_destroy_stream (imm_cv_handle handle, int id) |
Destroy a previously created stream. More... | |
IMMERSITECH_API imm_error_code | imm_cv_process_stream (imm_cv_handle handle, int id, float *input, float *output, imm_cv_output_metadata *output_metadata) |
Process audio through the Immersitech ClearVoice Library. More... | |
IMMERSITECH_API imm_error_code | imm_cv_set_stream_config (imm_cv_handle handle, int id, imm_cv_mutable_config config, int val) |
Set a configuration value. More... | |
IMMERSITECH_API imm_error_code | imm_cv_get_stream_config (imm_cv_handle handle, int id, imm_cv_mutable_config config, int *val) |
Get a configuration value. More... | |
Data Structures | |
struct | imm_cv_config |
A structure containing all necessary configuration options to initialize ClearVoice. More... | |
struct | imm_cv_output_metadata |
A structure to return all extra data from the process function. More... | |
Enumerations | |
enum | imm_cv_anc_mode { IMM_CV_ANC_START , IMM_CV_ANC_OFF , IMM_CV_ANC_HIGH , IMM_CV_ANC_LOW , IMM_CV_ANC_END } |
The different operating modes of AI Noise Cancellation. More... | |
enum | imm_cv_vad_mode { IMM_CV_VAD_START , IMM_CV_VAD_FREQ_ANALYSIS , IMM_CV_VAD_FREQ_AND_AMPLITUDE_ANALYSIS , IMM_CV_VAD_END } |
The different operating modes of Voice Activity Detection. More... | |
enum | imm_cv_mutable_config { IMM_CV_MUT_CONF_START , IMM_CV_MUT_CONF_ANC_MODE , IMM_CV_MUT_CONF_AEQ_ENABLED , IMM_CV_MUT_CONF_AGC_ENABLED , IMM_CV_MUT_CONF_ANC_MIX , IMM_CV_MUT_CONF_BSD_LOW_VAD_THRESHOLD , IMM_CV_MUT_CONF_BSD_INACTIVE_SPEECH_COOLDOWN , IMM_CV_MUT_CONF_VAD_MODE , IMM_CV_MUT_CONF_END } |
The configurations of the ClearVoice library that can be changed after initialization. More... | |
Typedefs | |
typedef void * | imm_cv_handle |
IMMERSITECH_API imm_error_code imm_cv_add_stream | ( | imm_cv_handle | handle, |
int * | id | ||
) |
Add a stream for audio processing.
This function will only work if multistream_mode was set to true when ClearVoice was initialized.
[in] | handle | An imm_cv_handle to a ClearVoice instance |
[out] | id | An ID used to identify this stream in the future. |
IMMERSITECH_API imm_error_code imm_cv_destroy | ( | imm_cv_handle | handle | ) |
Destroy an instance of the Immersitech ClearVoice Library.
IMMERSITECH_API imm_error_code imm_cv_destroy_stream | ( | imm_cv_handle | handle, |
int | id | ||
) |
Destroy a previously created stream.
This function will only work if multistream_mode was set to true when ClearVoice was initialized. All new streams will take on the configuration settings used to initialize the library until changed with imm_cv_set_stream_config().
[in] | handle | An imm_cv_handle to a ClearVoice instance |
[in] | id | An ID previously returned from imm_cv_add_stream() |
IMMERSITECH_API imm_error_code imm_cv_get_config | ( | imm_cv_handle | handle, |
imm_cv_mutable_config | config, | ||
int * | val | ||
) |
Get a configuration value.
[in] | handle | An imm_cv_handle to a ClearVoice instance |
[in] | config | An imm_cv_mutable_config representing the configuration you'd like to get |
[out] | val | A pointer to the value you'd like to get |
IMMERSITECH_API imm_cv_config imm_cv_get_default_config | ( | ) |
Return a default configuration object for initialization.
IMMERSITECH_API imm_error_code imm_cv_get_stream_config | ( | imm_cv_handle | handle, |
int | id, | ||
imm_cv_mutable_config | config, | ||
int * | val | ||
) |
Get a configuration value.
This function will only work if multistream_mode was set to true when ClearVoice was initialized.
[in] | handle | An imm_cv_handle to a ClearVoice instance |
[in] | id | An ID representing which stream this configuration refers to |
[in] | config | An imm_cv_mutable_config representing the configuration you'd like to get |
[out] | val | A pointer to the value you'd like to get |
IMMERSITECH_API imm_cv_handle imm_cv_init_from_file | ( | const char * | license_file_path, |
imm_cv_config | config, | ||
imm_error_code * | error_code | ||
) |
Initialize an instance of the Immersitech ClearVoice Library.
[in] | license_file_path | The path to your Immersitech license file |
[in] | config | An imm_cv_config struct |
[out] | error_code | An imm_error_code representing if the call was a success or not |
IMMERSITECH_API imm_cv_handle imm_cv_init_from_memory | ( | uint8_t * | license_file_data, |
size_t | license_file_data_size, | ||
imm_cv_config | config, | ||
imm_error_code * | error_code | ||
) |
Initialize an instance of the Immersitech ClearVoice Library.
[in] | license_file_data | Immersitech license file data |
[in] | license_file_data_size | The size of the Immersitech license file data |
[in] | config | An imm_cv_config struct |
[out] | error_code | An imm_error_code representing if the call was a success or not |
IMMERSITECH_API imm_error_code imm_cv_process | ( | imm_cv_handle | handle, |
float * | input, | ||
float * | output, | ||
imm_cv_output_metadata * | output_metadata | ||
) |
Process audio through the Immersitech ClearVoice Library.
[in] | handle | An imm_cv_handle to a ClearVoice instance |
[in] | input | A pointer to your input audio data |
[out] | output | A pointer to your output audio data |
[out] | output_metadata | A pointer to an imm_cv_output_metadata struct, which will hold metadata about the output audio data |
IMMERSITECH_API imm_error_code imm_cv_process_stream | ( | imm_cv_handle | handle, |
int | id, | ||
float * | input, | ||
float * | output, | ||
imm_cv_output_metadata * | output_metadata | ||
) |
Process audio through the Immersitech ClearVoice Library.
This function will only work if multistream_mode was set to true when ClearVoice was initialized.
[in] | handle | An imm_cv_handle to a ClearVoice instance |
[in] | id | An ID representing which stream this audio data belongs to |
[in] | input | A pointer to your input audio data |
[out] | output | A pointer to your output audio data |
[out] | output_metadata | A pointer to an imm_cv_output_metadata struct, which will hold metadata about the output audio data |
IMMERSITECH_API imm_error_code imm_cv_set_config | ( | imm_cv_handle | handle, |
imm_cv_mutable_config | config, | ||
int | val | ||
) |
Set a configuration value.
[in] | handle | An imm_cv_handle to a ClearVoice instance |
[in] | config | An imm_cv_mutable_config representing the configuration you'd like to change |
[in] | val | The value you'd like to set the configuration to |
IMMERSITECH_API imm_error_code imm_cv_set_stream_config | ( | imm_cv_handle | handle, |
int | id, | ||
imm_cv_mutable_config | config, | ||
int | val | ||
) |
Set a configuration value.
This function will only work if multistream_mode was set to true when ClearVoice was initialized.
[in] | handle | An imm_cv_handle to a ClearVoice instance |
[in] | id | An ID representing which stream this configuration refers to |
[in] | config | An imm_cv_mutable_config representing the configuration you'd like to change |
[in] | val | The value you'd like to set the configuration to |
typedef void* imm_cv_handle |
enum imm_cv_anc_mode |
The configurations of the ClearVoice library that can be changed after initialization.
enum imm_cv_vad_mode |
The different operating modes of Voice Activity Detection.