/** * 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 TranscribeStreamingService { namespace Model { /** *

A word or phrase transcribed from the input audio.

See Also:

* AWS * API Reference

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

The offset from the beginning of the audio stream to the beginning of the * audio that resulted in the item.

*/ inline double GetStartTime() const{ return m_startTime; } /** *

The offset from the beginning of the audio stream to the beginning of the * audio that resulted in the item.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The offset from the beginning of the audio stream to the beginning of the * audio that resulted in the item.

*/ inline void SetStartTime(double value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The offset from the beginning of the audio stream to the beginning of the * audio that resulted in the item.

*/ inline Item& WithStartTime(double value) { SetStartTime(value); return *this;} /** *

The offset from the beginning of the audio stream to the end of the audio * that resulted in the item.

*/ inline double GetEndTime() const{ return m_endTime; } /** *

The offset from the beginning of the audio stream to the end of the audio * that resulted in the item.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The offset from the beginning of the audio stream to the end of the audio * that resulted in the item.

*/ inline void SetEndTime(double value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The offset from the beginning of the audio stream to the end of the audio * that resulted in the item.

*/ inline Item& WithEndTime(double value) { SetEndTime(value); return *this;} /** *

The type of the item. PRONUNCIATION indicates that the item is a * word that was recognized in the input audio. PUNCTUATION indicates * that the item was interpreted as a pause in the input audio.

*/ inline const ItemType& GetType() const{ return m_type; } /** *

The type of the item. PRONUNCIATION indicates that the item is a * word that was recognized in the input audio. PUNCTUATION indicates * that the item was interpreted as a pause in the input audio.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the item. PRONUNCIATION indicates that the item is a * word that was recognized in the input audio. PUNCTUATION indicates * that the item was interpreted as a pause in the input audio.

*/ inline void SetType(const ItemType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the item. PRONUNCIATION indicates that the item is a * word that was recognized in the input audio. PUNCTUATION indicates * that the item was interpreted as a pause in the input audio.

*/ inline void SetType(ItemType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the item. PRONUNCIATION indicates that the item is a * word that was recognized in the input audio. PUNCTUATION indicates * that the item was interpreted as a pause in the input audio.

*/ inline Item& WithType(const ItemType& value) { SetType(value); return *this;} /** *

The type of the item. PRONUNCIATION indicates that the item is a * word that was recognized in the input audio. PUNCTUATION indicates * that the item was interpreted as a pause in the input audio.

*/ inline Item& WithType(ItemType&& value) { SetType(std::move(value)); return *this;} /** *

The word or punctuation that was recognized in the input audio.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

The word or punctuation that was recognized in the input audio.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The word or punctuation that was recognized in the input audio.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The word or punctuation that was recognized in the input audio.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The word or punctuation that was recognized in the input audio.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

The word or punctuation that was recognized in the input audio.

*/ inline Item& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

The word or punctuation that was recognized in the input audio.

*/ inline Item& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

The word or punctuation that was recognized in the input audio.

*/ inline Item& WithContent(const char* value) { SetContent(value); return *this;} /** *

Indicates whether a word in the item matches a word in the vocabulary filter * you've chosen for your real-time stream. If true then a word in the * item matches your vocabulary filter.

*/ inline bool GetVocabularyFilterMatch() const{ return m_vocabularyFilterMatch; } /** *

Indicates whether a word in the item matches a word in the vocabulary filter * you've chosen for your real-time stream. If true then a word in the * item matches your vocabulary filter.

*/ inline bool VocabularyFilterMatchHasBeenSet() const { return m_vocabularyFilterMatchHasBeenSet; } /** *

Indicates whether a word in the item matches a word in the vocabulary filter * you've chosen for your real-time stream. If true then a word in the * item matches your vocabulary filter.

*/ inline void SetVocabularyFilterMatch(bool value) { m_vocabularyFilterMatchHasBeenSet = true; m_vocabularyFilterMatch = value; } /** *

Indicates whether a word in the item matches a word in the vocabulary filter * you've chosen for your real-time stream. If true then a word in the * item matches your vocabulary filter.

*/ inline Item& WithVocabularyFilterMatch(bool value) { SetVocabularyFilterMatch(value); return *this;} /** *

If speaker identification is enabled, shows the speakers identified in the * real-time stream.

*/ inline const Aws::String& GetSpeaker() const{ return m_speaker; } /** *

If speaker identification is enabled, shows the speakers identified in the * real-time stream.

*/ inline bool SpeakerHasBeenSet() const { return m_speakerHasBeenSet; } /** *

If speaker identification is enabled, shows the speakers identified in the * real-time stream.

*/ inline void SetSpeaker(const Aws::String& value) { m_speakerHasBeenSet = true; m_speaker = value; } /** *

If speaker identification is enabled, shows the speakers identified in the * real-time stream.

*/ inline void SetSpeaker(Aws::String&& value) { m_speakerHasBeenSet = true; m_speaker = std::move(value); } /** *

If speaker identification is enabled, shows the speakers identified in the * real-time stream.

*/ inline void SetSpeaker(const char* value) { m_speakerHasBeenSet = true; m_speaker.assign(value); } /** *

If speaker identification is enabled, shows the speakers identified in the * real-time stream.

*/ inline Item& WithSpeaker(const Aws::String& value) { SetSpeaker(value); return *this;} /** *

If speaker identification is enabled, shows the speakers identified in the * real-time stream.

*/ inline Item& WithSpeaker(Aws::String&& value) { SetSpeaker(std::move(value)); return *this;} /** *

If speaker identification is enabled, shows the speakers identified in the * real-time stream.

*/ inline Item& WithSpeaker(const char* value) { SetSpeaker(value); return *this;} private: double m_startTime; bool m_startTimeHasBeenSet; double m_endTime; bool m_endTimeHasBeenSet; ItemType m_type; bool m_typeHasBeenSet; Aws::String m_content; bool m_contentHasBeenSet; bool m_vocabularyFilterMatch; bool m_vocabularyFilterMatchHasBeenSet; Aws::String m_speaker; bool m_speakerHasBeenSet; }; } // namespace Model } // namespace TranscribeStreamingService } // namespace Aws