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

Optional settings for the StartMedicalTranscriptionJob * operation.

See Also:

AWS * API Reference

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

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 in the * 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 in the * 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 in the * 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 in the * MaxSpeakerLabels field.

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

*/ inline MedicalTranscriptionSetting& 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 MedicalTranscriptionSetting& WithMaxSpeakerLabels(int value) { SetMaxSpeakerLabels(value); return *this;} /** *

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

Amazon Transcribe Medical 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 item. The alternative transcriptions * also come with confidence scores provided by Amazon Transcribe Medical.

*

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 Medical to process each audio channel separately * and then merge the transcription output of each channel into a single * transcription.

Amazon Transcribe Medical 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 item. The alternative transcriptions * also come with confidence scores provided by Amazon Transcribe Medical.

*

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 Medical to process each audio channel separately * and then merge the transcription output of each channel into a single * transcription.

Amazon Transcribe Medical 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 item. The alternative transcriptions * also come with confidence scores provided by Amazon Transcribe Medical.

*

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 Medical to process each audio channel separately * and then merge the transcription output of each channel into a single * transcription.

Amazon Transcribe Medical 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 item. The alternative transcriptions * also come with confidence scores provided by Amazon Transcribe Medical.

*

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

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

Determines whether alternative transcripts are generated along with the * transcript that has the highest confidence. If you set * 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 alternative transcripts are generated along with the * transcript that has the highest confidence. If you set * 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 alternative transcripts are generated along with the * transcript that has the highest confidence. If you set * 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 alternative transcripts are generated along with the * transcript that has the highest confidence. If you set * ShowAlternatives field to true, you must also set the maximum * number of alternatives to return in the MaxAlternatives field.

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

The maximum number of alternatives that you tell the service to return. If * you specify the MaxAlternatives field, you must set the * ShowAlternatives field to true.

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

The maximum number of alternatives that you tell the service to return. If * you specify the MaxAlternatives field, you must set the * ShowAlternatives field to true.

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

The maximum number of alternatives that you tell the service to 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 maximum number of alternatives that you tell the service to return. If * you specify the MaxAlternatives field, you must set the * ShowAlternatives field to true.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline MedicalTranscriptionSetting& WithVocabularyName(const char* value) { SetVocabularyName(value); return *this;} private: 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_vocabularyName; bool m_vocabularyNameHasBeenSet; }; } // namespace Model } // namespace TranscribeService } // namespace Aws