411 lines
19 KiB
C++
411 lines
19 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/transcribe/TranscribeService_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/transcribe/model/VocabularyFilterMethod.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace TranscribeService
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Provides optional settings for the <code>StartTranscriptionJob</code>
|
|
* operation.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/Settings">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
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;
|
|
|
|
|
|
/**
|
|
* <p>The name of a vocabulary to use when processing the transcription job.</p>
|
|
*/
|
|
inline const Aws::String& GetVocabularyName() const{ return m_vocabularyName; }
|
|
|
|
/**
|
|
* <p>The name of a vocabulary to use when processing the transcription job.</p>
|
|
*/
|
|
inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of a vocabulary to use when processing the transcription job.</p>
|
|
*/
|
|
inline void SetVocabularyName(const Aws::String& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = value; }
|
|
|
|
/**
|
|
* <p>The name of a vocabulary to use when processing the transcription job.</p>
|
|
*/
|
|
inline void SetVocabularyName(Aws::String&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of a vocabulary to use when processing the transcription job.</p>
|
|
*/
|
|
inline void SetVocabularyName(const char* value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of a vocabulary to use when processing the transcription job.</p>
|
|
*/
|
|
inline Settings& WithVocabularyName(const Aws::String& value) { SetVocabularyName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of a vocabulary to use when processing the transcription job.</p>
|
|
*/
|
|
inline Settings& WithVocabularyName(Aws::String&& value) { SetVocabularyName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of a vocabulary to use when processing the transcription job.</p>
|
|
*/
|
|
inline Settings& WithVocabularyName(const char* value) { SetVocabularyName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>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 <code>ShowSpeakerLabels</code> field
|
|
* to true, you must also set the maximum number of speaker labels
|
|
* <code>MaxSpeakerLabels</code> field.</p> <p>You can't set both
|
|
* <code>ShowSpeakerLabels</code> and <code>ChannelIdentification</code> in the
|
|
* same request. If you set both, your request returns a
|
|
* <code>BadRequestException</code>.</p>
|
|
*/
|
|
inline bool GetShowSpeakerLabels() const{ return m_showSpeakerLabels; }
|
|
|
|
/**
|
|
* <p>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 <code>ShowSpeakerLabels</code> field
|
|
* to true, you must also set the maximum number of speaker labels
|
|
* <code>MaxSpeakerLabels</code> field.</p> <p>You can't set both
|
|
* <code>ShowSpeakerLabels</code> and <code>ChannelIdentification</code> in the
|
|
* same request. If you set both, your request returns a
|
|
* <code>BadRequestException</code>.</p>
|
|
*/
|
|
inline bool ShowSpeakerLabelsHasBeenSet() const { return m_showSpeakerLabelsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>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 <code>ShowSpeakerLabels</code> field
|
|
* to true, you must also set the maximum number of speaker labels
|
|
* <code>MaxSpeakerLabels</code> field.</p> <p>You can't set both
|
|
* <code>ShowSpeakerLabels</code> and <code>ChannelIdentification</code> in the
|
|
* same request. If you set both, your request returns a
|
|
* <code>BadRequestException</code>.</p>
|
|
*/
|
|
inline void SetShowSpeakerLabels(bool value) { m_showSpeakerLabelsHasBeenSet = true; m_showSpeakerLabels = value; }
|
|
|
|
/**
|
|
* <p>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 <code>ShowSpeakerLabels</code> field
|
|
* to true, you must also set the maximum number of speaker labels
|
|
* <code>MaxSpeakerLabels</code> field.</p> <p>You can't set both
|
|
* <code>ShowSpeakerLabels</code> and <code>ChannelIdentification</code> in the
|
|
* same request. If you set both, your request returns a
|
|
* <code>BadRequestException</code>.</p>
|
|
*/
|
|
inline Settings& WithShowSpeakerLabels(bool value) { SetShowSpeakerLabels(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>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 <code>MaxSpeakerLabels</code> field, you
|
|
* must set the <code>ShowSpeakerLabels</code> field to true.</p>
|
|
*/
|
|
inline int GetMaxSpeakerLabels() const{ return m_maxSpeakerLabels; }
|
|
|
|
/**
|
|
* <p>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 <code>MaxSpeakerLabels</code> field, you
|
|
* must set the <code>ShowSpeakerLabels</code> field to true.</p>
|
|
*/
|
|
inline bool MaxSpeakerLabelsHasBeenSet() const { return m_maxSpeakerLabelsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>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 <code>MaxSpeakerLabels</code> field, you
|
|
* must set the <code>ShowSpeakerLabels</code> field to true.</p>
|
|
*/
|
|
inline void SetMaxSpeakerLabels(int value) { m_maxSpeakerLabelsHasBeenSet = true; m_maxSpeakerLabels = value; }
|
|
|
|
/**
|
|
* <p>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 <code>MaxSpeakerLabels</code> field, you
|
|
* must set the <code>ShowSpeakerLabels</code> field to true.</p>
|
|
*/
|
|
inline Settings& WithMaxSpeakerLabels(int value) { SetMaxSpeakerLabels(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Instructs Amazon Transcribe to process each audio channel separately and then
|
|
* merge the transcription output of each channel into a single transcription. </p>
|
|
* <p>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.</p> <p>You can't set both <code>ShowSpeakerLabels</code>
|
|
* and <code>ChannelIdentification</code> in the same request. If you set both,
|
|
* your request returns a <code>BadRequestException</code>.</p>
|
|
*/
|
|
inline bool GetChannelIdentification() const{ return m_channelIdentification; }
|
|
|
|
/**
|
|
* <p>Instructs Amazon Transcribe to process each audio channel separately and then
|
|
* merge the transcription output of each channel into a single transcription. </p>
|
|
* <p>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.</p> <p>You can't set both <code>ShowSpeakerLabels</code>
|
|
* and <code>ChannelIdentification</code> in the same request. If you set both,
|
|
* your request returns a <code>BadRequestException</code>.</p>
|
|
*/
|
|
inline bool ChannelIdentificationHasBeenSet() const { return m_channelIdentificationHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Instructs Amazon Transcribe to process each audio channel separately and then
|
|
* merge the transcription output of each channel into a single transcription. </p>
|
|
* <p>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.</p> <p>You can't set both <code>ShowSpeakerLabels</code>
|
|
* and <code>ChannelIdentification</code> in the same request. If you set both,
|
|
* your request returns a <code>BadRequestException</code>.</p>
|
|
*/
|
|
inline void SetChannelIdentification(bool value) { m_channelIdentificationHasBeenSet = true; m_channelIdentification = value; }
|
|
|
|
/**
|
|
* <p>Instructs Amazon Transcribe to process each audio channel separately and then
|
|
* merge the transcription output of each channel into a single transcription. </p>
|
|
* <p>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.</p> <p>You can't set both <code>ShowSpeakerLabels</code>
|
|
* and <code>ChannelIdentification</code> in the same request. If you set both,
|
|
* your request returns a <code>BadRequestException</code>.</p>
|
|
*/
|
|
inline Settings& WithChannelIdentification(bool value) { SetChannelIdentification(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Determines whether the transcription contains alternative transcriptions. If
|
|
* you set the <code>ShowAlternatives</code> field to true, you must also set the
|
|
* maximum number of alternatives to return in the <code>MaxAlternatives</code>
|
|
* field.</p>
|
|
*/
|
|
inline bool GetShowAlternatives() const{ return m_showAlternatives; }
|
|
|
|
/**
|
|
* <p>Determines whether the transcription contains alternative transcriptions. If
|
|
* you set the <code>ShowAlternatives</code> field to true, you must also set the
|
|
* maximum number of alternatives to return in the <code>MaxAlternatives</code>
|
|
* field.</p>
|
|
*/
|
|
inline bool ShowAlternativesHasBeenSet() const { return m_showAlternativesHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Determines whether the transcription contains alternative transcriptions. If
|
|
* you set the <code>ShowAlternatives</code> field to true, you must also set the
|
|
* maximum number of alternatives to return in the <code>MaxAlternatives</code>
|
|
* field.</p>
|
|
*/
|
|
inline void SetShowAlternatives(bool value) { m_showAlternativesHasBeenSet = true; m_showAlternatives = value; }
|
|
|
|
/**
|
|
* <p>Determines whether the transcription contains alternative transcriptions. If
|
|
* you set the <code>ShowAlternatives</code> field to true, you must also set the
|
|
* maximum number of alternatives to return in the <code>MaxAlternatives</code>
|
|
* field.</p>
|
|
*/
|
|
inline Settings& WithShowAlternatives(bool value) { SetShowAlternatives(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The number of alternative transcriptions that the service should return. If
|
|
* you specify the <code>MaxAlternatives</code> field, you must set the
|
|
* <code>ShowAlternatives</code> field to true.</p>
|
|
*/
|
|
inline int GetMaxAlternatives() const{ return m_maxAlternatives; }
|
|
|
|
/**
|
|
* <p>The number of alternative transcriptions that the service should return. If
|
|
* you specify the <code>MaxAlternatives</code> field, you must set the
|
|
* <code>ShowAlternatives</code> field to true.</p>
|
|
*/
|
|
inline bool MaxAlternativesHasBeenSet() const { return m_maxAlternativesHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The number of alternative transcriptions that the service should return. If
|
|
* you specify the <code>MaxAlternatives</code> field, you must set the
|
|
* <code>ShowAlternatives</code> field to true.</p>
|
|
*/
|
|
inline void SetMaxAlternatives(int value) { m_maxAlternativesHasBeenSet = true; m_maxAlternatives = value; }
|
|
|
|
/**
|
|
* <p>The number of alternative transcriptions that the service should return. If
|
|
* you specify the <code>MaxAlternatives</code> field, you must set the
|
|
* <code>ShowAlternatives</code> field to true.</p>
|
|
*/
|
|
inline Settings& WithMaxAlternatives(int value) { SetMaxAlternatives(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline const Aws::String& GetVocabularyFilterName() const{ return m_vocabularyFilterName; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline bool VocabularyFilterNameHasBeenSet() const { return m_vocabularyFilterNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetVocabularyFilterName(const Aws::String& value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName = value; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetVocabularyFilterName(Aws::String&& value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName = std::move(value); }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetVocabularyFilterName(const char* value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName.assign(value); }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline Settings& WithVocabularyFilterName(const Aws::String& value) { SetVocabularyFilterName(value); return *this;}
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline Settings& WithVocabularyFilterName(Aws::String&& value) { SetVocabularyFilterName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline Settings& WithVocabularyFilterName(const char* value) { SetVocabularyFilterName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Set to <code>mask</code> to remove filtered text from the transcript and
|
|
* replace it with three asterisks ("***") as placeholder text. Set to
|
|
* <code>remove</code> to remove filtered text from the transcript without using
|
|
* placeholder text.</p>
|
|
*/
|
|
inline const VocabularyFilterMethod& GetVocabularyFilterMethod() const{ return m_vocabularyFilterMethod; }
|
|
|
|
/**
|
|
* <p>Set to <code>mask</code> to remove filtered text from the transcript and
|
|
* replace it with three asterisks ("***") as placeholder text. Set to
|
|
* <code>remove</code> to remove filtered text from the transcript without using
|
|
* placeholder text.</p>
|
|
*/
|
|
inline bool VocabularyFilterMethodHasBeenSet() const { return m_vocabularyFilterMethodHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Set to <code>mask</code> to remove filtered text from the transcript and
|
|
* replace it with three asterisks ("***") as placeholder text. Set to
|
|
* <code>remove</code> to remove filtered text from the transcript without using
|
|
* placeholder text.</p>
|
|
*/
|
|
inline void SetVocabularyFilterMethod(const VocabularyFilterMethod& value) { m_vocabularyFilterMethodHasBeenSet = true; m_vocabularyFilterMethod = value; }
|
|
|
|
/**
|
|
* <p>Set to <code>mask</code> to remove filtered text from the transcript and
|
|
* replace it with three asterisks ("***") as placeholder text. Set to
|
|
* <code>remove</code> to remove filtered text from the transcript without using
|
|
* placeholder text.</p>
|
|
*/
|
|
inline void SetVocabularyFilterMethod(VocabularyFilterMethod&& value) { m_vocabularyFilterMethodHasBeenSet = true; m_vocabularyFilterMethod = std::move(value); }
|
|
|
|
/**
|
|
* <p>Set to <code>mask</code> to remove filtered text from the transcript and
|
|
* replace it with three asterisks ("***") as placeholder text. Set to
|
|
* <code>remove</code> to remove filtered text from the transcript without using
|
|
* placeholder text.</p>
|
|
*/
|
|
inline Settings& WithVocabularyFilterMethod(const VocabularyFilterMethod& value) { SetVocabularyFilterMethod(value); return *this;}
|
|
|
|
/**
|
|
* <p>Set to <code>mask</code> to remove filtered text from the transcript and
|
|
* replace it with three asterisks ("***") as placeholder text. Set to
|
|
* <code>remove</code> to remove filtered text from the transcript without using
|
|
* placeholder text.</p>
|
|
*/
|
|
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
|