Build a Sample App with NCKit
Use this guide to create a new iOS app or integrate NCKit into an existing project.
Reference projectโ
| Item | Value |
|---|---|
| Repository | github.com/5Exceptions-Mobile-Team/NCKit_Demo |
| Xcode project | NCKitSample.xcodeproj |
| Scheme | NCKitSample |
| NCKit version | 1.2.1 (SPM) |
git clone https://github.com/5Exceptions-Mobile-Team/NCKit_Demo.git
cd NCKit_Demo/KrispyiOS
open NCKitSample.xcodeproj
The sample demonstrates microphone NC, video/file denoise, and in-app API snippets.
Verify importโ
import NCKit
Public API checklistโ
let modelURL = try NCKitModelLocator.modelTarGzURL()
let processor = try NCKitProcessor(modelURL: modelURL)
try NCKitFileProcessor.processFile(inputURL: in, outputURL: out, processor: processor)
Run on arm64 device or simulator (arm64 / x86_64 with NCKit 1.2.1+).
Use this guide to clone the reference Android app or integrate NCKit into your own project. This page documents everything the sample does with NCKit โ integration, usage, and SDK API mapping. Toggle Android in the navbar on other pages for matching Kotlin snippets.
Reference projectโ
| Item | Value |
|---|---|
| Repository | github.com/5Exceptions-Mobile-Team/Nckit_Android_Sample_App |
| Android Studio project | Open the repository root (Gradle project) |
| App module | app |
| NCKit dependency | implementation(libs.nckit) โ com.5exceptions:nckit:1.2.0 |
| SDK (private) | 5Exceptions-Mobile-Team/NCKit_Android |
git clone https://github.com/5Exceptions-Mobile-Team/Nckit_Android_Sample_App.git
cd Nckit_Android_Sample_App
Android Studio โ File โ Open โ select the cloned folder โ Sync Project with Gradle Files.
The sample demonstrates microphone NC, picked video, camera recording, and in-app API snippets (Audio ยท Video ยท Camera ยท How to Use).
Verify dependencyโ
import com.fiveexceptions.nckit.NCKitFileProcessor
import com.fiveexceptions.nckit.NCKitModelLocator
import com.fiveexceptions.nckit.NCKitProcessor
import com.fiveexceptions.nckit.NCKitVideoProcessor
gradle/libs.versions.toml defines the module, and the app applies it:
[versions]
nckit = "1.2.0"
[libraries]
nckit = { module = "com.5exceptions:nckit", version.ref = "nckit" }
dependencies {
implementation(libs.nckit)
}
See v1.2.0.
Public API checklistโ
val model = NCKitModelLocator.modelFile(context)
NCKitProcessor(model, attenLimDb = 100f, postFilterBeta = 0.02f).use { processor ->
NCKitFileProcessor.processFile(inputFile, outputWav, processor)
NCKitVideoProcessor.processVideo(videoFile, processor)
}
Run on API 26+ device or emulator (arm64-v8a or x86_64).
Coverage map (sample app โ SDK)โ
| Sample feature | Source file | NCKit SDK API | Docs |
|---|---|---|---|
| Maven dependency | gradle/libs.versions.toml, app/build.gradle.kts | implementation(libs.nckit) | Gradle (Android) |
| Load model | AudioEngine | NCKitModelLocator.modelFile | NCKitModelLocator |
| Create the engine | AudioEngine, CameraRecordingSession, VideoProcessor | NCKitProcessor(attenLimDb = 100f, postFilterBeta = 0.02f) | NCKitProcessor |
| Live mic | AudioEngine | NCKitStreamProcessor(processor, goldPolish = true), VOICE_RECOGNITION, drop frameLength * 3 | NCKitStreamProcessor |
| Bypass NC | AudioEngine.setNcEnabled | pass-through copy | How to Use |
| Record WAV | AudioEngine.stop() | stream hops plus WavWriter | How to Use |
| Pick a video | VideoProcessor | decodeToPcm, then addDenoisedTrack(rewriteAsMono48k = true) | NCKitVideoProcessor |
| Camera, after stop | CameraRecordingSession | addDenoisedTrack (rewriteAsMono48k stays false) | NCKitVideoProcessor |
| Camera, while recording | LiveVideoMux | NCKitStreamProcessor, then markAudioAlternates | NCKitVideoProcessor |
| Audio file to WAV | How to Use snippet | NCKitFileProcessor.processFile | NCKitFileProcessor |
| Optional loudness | How to Use snippet only | NCKitAudioNormalizer. The Gold paths do not call it | NCKitAudioNormalizer |
| Share and gallery save | FileProvider, VideoProcessor | app I/O and MediaStore | How to Use |
| In-app API cheatsheet | HowToUseScreen | public APIs, including video | How to Use |
| Typed errors | engines | NCKitException | NCKitError / NCKitException |
Run the sample appโ
1. Clone the repositoryโ
git clone https://github.com/5Exceptions-Mobile-Team/Nckit_Android_Sample_App.git
cd Nckit_Android_Sample_App
2. Open and syncโ
Android Studio โ File โ Open โ cloned Nckit_Android_Sample_App folder โ Sync Project with Gradle Files.
3. Runโ
- Device arm64-v8a recommended
- Emulator: arm64-v8a or x86_64
- Grant Microphone (Audio and Camera) and Camera
- Pick a video on the Video tab
Tabs: Audio ยท Video ยท Camera ยท How to Use.
Integration detailsโ
Full integration code moved to dedicated pages:
- Gradle (Android) โ Maven Central. The sample uses
implementation(libs.nckit) - How to Use โ file, live mic, and video paths
- NCKitVideoProcessor โ picked video and camera After stop