---
updatedAt: 2026-10-09T20:37:33.000Z
agentTools:
  projectIndex: https://sdk-docs.krisp.ai/llms.txt
---

# Accent Conversion Server SDK

Run Krisp Accent Conversion on Linux servers with the Server SDK.

Accent Conversion Server SDK is designed to run on Linux servers.

The SDK comes with various language bindings such as Python, Node.js, Go, Rust.

You can also directly use the default C++ SDK.

The SDK runs your servers (CPU) and audio data never leaves your machines.

# Supported Platforms

* Linux (armv8a, x64)

## Code Snippet

```python
import krisp_audio

# initialize Krisp SDK global instance
krisp_audio.globalInit("")

ac_model_info = krisp_audio.ModelInfo()
ac_model_info.path = "/path/to/the/ac-model.kef"

# Create the Accent Conversion session with the specified configuration
ac_cfg = krisp_audio.NcSessionConfig()
ac_cfg.inputSampleRate = krisp_audio.SamplingRate.Sr16000Hz
ac_cfg.inputFrameDuration = krisp_audio.FrameDuration.Fd10ms
ac_cfg.outputSampleRate = krisp_audio.SamplingRate.Sr16000Hz
ac_cfg.modelInfo = ac_model_info
acFloat = krisp_audio.NcFloat.create(ac_cfg)

suppression_level = 100.0  # 0-100.0
# audio_frames: your 16 kHz mono audio split into 10 ms frames (160 samples each)
for frame in audio_frames:
    processed_frame = acFloat.process(frame, suppression_level)

# Free the session, then the Krisp SDK global instance
acFloat = None
krisp_audio.globalDestroy()
```
```cplusplus
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 should be released before globalDestroy()
    acSession.reset();
    globalDestroy();
}
catch(std::exception& ex)
{
  // Handle exception
}
```

# Sibling pages

* [Overview](https://sdk-docs.krisp.ai/docs/accent-conversion.md)
* [Accent Conversion Browser SDK](https://sdk-docs.krisp.ai/docs/rtc-accent-conversion-web-browser-sdk.md)
* [Accent Conversion Device SDK](https://sdk-docs.krisp.ai/docs/rtc-accent-conversion-device-sdk.md)