transcription
TypeScriptstatic get transcription(): SpeechTranscriber_PresetSwift declarationstatic let transcription: SpeechTranscriber.PresetConfiguration for basic, accurate transcription.
struct · iOS 26.0+ · SDK 27.1
struct PresetPredefined transcriber configurations. You can configure a transcriber with a preset, or modify the values of a preset's properties and configure a transcriber with the modified values. You can also create your own presets by extending this type. It is not necessary to use a preset at all; you can also use the transcriber's designated initializer to completely customize its configuration. This example configures a transcriber according to the `timeIndexedTranscriptionWithAlternatives` preset, but adds etiquette filtering and removes alternative transcriptions: ```swift let preset = SpeechTranscriber.Preset.timeIndexedTranscriptionWithAlternatives let transcriber = SpeechTranscriber( locale: Locale.current, transcriptionOptions: preset.transcriptionOptions.union([.etiquetteReplacements]) reportingOptions: preset.reportingOptions.subtracting([.alternativeTranscriptions]) attributeOptions: preset.attributeOptions ) ``` This table lists the presets and their configurations: Preset | [volatileResults](doc:ReportingOption/volatileResults) | [fastResults](doc:ReportingOption/fastResults) | [alternativeTranscriptions](doc:ReportingOption/alternativeTranscriptions) | [audioTimeRange](doc:ResultAttributeOption/audioTimeRange) --- | --- | --- | --- | --- `transcription` | No | No | No | No `transcriptionWithAlternatives` | No | No | **Yes** | No `timeIndexedTranscriptionWithAlternatives` | No | No | **Yes** | **Yes** `progressiveTranscription` | **Yes** | **Yes** | No | No `timeIndexedProgressiveTranscription` | **Yes** | **Yes** | No | **Yes**
static get transcription(): SpeechTranscriber_PresetSwift declarationstatic let transcription: SpeechTranscriber.PresetConfiguration for basic, accurate transcription.
get attributeOptions(): Array<SpeechTranscriber_ResultAttributeOption>Swift declarationvar attributeOptions: Set<SpeechTranscriber.ResultAttributeOption>Options relating to the attributes of the transcription appropriate for this preset.
set attributeOptions(value: Array<SpeechTranscriber_ResultAttributeOption>)Swift declarationvar attributeOptions: Set<SpeechTranscriber.ResultAttributeOption>Options relating to the attributes of the transcription appropriate for this preset.
get reportingOptions(): Array<SpeechTranscriber_ReportingOption>Swift declarationvar reportingOptions: Set<SpeechTranscriber.ReportingOption>Options relating to the transcriber's result delivery appropriate for this preset.
set reportingOptions(value: Array<SpeechTranscriber_ReportingOption>)Swift declarationvar reportingOptions: Set<SpeechTranscriber.ReportingOption>Options relating to the transcriber's result delivery appropriate for this preset.
static init(transcriptionOptions: Array<SpeechTranscriber_TranscriptionOption>, reportingOptions: Array<SpeechTranscriber_ReportingOption>, attributeOptions: Array<SpeechTranscriber_ResultAttributeOption>): SpeechTranscriber_PresetSwift declarationinit(transcriptionOptions: Set<SpeechTranscriber.TranscriptionOption>, reportingOptions: Set<SpeechTranscriber.ReportingOption>, attributeOptions: Set<SpeechTranscriber.ResultAttributeOption>)Creates a preset. - Parameters: - transcriptionOptions: A selection of options relating to the text of the transcription. - reportingOptions: A selection of options relating to the transcriber's result delivery. - attributeOptions: A selection of options relating to the attributes of the transcription.
get transcriptionOptions(): Array<SpeechTranscriber_TranscriptionOption>Swift declarationvar transcriptionOptions: Set<SpeechTranscriber.TranscriptionOption>Options relating to the text of the transcription appropriate for this preset.
set transcriptionOptions(value: Array<SpeechTranscriber_TranscriptionOption>)Swift declarationvar transcriptionOptions: Set<SpeechTranscriber.TranscriptionOption>Options relating to the text of the transcription appropriate for this preset.
static get progressiveTranscription(): SpeechTranscriber_PresetSwift declarationstatic let progressiveTranscription: SpeechTranscriber.PresetConfiguration for immediate transcription of live audio.
static get transcriptionWithAlternatives(): SpeechTranscriber_PresetSwift declarationstatic let transcriptionWithAlternatives: SpeechTranscriber.PresetConfiguration for transcription with editing suggestions.
static get timeIndexedProgressiveTranscription(): SpeechTranscriber_PresetSwift declarationstatic let timeIndexedProgressiveTranscription: SpeechTranscriber.PresetConfiguration for immediate transcription of live audio, cross-referenced to stream time-codes.
static get timeIndexedTranscriptionWithAlternatives(): SpeechTranscriber_PresetSwift declarationstatic let timeIndexedTranscriptionWithAlternatives: SpeechTranscriber.PresetConfiguration for transcription with editing suggestions, cross-referenced to source audio.
No declarations were skipped in this snapshot.