/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace TranscribeService { namespace Model { /** *

Provides optional settings for the StartTranscriptionJob * operation.

See Also:

AWS * API Reference

*/ class AWS_TRANSCRIBESERVICE_API Settings { public: Settings(); Settings(Aws::Utils::Json::JsonView jsonValue); Settings& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of a vocabulary to use when processing the transcription job.

*/ inline const Aws::String& GetVocabularyName() const{ return m_vocabularyName; } /** *

The name of a vocabulary to use when processing the transcription job.

*/ inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; } /** *

The name of a vocabulary to use when processing the transcription job.

*/ inline void SetVocabularyName(const Aws::String& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = value; } /** *

The name of a vocabulary to use when processing the transcription job.

*/ inline void SetVocabularyName(Aws::String&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::move(value); } /** *

The name of a vocabulary to use when processing the transcription job.

*/ inline void SetVocabularyName(const char* value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName.assign(value); } /** *

The name of a vocabulary to use when processing the transcription job.

*/ inline Settings& WithVocabularyName(const Aws::String& value) { SetVocabularyName(value); return *this;} /** *

The name of a vocabulary to use when processing the transcription job.

*/ inline Settings& WithVocabularyName(Aws::String&& value) { SetVocabularyName(std::move(value)); return *this;} /** *

The name of a vocabulary to use when processing the transcription job.

*/ inline Settings& WithVocabularyName(const char* value) { SetVocabularyName(value); return *this;} /** *

Determines whether the transcription job uses speaker recognition to identify * different speakers in the input audio. Speaker recognition labels individual * speakers in the audio file. If you set the ShowSpeakerLabels field * to true, you must also set the maximum number of speaker labels * MaxSpeakerLabels field.

You can't set both * ShowSpeakerLabels and ChannelIdentification in the * same request. If you set both, your request returns a * BadRequestException.

*/ inline bool GetShowSpeakerLabels() const{ return m_showSpeakerLabels; } /** *

Determines whether the transcription job uses speaker recognition to identify * different speakers in the input audio. Speaker recognition labels individual * speakers in the audio file. If you set the ShowSpeakerLabels field * to true, you must also set the maximum number of speaker labels * MaxSpeakerLabels field.

You can't set both * ShowSpeakerLabels and ChannelIdentification in the * same request. If you set both, your request returns a * BadRequestException.

*/ inline bool ShowSpeakerLabelsHasBeenSet() const { return m_showSpeakerLabelsHasBeenSet; } /** *

Determines whether the transcription job uses speaker recognition to identify * different speakers in the input audio. Speaker recognition labels individual * speakers in the audio file. If you set the ShowSpeakerLabels field * to true, you must also set the maximum number of speaker labels * MaxSpeakerLabels field.

You can't set both * ShowSpeakerLabels and ChannelIdentification in the * same request. If you set both, your request returns a * BadRequestException.

*/ inline void SetShowSpeakerLabels(bool value) { m_showSpeakerLabelsHasBeenSet = true; m_showSpeakerLabels = value; } /** *

Determines whether the transcription job uses speaker recognition to identify * different speakers in the input audio. Speaker recognition labels individual * speakers in the audio file. If you set the ShowSpeakerLabels field * to true, you must also set the maximum number of speaker labels * MaxSpeakerLabels field.

You can't set both * ShowSpeakerLabels and ChannelIdentification in the * same request. If you set both, your request returns a * BadRequestException.

*/ inline Settings& WithShowSpeakerLabels(bool value) { SetShowSpeakerLabels(value); return *this;} /** *

The maximum number of speakers to identify in the input audio. If there are * more speakers in the audio than this number, multiple speakers are identified as * a single speaker. If you specify the MaxSpeakerLabels field, you * must set the ShowSpeakerLabels field to true.

*/ inline int GetMaxSpeakerLabels() const{ return m_maxSpeakerLabels; } /** *

The maximum number of speakers to identify in the input audio. If there are * more speakers in the audio than this number, multiple speakers are identified as * a single speaker. If you specify the MaxSpeakerLabels field, you * must set the ShowSpeakerLabels field to true.

*/ inline bool MaxSpeakerLabelsHasBeenSet() const { return m_maxSpeakerLabelsHasBeenSet; } /** *

The maximum number of speakers to identify in the input audio. If there are * more speakers in the audio than this number, multiple speakers are identified as * a single speaker. If you specify the MaxSpeakerLabels field, you * must set the ShowSpeakerLabels field to true.

*/ inline void SetMaxSpeakerLabels(int value) { m_maxSpeakerLabelsHasBeenSet = true; m_maxSpeakerLabels = value; } /** *

The maximum number of speakers to identify in the input audio. If there are * more speakers in the audio than this number, multiple speakers are identified as * a single speaker. If you specify the MaxSpeakerLabels field, you * must set the ShowSpeakerLabels field to true.

*/ inline Settings& WithMaxSpeakerLabels(int value) { SetMaxSpeakerLabels(value); return *this;} /** *

Instructs Amazon Transcribe to process each audio channel separately and then * merge the transcription output of each channel into a single transcription.

*

Amazon Transcribe also produces a transcription of each item detected on an * audio channel, including the start time and end time of the item and alternative * transcriptions of the item including the confidence that Amazon Transcribe has * in the transcription.

You can't set both ShowSpeakerLabels * and ChannelIdentification in the same request. If you set both, * your request returns a BadRequestException.

*/ inline bool GetChannelIdentification() const{ return m_channelIdentification; } /** *

Instructs Amazon Transcribe to process each audio channel separately and then * merge the transcription output of each channel into a single transcription.

*

Amazon Transcribe also produces a transcription of each item detected on an * audio channel, including the start time and end time of the item and alternative * transcriptions of the item including the confidence that Amazon Transcribe has * in the transcription.

You can't set both ShowSpeakerLabels * and ChannelIdentification in the same request. If you set both, * your request returns a BadRequestException.

*/ inline bool ChannelIdentificationHasBeenSet() const { return m_channelIdentificationHasBeenSet; } /** *

Instructs Amazon Transcribe to process each audio channel separately and then * merge the transcription output of each channel into a single transcription.

*

Amazon Transcribe also produces a transcription of each item detected on an * audio channel, including the start time and end time of the item and alternative * transcriptions of the item including the confidence that Amazon Transcribe has * in the transcription.

You can't set both ShowSpeakerLabels * and ChannelIdentification in the same request. If you set both, * your request returns a BadRequestException.

*/ inline void SetChannelIdentification(bool value) { m_channelIdentificationHasBeenSet = true; m_channelIdentification = value; } /** *

Instructs Amazon Transcribe to process each audio channel separately and then * merge the transcription output of each channel into a single transcription.

*

Amazon Transcribe also produces a transcription of each item detected on an * audio channel, including the start time and end time of the item and alternative * transcriptions of the item including the confidence that Amazon Transcribe has * in the transcription.

You can't set both ShowSpeakerLabels * and ChannelIdentification in the same request. If you set both, * your request returns a BadRequestException.

*/ inline Settings& WithChannelIdentification(bool value) { SetChannelIdentification(value); return *this;} /** *

Determines whether the transcription contains alternative transcriptions. If * you set the ShowAlternatives field to true, you must also set the * maximum number of alternatives to return in the MaxAlternatives * field.

*/ inline bool GetShowAlternatives() const{ return m_showAlternatives; } /** *

Determines whether the transcription contains alternative transcriptions. If * you set the ShowAlternatives field to true, you must also set the * maximum number of alternatives to return in the MaxAlternatives * field.

*/ inline bool ShowAlternativesHasBeenSet() const { return m_showAlternativesHasBeenSet; } /** *

Determines whether the transcription contains alternative transcriptions. If * you set the ShowAlternatives field to true, you must also set the * maximum number of alternatives to return in the MaxAlternatives * field.

*/ inline void SetShowAlternatives(bool value) { m_showAlternativesHasBeenSet = true; m_showAlternatives = value; } /** *

Determines whether the transcription contains alternative transcriptions. If * you set the ShowAlternatives field to true, you must also set the * maximum number of alternatives to return in the MaxAlternatives * field.

*/ inline Settings& WithShowAlternatives(bool value) { SetShowAlternatives(value); return *this;} /** *

The number of alternative transcriptions that the service should return. If * you specify the MaxAlternatives field, you must set the * ShowAlternatives field to true.

*/ inline int GetMaxAlternatives() const{ return m_maxAlternatives; } /** *

The number of alternative transcriptions that the service should return. If * you specify the MaxAlternatives field, you must set the * ShowAlternatives field to true.

*/ inline bool MaxAlternativesHasBeenSet() const { return m_maxAlternativesHasBeenSet; } /** *

The number of alternative transcriptions that the service should return. If * you specify the MaxAlternatives field, you must set the * ShowAlternatives field to true.

*/ inline void SetMaxAlternatives(int value) { m_maxAlternativesHasBeenSet = true; m_maxAlternatives = value; } /** *

The number of alternative transcriptions that the service should return. If * you specify the MaxAlternatives field, you must set the * ShowAlternatives field to true.

*/ inline Settings& WithMaxAlternatives(int value) { SetMaxAlternatives(value); return *this;} /** *

The name of the vocabulary filter to use when transcribing the audio. The * filter that you specify must have the same language code as the transcription * job.

*/ inline const Aws::String& GetVocabularyFilterName() const{ return m_vocabularyFilterName; } /** *

The name of the vocabulary filter to use when transcribing the audio. The * filter that you specify must have the same language code as the transcription * job.

*/ inline bool VocabularyFilterNameHasBeenSet() const { return m_vocabularyFilterNameHasBeenSet; } /** *

The name of the vocabulary filter to use when transcribing the audio. The * filter that you specify must have the same language code as the transcription * job.

*/ inline void SetVocabularyFilterName(const Aws::String& value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName = value; } /** *

The name of the vocabulary filter to use when transcribing the audio. The * filter that you specify must have the same language code as the transcription * job.

*/ inline void SetVocabularyFilterName(Aws::String&& value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName = std::move(value); } /** *

The name of the vocabulary filter to use when transcribing the audio. The * filter that you specify must have the same language code as the transcription * job.

*/ inline void SetVocabularyFilterName(const char* value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName.assign(value); } /** *

The name of the vocabulary filter to use when transcribing the audio. The * filter that you specify must have the same language code as the transcription * job.

*/ inline Settings& WithVocabularyFilterName(const Aws::String& value) { SetVocabularyFilterName(value); return *this;} /** *

The name of the vocabulary filter to use when transcribing the audio. The * filter that you specify must have the same language code as the transcription * job.

*/ inline Settings& WithVocabularyFilterName(Aws::String&& value) { SetVocabularyFilterName(std::move(value)); return *this;} /** *

The name of the vocabulary filter to use when transcribing the audio. The * filter that you specify must have the same language code as the transcription * job.

*/ inline Settings& WithVocabularyFilterName(const char* value) { SetVocabularyFilterName(value); return *this;} /** *

Set to mask to remove filtered text from the transcript and * replace it with three asterisks ("***") as placeholder text. Set to * remove to remove filtered text from the transcript without using * placeholder text.

*/ inline const VocabularyFilterMethod& GetVocabularyFilterMethod() const{ return m_vocabularyFilterMethod; } /** *

Set to mask to remove filtered text from the transcript and * replace it with three asterisks ("***") as placeholder text. Set to * remove to remove filtered text from the transcript without using * placeholder text.

*/ inline bool VocabularyFilterMethodHasBeenSet() const { return m_vocabularyFilterMethodHasBeenSet; } /** *

Set to mask to remove filtered text from the transcript and * replace it with three asterisks ("***") as placeholder text. Set to * remove to remove filtered text from the transcript without using * placeholder text.

*/ inline void SetVocabularyFilterMethod(const VocabularyFilterMethod& value) { m_vocabularyFilterMethodHasBeenSet = true; m_vocabularyFilterMethod = value; } /** *

Set to mask to remove filtered text from the transcript and * replace it with three asterisks ("***") as placeholder text. Set to * remove to remove filtered text from the transcript without using * placeholder text.

*/ inline void SetVocabularyFilterMethod(VocabularyFilterMethod&& value) { m_vocabularyFilterMethodHasBeenSet = true; m_vocabularyFilterMethod = std::move(value); } /** *

Set to mask to remove filtered text from the transcript and * replace it with three asterisks ("***") as placeholder text. Set to * remove to remove filtered text from the transcript without using * placeholder text.

*/ inline Settings& WithVocabularyFilterMethod(const VocabularyFilterMethod& value) { SetVocabularyFilterMethod(value); return *this;} /** *

Set to mask to remove filtered text from the transcript and * replace it with three asterisks ("***") as placeholder text. Set to * remove to remove filtered text from the transcript without using * placeholder text.

*/ inline Settings& WithVocabularyFilterMethod(VocabularyFilterMethod&& value) { SetVocabularyFilterMethod(std::move(value)); return *this;} private: Aws::String m_vocabularyName; bool m_vocabularyNameHasBeenSet; bool m_showSpeakerLabels; bool m_showSpeakerLabelsHasBeenSet; int m_maxSpeakerLabels; bool m_maxSpeakerLabelsHasBeenSet; bool m_channelIdentification; bool m_channelIdentificationHasBeenSet; bool m_showAlternatives; bool m_showAlternativesHasBeenSet; int m_maxAlternatives; bool m_maxAlternativesHasBeenSet; Aws::String m_vocabularyFilterName; bool m_vocabularyFilterNameHasBeenSet; VocabularyFilterMethod m_vocabularyFilterMethod; bool m_vocabularyFilterMethodHasBeenSet; }; } // namespace Model } // namespace TranscribeService } // namespace Aws