---
schema_version: "1"
id: 0fb30359b593ba87007a7729d5f35f269c1cba52652d06f574dcfe6136c47a3c
title: SpeechRecognizer
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/ios/speech-recognizer-ios.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/speech-recognizer-ios.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: a835a3bb9180e96f507de4656bbcb62f910c600c23a5123e31a1d5961f8f1751
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# SpeechRecognizer

## Overview

A helper for transcribing speech to text using SFSpeechRecognizer and AVAudioEngine.

## Declaration

```swift
actor SpeechRecognizer
```

## Properties

| Property   | Type                                   | Description                                                            |
| ---------- | -------------------------------------- | ---------------------------------------------------------------------- |
| `delegate` | `AgentforceSpeechTranscriberDelegate?` | The delegate that receives real-time updates during speech recognition |

## Methods

| Method              | Signature                                                   | Description                                                                |
| ------------------- | ----------------------------------------------------------- | -------------------------------------------------------------------------- |
| `startTranscribing` | `startTranscribing(completion: @escaping (Error?) -> Void)` | Starts the speech recognition session and begins listening for audio input |
| `stopTranscribing`  | `stopTranscribing()`                                        | Stops the current speech recognition session                               |
