/** * 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, phrase, or punctuation mark in your Call Analytics transcription * output, along with various associated attributes, such as confidence score, * type, and start and end times.

See Also:

AWS * API Reference

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

The time, in milliseconds, from the beginning of the audio stream to the * start of the identified item.

*/ inline long long GetBeginOffsetMillis() const{ return m_beginOffsetMillis; } /** *

The time, in milliseconds, from the beginning of the audio stream to the * start of the identified item.

*/ inline bool BeginOffsetMillisHasBeenSet() const { return m_beginOffsetMillisHasBeenSet; } /** *

The time, in milliseconds, from the beginning of the audio stream to the * start of the identified item.

*/ inline void SetBeginOffsetMillis(long long value) { m_beginOffsetMillisHasBeenSet = true; m_beginOffsetMillis = value; } /** *

The time, in milliseconds, from the beginning of the audio stream to the * start of the identified item.

*/ inline CallAnalyticsItem& WithBeginOffsetMillis(long long value) { SetBeginOffsetMillis(value); return *this;} /** *

The time, in milliseconds, from the beginning of the audio stream to the end * of the identified item.

*/ inline long long GetEndOffsetMillis() const{ return m_endOffsetMillis; } /** *

The time, in milliseconds, from the beginning of the audio stream to the end * of the identified item.

*/ inline bool EndOffsetMillisHasBeenSet() const { return m_endOffsetMillisHasBeenSet; } /** *

The time, in milliseconds, from the beginning of the audio stream to the end * of the identified item.

*/ inline void SetEndOffsetMillis(long long value) { m_endOffsetMillisHasBeenSet = true; m_endOffsetMillis = value; } /** *

The time, in milliseconds, from the beginning of the audio stream to the end * of the identified item.

*/ inline CallAnalyticsItem& WithEndOffsetMillis(long long value) { SetEndOffsetMillis(value); return *this;} /** *

The type of item identified. Options are: PRONUNCIATION (spoken * words) and PUNCTUATION.

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

The type of item identified. Options are: PRONUNCIATION (spoken * words) and PUNCTUATION.

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

The type of item identified. Options are: PRONUNCIATION (spoken * words) and PUNCTUATION.

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

The type of item identified. Options are: PRONUNCIATION (spoken * words) and PUNCTUATION.

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

The type of item identified. Options are: PRONUNCIATION (spoken * words) and PUNCTUATION.

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

The type of item identified. Options are: PRONUNCIATION (spoken * words) and PUNCTUATION.

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

The word or punctuation that was transcribed.

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

The word or punctuation that was transcribed.

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

The word or punctuation that was transcribed.

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

The word or punctuation that was transcribed.

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

The word or punctuation that was transcribed.

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

The word or punctuation that was transcribed.

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

The word or punctuation that was transcribed.

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

The word or punctuation that was transcribed.

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

The confidence score associated with a word or phrase in your transcript.

*

Confidence scores are values between 0 and 1. A larger value indicates a * higher probability that the identified item correctly matches the item spoken in * your media.

*/ inline double GetConfidence() const{ return m_confidence; } /** *

The confidence score associated with a word or phrase in your transcript.

*

Confidence scores are values between 0 and 1. A larger value indicates a * higher probability that the identified item correctly matches the item spoken in * your media.

*/ inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; } /** *

The confidence score associated with a word or phrase in your transcript.

*

Confidence scores are values between 0 and 1. A larger value indicates a * higher probability that the identified item correctly matches the item spoken in * your media.

*/ inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; } /** *

The confidence score associated with a word or phrase in your transcript.

*

Confidence scores are values between 0 and 1. A larger value indicates a * higher probability that the identified item correctly matches the item spoken in * your media.

*/ inline CallAnalyticsItem& WithConfidence(double value) { SetConfidence(value); return *this;} /** *

Indicates whether the specified item matches a word in the vocabulary filter * included in your Call Analytics request. If true, there is a * vocabulary filter match.

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

Indicates whether the specified item matches a word in the vocabulary filter * included in your Call Analytics request. If true, there is a * vocabulary filter match.

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

Indicates whether the specified item matches a word in the vocabulary filter * included in your Call Analytics request. If true, there is a * vocabulary filter match.

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

Indicates whether the specified item matches a word in the vocabulary filter * included in your Call Analytics request. If true, there is a * vocabulary filter match.

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

If partial result stabilization is enabled, Stable indicates * whether the specified item is stable (true) or if it may change * when the segment is complete (false).

*/ inline bool GetStable() const{ return m_stable; } /** *

If partial result stabilization is enabled, Stable indicates * whether the specified item is stable (true) or if it may change * when the segment is complete (false).

*/ inline bool StableHasBeenSet() const { return m_stableHasBeenSet; } /** *

If partial result stabilization is enabled, Stable indicates * whether the specified item is stable (true) or if it may change * when the segment is complete (false).

*/ inline void SetStable(bool value) { m_stableHasBeenSet = true; m_stable = value; } /** *

If partial result stabilization is enabled, Stable indicates * whether the specified item is stable (true) or if it may change * when the segment is complete (false).

*/ inline CallAnalyticsItem& WithStable(bool value) { SetStable(value); return *this;} private: long long m_beginOffsetMillis; bool m_beginOffsetMillisHasBeenSet = false; long long m_endOffsetMillis; bool m_endOffsetMillisHasBeenSet = false; ItemType m_type; bool m_typeHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; bool m_vocabularyFilterMatch; bool m_vocabularyFilterMatchHasBeenSet = false; bool m_stable; bool m_stableHasBeenSet = false; }; } // namespace Model } // namespace TranscribeStreamingService } // namespace Aws