Class SFTranscriptionSegment

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class SFTranscriptionSegment
extends NSObject
implements NSSecureCoding
Since:
Available in iOS 10.0 and later.
  • Constructor Details

    • SFTranscriptionSegment

      public SFTranscriptionSegment()
    • SFTranscriptionSegment

      protected SFTranscriptionSegment​(NSObject.Handle h, long handle)
    • SFTranscriptionSegment

      protected SFTranscriptionSegment​(NSObject.SkipInit skipInit)
    • SFTranscriptionSegment

      public SFTranscriptionSegment​(NSCoder coder)
  • Method Details

    • getSubstring

      public String getSubstring()
    • getSubstringRange

      public NSRange getSubstringRange()
    • getTimestamp

      public double getTimestamp()
    • getDuration

      public double getDuration()
    • getConfidence

      public float getConfidence()
    • getAlternativeSubstrings

      public NSArray<NSString> getAlternativeSubstrings()
    • getVoiceAnalytics

      @Deprecated public SFVoiceAnalytics getVoiceAnalytics()
      Deprecated.
      Deprecated in iOS 14.5. voiceAnalytics is moved to SFSpeechRecognitionMetadata
      Since:
      Available in iOS 13.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)