Version 1.1.0
New Features
- Multi-channel analysis: Analyze two channels simultaneously using stereo audio. New
startDataSource(using:eventListeners:)/stopDataSource()methods separate the data source lifecycle from session lifecycles, with per-channel start viastartAnalysis(channel:config:at:tag:)and per-session stop viastopAnalysis(channel:at:). - Audio health monitoring: New
audioHealthStream: AsyncStream<AudioHealthUpdate>emits real-time audio input health status changes (.healthy,.flatline,.missingInput).AudioStatisticsandAudioHealthIntervalare included in the analysis result. - Session IDs on all public types:
Event,BreathingRate,SleepStageInterval,AudioClip, andAudioHealthUpdatenow include asessionId: UUIDproperty to identify which session they belong to.
API Changes
startAnalysis()now returns aUUIDidentifying the session.- Added
tag: String?parameter tostartAnalysis()for labeling sessions. AudioEventListener.onAudioAnalysisBatchCompleted()now includes asessionId: UUIDparameter.AnalysisResultnow includessleepStageIntervals,audioStatistics, andsessionIdproperties.- Added
multiChannelAnalysistoSleepAnalysisFeatures.