---
title: "init(priority:modelRetention:ignoresResourceLimits:)"
framework: speech
role: symbol
role_heading: Initializer
path: "speech/speechanalyzer/options/init(priority:modelretention:ignoresresourcelimits:)"
---

# init(priority:modelRetention:ignoresResourceLimits:)

Creates a structure containing analysis processing options.

## Declaration

```swift
init(priority: TaskPriority, modelRetention: SpeechAnalyzer.Options.ModelRetention, ignoresResourceLimits: Bool)
```

## Parameters

- `priority`: A priority to apply to processing work.
- `modelRetention`: A model caching strategy.
- `ignoresResourceLimits`: If true, the analyzer and its modules’ resources will not be counted against the predefined system resource limits.

## Discussion

Discussion warning: When setting ignoresResourceLimits to true, test your app on a variety of devices under a variety of scenarios to experimentally determine how many analyzers you can reliably create and expect to function. Consider how to recover in the event one or more analyzers fail.

## See Also

### Creating an options object

- [init(priority:modelRetention:)](speech/speechanalyzer/options/init(priority:modelretention:).md)
- [SpeechAnalyzer.Options.ModelRetention](speech/speechanalyzer/options/modelretention-swift.enum.md)
