// // SFTranscriptionSegment.h // Copyright (c) 2016 Apple Inc. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN @class SFVoiceAnalytics; // Substrings of a hypothesized transcription API_AVAILABLE(ios(10.0), macos(10.15)) @interface SFTranscriptionSegment : NSObject @property (nonatomic, readonly, copy) NSString *substring; @property (nonatomic, readonly) NSRange substringRange; // Relative to start of audio @property (nonatomic, readonly) NSTimeInterval timestamp; @property (nonatomic, readonly) NSTimeInterval duration; // Confidence in the accuracy of transcription. Scale is 0 (least confident) to 1.0 (most confident) @property (nonatomic, readonly) float confidence; // Other possible interpretations of this segment @property (nonatomic, readonly) NSArray *alternativeSubstrings; @property (nonatomic, nullable, readonly) SFVoiceAnalytics *voiceAnalytics NS_DEPRECATED(10_15, 11_3, 13_0, 14_5, "voiceAnalytics is moved to SFSpeechRecognitionMetadata"); @end NS_ASSUME_NONNULL_END