Go to the source code of this file.
◆ KRISP_AUDIO_API
◆ KrispAudioSessionID
◆ KrispAudioVersionInfo
◆ KrispAudioFrameDuration
Enumerator |
---|
KRISP_AUDIO_FRAME_DURATION_10MS | |
KRISP_AUDIO_FRAME_DURATION_20MS | |
KRISP_AUDIO_FRAME_DURATION_30MS | |
KRISP_AUDIO_FRAME_DURATION_40MS | |
◆ KrispAudioSamplingRate
Enumerator |
---|
KRISP_AUDIO_SAMPLING_RATE_8000HZ | |
KRISP_AUDIO_SAMPLING_RATE_16000HZ | |
KRISP_AUDIO_SAMPLING_RATE_32000HZ | |
KRISP_AUDIO_SAMPLING_RATE_44100HZ | |
KRISP_AUDIO_SAMPLING_RATE_48000HZ | |
KRISP_AUDIO_SAMPLING_RATE_88200HZ | |
KRISP_AUDIO_SAMPLING_RATE_96000HZ | |
◆ krispAudioGetFrameEnergyFloat()
KRISP_AUDIO_API unsigned int krispAudioGetFrameEnergyFloat |
( |
const float * |
pFrameIn, |
|
|
unsigned int |
frameInSize |
|
) |
| |
This function returns the energy amount for the given frame. Works with floats with values normalized in range [-1,1] Note: It may be used without initializing global SDK context by krispAudioGlobalInit()
- Parameters
-
[in] | pFrameIn | pFrameIn Pointer to input frame. |
[in] | frameInSize | This is buffer size. |
- Returns
- Value in range [0, 100].
◆ krispAudioGetFrameEnergyInt16()
KRISP_AUDIO_API unsigned int krispAudioGetFrameEnergyInt16 |
( |
const short * |
pFrameIn, |
|
|
unsigned int |
frameInSize |
|
) |
| |
This function returns the energy amount for the given frame. Works with shorts (int16) with value in range [-2^15+1, 2^15] Note: It may be used without initializing global SDK context by krispAudioGlobalInit()
- Parameters
-
[in] | pFrameIn | pFrameIn Pointer to input frame. |
[in] | frameInSize | This is buffer size. |
- Returns
- Value in range [0, 100].
◆ krispAudioGetVersion()
This function populates the versionInfo structure with API version information upon successful completion.
- Parameters
-
[in,out] | versionInfo | The structure that gets populated upon successful completion of this call. Contains major , minor , patch and build components. |
- Return values
-
0 | success, negative on error |
◆ krispAudioGlobalDestroy()
This function frees all global resources allocated by SDK. The session's data will also be released and can't be used in future.
- Return values
-
0 | success, negative on error |
◆ krispAudioGlobalInit()
This function initializes the global data needed for the SDK.
- Parameters
-
[in] | workingPath | The path to the working directory. Can be nullptr to have the default behavior. |
- Return values
-
0 | success, negative on error |
◆ krispAudioRemoveModel()
This function removes the Krisp model.
- Parameters
-
[in] | modelName | Model name alias that allows to remove model that has been set. |
- Return values
-
0 | success, negative on error |
◆ krispAudioSetModel()
KRISP_AUDIO_API int krispAudioSetModel |
( |
const wchar_t * |
weightFilePath, |
|
|
const char * |
modelName |
|
) |
| |
This function sets the Krisp model to be used. The weight file for provided model must exist. Several models can be set. The specified model is later tied to specific session during the session creation process.
- Parameters
-
[in] | weightFilePath | The Krisp model weight file associated with the model |
[in] | modelName | Model name alias that allows to later distinguish between different models that have been set by this function call |
- Return values
-
0 | success, negative on error |