<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 10.0.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Speech",
  "identifier" : "/documentation/Speech/SFSpeechRecognitionRequest",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "c:objc(cs)SFSpeechRecognitionRequest"
  },
  "title" : "SFSpeechRecognitionRequest"
}
-->

# SFSpeechRecognitionRequest

An abstract class that represents a request to recognize speech from an audio source.

```
class SFSpeechRecognitionRequest
```

## Overview

Don’t create [`SFSpeechRecognitionRequest`](/documentation/Speech/SFSpeechRecognitionRequest) objects directly. Create an [`SFSpeechURLRecognitionRequest`](/documentation/Speech/SFSpeechURLRecognitionRequest) or [`SFSpeechAudioBufferRecognitionRequest`](/documentation/Speech/SFSpeechAudioBufferRecognitionRequest) object instead. Use the properties of this class to configure various aspects of your request object before you start the speech recognition process. For example, use the [`shouldReportPartialResults`](/documentation/Speech/SFSpeechRecognitionRequest/shouldReportPartialResults) property to specify whether you want partial results or only the final result of speech recognition.

## Topics

### Configuring a recognition request

[`requiresOnDeviceRecognition`](/documentation/Speech/SFSpeechRecognitionRequest/requiresOnDeviceRecognition)

A Boolean value that determines whether a request must keep its audio data on the device.

[`shouldReportPartialResults`](/documentation/Speech/SFSpeechRecognitionRequest/shouldReportPartialResults)

A Boolean value that indicates whether you want intermediate results returned for each utterance.

[`contextualStrings`](/documentation/Speech/SFSpeechRecognitionRequest/contextualStrings)

An array of phrases that should be recognized, even if they are not in the system vocabulary.

### Speech Type Classification

[`taskHint`](/documentation/Speech/SFSpeechRecognitionRequest/taskHint)

A value that indicates the type of speech recognition being performed.

[`SFSpeechRecognitionTaskHint`](/documentation/Speech/SFSpeechRecognitionTaskHint)

The type of task for which you are using speech recognition.

### Punctuation

[`addsPunctuation`](/documentation/Speech/SFSpeechRecognitionRequest/addsPunctuation)

A Boolean value that indicates whether to add punctuation to speech recognition results.

### Deprecated

[`interactionIdentifier`](/documentation/Speech/SFSpeechRecognitionRequest/interactionIdentifier)

An identifier string that you use to describe the type of interaction associated with the speech recognition request.

### Instance Properties

[`customizedLanguageModel`](/documentation/Speech/SFSpeechRecognitionRequest/customizedLanguageModel)



---

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)