Accent Conversion 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 ncModelInfo;
ncModelInfo.path = L"/path/to/the/ac-model.kef";
NcSessionConfig ncCfg =
{
inRate,
frameDurationMillis,
outRate,
&ncModelInfo,
false,
nullptr
};
std::shared_ptr<Nc<SamplingFormat>> ncSession = Nc<SamplingFormat>::create(ncCfg);
while(frameAvailable)
{
ncSession->process(inFrame, inFrameSize, outFrame, outFrameSize);
}
// ncSession object should be released before globalDestroy()
ncSession.reset();
globalDestroy();
}
catch(std::exception& ex)
{
// Handle exception
}Updated 19 days ago
