<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Speech",
  "identifier" : "/documentation/Speech/SpeechDetector/init(detectionOptions:reportResults:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "s:6Speech0A8DetectorC16detectionOptions13reportResultsA2C09DetectionD0V_Sbtcfc"
  },
  "title" : "init(detectionOptions:reportResults:)"
}
-->

# init(detectionOptions:reportResults:)

Creates a speech detector.

```
init(detectionOptions: SpeechDetector.DetectionOptions, reportResults: Bool)
```

## Parameters

`detectionOptions`

Instance of [`SpeechDetector.DetectionOptions`](/documentation/Speech/SpeechDetector/DetectionOptions) that allows clients to customize the behavior of [`SpeechDetector`](/documentation/Speech/SpeechDetector) beyond its default settings.

`reportResults`

Enables the [`results`](/documentation/Speech/SpeechDetector/results) sequence to report the VAD model’s results (and any relevant errors) back to clients. The default behavior is that [`SpeechDetector`](/documentation/Speech/SpeechDetector) does not report results or errors back to the client and merely enables VAD as a power optimization.

---

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)