SpeechTilesAndamento Docs
Get started
SDK Reference · Type

STMediaStopReadReason

Classifies why file/media reading stopped.

Declaration

public enum STMediaStopReadReason: String, Sendable {
    case unknown
    case ended
    case stopped
}

Overview

This value explains why an audio-file or media-reading operation ended. Use the reason to distinguish ordinary completion from an interruption or error when coordinating downstream playback or processing.

Cases

  • .unknown — The read operation ended for a reason that is not specified.
  • .ended — The read operation completed naturally, without an explicit stop requested by the application or framework.
  • .stopped — The read operation stopped before natural completion, either at the client’s request or internally when a configured stop condition was met. This does not necessarily indicate an error.

Swift example

let selection: STMediaStopReadReason = .unknown

See Also