Snore detection,
on device.
Add snore detection to your app with the C detector that powers Night & Air. Listen to two real recordings and see which sounds it picked up.
Offline inference·No API key required
Snoring recordings
0:00 / 0:30
Detected sound
- Sound intervals
- 8
- Detected sound
- 9.9 s
- Time in episode
- 26.6 s
0:00 / 0:30
Detected sound
- Sound intervals
- 8
- Detected sound
- 9.0 s
- Time in episode
- 29.6 s
Platform guides
Choose your platform.
Read the quickstartIntegration
From audio
to events.
Open a session, submit the completed recording parts, then read the event timeline. Your app owns capture, storage, and playback.
Explore the result fieldsimport NightAirSnore
let session = try SnoreSession()
try session.addPCMFile(at: recording, startFrame: 0)
let result = try session.finish()
print(result.detectedSoundSeconds)import com.nightandair.sdk.snore.SnoreSession
SnoreSession().use { session ->
session.addPcm(rate, 0L, monoPcm)
val result = session.finish()
println(result.detectedSoundSeconds)
}#include "nightair_snore.h"
na_session *session = NULL;
na_summary result = {0};
if (na_session_create(&session) == NA_OK &&
na_session_add_pcm(session, rate, 0, pcm, frames) == NA_OK &&
na_session_finish(session, &result) == NA_OK) {
// Read result.detected_sound_seconds here.
}
na_session_destroy(session);