One Logo Pool Ball
Speech · IOS API REFERENCE

AttributeScopes.SpeechAttributes.TimeRangeAttribute

struct · iOS 26.0+ · SDK 27.1

struct TimeRangeAttribute

The time range in the source audio corresponding to the associated transcription text. > Tip: Use ``Foundation/AttributedString/rangeOfAudioTimeRangeAttributes(intersecting:)`` to locate text corresponding to a source audio time range.

Members (3)

get · iOS 26.0+

name

TypeScript
static get nameValue(): string
Swift declaration
static let name: String

The name of the key.

static · iOS 26.0+

decode

TypeScript
static decode(decoder: SDKHandle): _CoreMedia_CMTimeRange
Swift declaration
static func decode(from decoder: any Decoder) throws -> AttributeScopes.SpeechAttributes.TimeRangeAttribute.Value

Decodes a value from the provided decoder. This method throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid. - Parameter decoder: The decoder to read data from. - Returns: The decoded value.

static · iOS 26.0+

encode

TypeScript
static encode(value: _CoreMedia_CMTimeRange, encoder: SDKHandle): void
Swift declaration
static func encode(_ value: AttributeScopes.SpeechAttributes.TimeRangeAttribute.Value, to encoder: any Encoder) throws

Encodes a value to the provided encoder. This method throws an error if writing to the encoder fails. - Parameters: - value: The value to encode. - encoder: The encoder to write data to.

Skipped declarations

No declarations were skipped in this snapshot.

All Speech types →