<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLSoundClassifier/FeatureExtractionParameters/init(overlapFactor:featureExtractor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML17MLSoundClassifierV27FeatureExtractionParametersV13overlapFactor16featureExtractorAESd_AC05ModelG0V0eK4TypeOtcfc"
  },
  "title" : "init(overlapFactor:featureExtractor:)"
}
-->

# init(overlapFactor:featureExtractor:)

Creates the parameters for a feature-extraction session with a default time window size.

```
init(overlapFactor: Double = __Defaults.overlapFactor, featureExtractor: MLSoundClassifier.ModelParameters.FeatureExtractorType = __Defaults.featureExtractor)
```

## Parameters

`overlapFactor`

A portion of overlap between consecutive audio analysis windows. The value must be in
the range `[0.0, 1.0)`.

`featureExtractor`

An algorithm type the session uses to extract features from audio files.

## Discussion

The initializer sets [`featureExtractionTimeWindowSize`](/documentation/CreateML/MLSoundClassifier/FeatureExtractionParameters/featureExtractionTimeWindowSize) to a
default value.

---

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)