---
title: SFSpeechRecognitionRequest
framework: speech
role: symbol
role_heading: Class
path: speech/sfspeechrecognitionrequest
---

# SFSpeechRecognitionRequest

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

## Declaration

```swift
class SFSpeechRecognitionRequest
```

## Overview

Overview Don’t create SFSpeechRecognitionRequest objects directly. Create an SFSpeechURLRecognitionRequest or 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 property to specify whether you want partial results or only the final result of speech recognition.

## Topics

### Configuring a recognition request

- [requiresOnDeviceRecognition](speech/sfspeechrecognitionrequest/requiresondevicerecognition.md)
- [shouldReportPartialResults](speech/sfspeechrecognitionrequest/shouldreportpartialresults.md)
- [contextualStrings](speech/sfspeechrecognitionrequest/contextualstrings.md)

### Speech Type Classification

- [taskHint](speech/sfspeechrecognitionrequest/taskhint.md)
- [SFSpeechRecognitionTaskHint](speech/sfspeechrecognitiontaskhint.md)

### Punctuation

- [addsPunctuation](speech/sfspeechrecognitionrequest/addspunctuation.md)

### Deprecated

- [interactionIdentifier](speech/sfspeechrecognitionrequest/interactionidentifier.md)

### Instance Properties

- [customizedLanguageModel](speech/sfspeechrecognitionrequest/customizedlanguagemodel.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [SFSpeechAudioBufferRecognitionRequest](speech/sfspeechaudiobufferrecognitionrequest.md)
- [SFSpeechURLRecognitionRequest](speech/sfspeechurlrecognitionrequest.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Audio sources

- [SFSpeechURLRecognitionRequest](speech/sfspeechurlrecognitionrequest.md)
- [SFSpeechAudioBufferRecognitionRequest](speech/sfspeechaudiobufferrecognitionrequest.md)
