---
title: AttributeScopes.SpeechAttributes.TimeRangeAttribute
framework: foundation
role: symbol
role_heading: Structure
path: foundation/attributescopes/speechattributes/timerangeattribute
---

# AttributeScopes.SpeechAttributes.TimeRangeAttribute

The time range in the source audio corresponding to the associated transcription text.

## Declaration

```swift
struct TimeRangeAttribute
```

## Overview

Overview tip: Use rangeOfAudioTimeRangeAttributes(intersecting:) to locate text corresponding to a source audio time range.

## Relationships

### Conforms To

- [AttributedStringKey](foundation/attributedstringkey.md)
- [DecodableAttributedStringKey](foundation/decodableattributedstringkey.md)
- [EncodableAttributedStringKey](foundation/encodableattributedstringkey.md)
- [SendableMetatype](swift/sendablemetatype.md)
