Accent Conversion Device SDK
Integrate Krisp Accent Conversion into desktop and mobile apps with the Device SDK.
Accent Conversion (AC) Device SDK is designed to be integrated into Desktop and Mobile apps.
Supported Platforms
- Mac (armv8a, x64)
- Windows (armv8a, x64), (MT, MTd, MD, MDd)
- Linux (armv8a, x64)
- iOS
- Android
Code Snippet
try
{
globalInit(L"");
ModelInfo acModelInfo;
acModelInfo.path = L"/path/to/the/ac-model.kef";
NcSessionConfig acCfg =
{
inRate,
frameDurationMillis,
outRate,
&acModelInfo,
false,
nullptr
};
std::shared_ptr<Nc<SamplingFormat>> acSession = Nc<SamplingFormat>::create(acCfg);
while(frameAvailable)
{
acSession->process(inFrame, inFrameSize, outFrame, outFrameSize);
}
// acSession object should be released before globalDestroy()
acSession.reset();
globalDestroy();
}
catch(std::exception& ex)
{
// Handle exception
}Updated 11 days ago
Did this page help you?

