SoundAnalysis watchOS 7.4 to 8.0 API Differences

SNClassificationResult.h
Added -[SNClassificationResult classificationForIdentifier:]
Modified SNClassification.identifier
Declaration
From@property (readonly) NSString *identifier
To@property (readonly, copy) NSString *identifier

Modified SNClassification.confidence
Declaration
From@property (readonly) double confidence
To@property (readonly, assign) double confidence

Modified SNClassificationResult.classifications
Declaration
From@property (readonly) NSArray<SNClassification *> *classifications
To@property (readonly, copy) NSArray<SNClassification *> *classifications

SNClassifySoundRequest.h
Added SNClassifySoundRequest.windowDuration
Added SNClassifySoundRequest.windowDurationConstraint
Added SNClassifySoundRequest.knownClassifications
Added -[SNClassifySoundRequest initWithClassifierIdentifier:error:]
Modified SNClassifySoundRequest.overlapFactor
Declaration
From@property (readwrite) double overlapFactor
To@property (readwrite, assign) double overlapFactor

SNTimeDurationConstraint.h
Added SNTimeDurationConstraintType
Added SNTimeDurationConstraintTypeEnumerated
Added SNTimeDurationConstraintTypeRange
Added SNTimeDurationConstraint
Added SNTimeDurationConstraint.type
Added SNTimeDurationConstraint.enumeratedDurations
Added SNTimeDurationConstraint.durationRange
Added -[SNTimeDurationConstraint initWithEnumeratedDurations:]
Added -[SNTimeDurationConstraint initWithDurationRange:]
SNTypes.h
Added SNClassifierIdentifier
Added SNClassifierIdentifierVersion1