Krisp Audio SDK v6.0.0
Loading...
Searching...
No Matches
krisp-audio-sdk-nc.hpp
Go to the documentation of this file.
1
4
5#ifndef KRISP_AUDIO_SDK_NC_HPP_
6#define KRISP_AUDIO_SDK_NC_HPP_
7
8#include "krisp-audio-sdk.hpp"
9
10#ifdef __cplusplus
11extern "C" {
12#endif /* __cplusplus */
13
28 KrispAudioSamplingRate outputSampleRate,
29 KrispAudioFrameDuration frameDuration,
30 const char* modelName);
31
41
55 const short* pFrameIn,
56 unsigned int frameInSize,
57 short* pFrameOut,
58 unsigned int frameOutSize);
59
73krispAudioNcCleanAmbientNoiseWithRingtoneInt16(KrispAudioSessionID pSession,
74 const short* pFrameIn,
75 unsigned int frameInSize,
76 short* pFrameOut,
77 unsigned int frameOutSize,
78 bool ringtone);
79
93 const float* pFrameIn,
94 unsigned int frameInSize,
95 float* pFrameOut,
96 unsigned int frameOutSize);
97
111krispAudioNcCleanAmbientNoiseWithRingtoneFloat(KrispAudioSessionID pSession,
112 const float* pFrameIn,
113 unsigned int frameInSize,
114 float* pFrameOut,
115 unsigned int frameOutSize,
116 bool ringtone);
117
129krispAudioNcBackgroundSpeakerFixOnOff(KrispAudioSessionID pSession,
130 bool on);
131
132#ifdef __cplusplus
133}
134#endif /* __cplusplus */
135
136#endif
KRISP_AUDIO_API KrispAudioSessionID krispAudioNcCreateSession(KrispAudioSamplingRate inputSampleRate, KrispAudioSamplingRate outputSampleRate, KrispAudioFrameDuration frameDuration, const char *modelName)
This function creates Speech Enhance(Noise Canceler NC) session object.
KRISP_AUDIO_API int krispAudioNcCloseSession(KrispAudioSessionID pSession)
This function releases all data tied to this particular session, closes the given NC session.
KRISP_AUDIO_API int krispAudioNcCleanAmbientNoiseInt16(KrispAudioSessionID pSession, const short *pFrameIn, unsigned int frameInSize, short *pFrameOut, unsigned int frameOutSize)
This function cleans the ambient noise for the given single frame. Works with shorts (int16) with val...
KRISP_AUDIO_API int krispAudioNcCleanAmbientNoiseFloat(KrispAudioSessionID pSession, const float *pFrameIn, unsigned int frameInSize, float *pFrameOut, unsigned int frameOutSize)
This function cleans the ambient noise for the given single frame. Works with floats with values norm...
#define KRISP_AUDIO_API
Definition: krisp-audio-sdk.hpp:29
KrispAudioSamplingRate
Definition: krisp-audio-sdk.hpp:35
void * KrispAudioSessionID
Definition: krisp-audio-sdk.hpp:33
KrispAudioFrameDuration
Definition: krisp-audio-sdk.hpp:45