<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/Transcript/Response/init(id:assetIDs:segments:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels10TranscriptV8ResponseV2id8assetIDs8segmentsAESS_SaySSGSayAC7SegmentOGtcfc"
  },
  "title" : "init(id:assetIDs:segments:)"
}
-->

# init(id:assetIDs:segments:)

Creates a response that contains the segments you provide.

```
init(id: String = UUID().uuidString, assetIDs: [String], segments: [Transcript.Segment])
```

## Parameters

`id`

A unique identifier for the response.

`assetIDs`

A list of identifiers for the assets used to generate the response.

`segments`

The segments of the response, in order.

---

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)