<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRSpeechMetrics",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SRSpeechMetrics"
  },
  "title" : "SRSpeechMetrics"
}
-->

# SRSpeechMetrics

An object that represents metrics about a range of speech.

```
class SRSpeechMetrics
```

## Overview

To get the audio level, use the [`audioLevel`](/documentation/SensorKit/SRSpeechMetrics/audioLevel) property. Otherwise, use the [`speechRecognition`](/documentation/SensorKit/SRSpeechMetrics/speechRecognition), [`soundClassification`](/documentation/SensorKit/SRSpeechMetrics/soundClassification), and [`speechExpression`](/documentation/SensorKit/SRSpeechMetrics/speechExpression) properties to get characteristics of the speech.

The [`siriSpeechMetrics`](/documentation/SensorKit/SRSensor/siriSpeechMetrics) sensor provides this class as its [`sample`](/documentation/SensorKit/SRFetchResult/sample) type.

## Topics

### Getting session information

[`var sessionIdentifier: String`](/documentation/SensorKit/SRSpeechMetrics/sessionIdentifier)

An identifier for the audio session.

[`var sessionFlags: SRSpeechMetrics.SessionFlags`](/documentation/SensorKit/SRSpeechMetrics/sessionFlags-swift.property)

Details about the audio processing.

[`struct SessionFlags`](/documentation/SensorKit/SRSpeechMetrics/SessionFlags-swift.struct)

Possible details about processing an audio stream.

[`var timeSinceAudioStart: TimeInterval`](/documentation/SensorKit/SRSpeechMetrics/timeSinceAudioStart)

The number of seconds since the start of the audio stream.

[`var timestamp: Date`](/documentation/SensorKit/SRSpeechMetrics/timestamp)

The date and time when the speech occurs.

### Getting speech metrics and analytics

[`var audioLevel: SRAudioLevel?`](/documentation/SensorKit/SRSpeechMetrics/audioLevel)

The audio level of the speech.

[`class SRAudioLevel`](/documentation/SensorKit/SRAudioLevel)

An object that represents the audio level for a range of speech.

[`var speechRecognition: SFSpeechRecognitionResult?`](/documentation/SensorKit/SRSpeechMetrics/speechRecognition)

The partial or final results of the speech recognition request.

[`var soundClassification: SNClassificationResult?`](/documentation/SensorKit/SRSpeechMetrics/soundClassification)

The highest-ranking classifications in the time range.

[`var speechExpression: SRSpeechExpression?`](/documentation/SensorKit/SRSpeechMetrics/speechExpression)

The metrics and voice analytics for the range of speech.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Sendable`](/documentation/Swift/Sendable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)