/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace TranscribeStreamingService { namespace Model { /** *

A wrapper for your audio chunks. Your audio stream consists of one or more * audio events, which consist of one or more audio chunks.

For more * information, see Event * stream encoding.

See Also:

AWS * API Reference

*/ class AudioEvent { public: AWS_TRANSCRIBESTREAMINGSERVICE_API AudioEvent() = default; AWS_TRANSCRIBESTREAMINGSERVICE_API AudioEvent(Aws::Vector&& value) { m_audioChunk = std::move(value); } /** *

An audio blob that contains the next part of the audio that you want to * transcribe. The maximum audio chunk size is 32 KB.

*/ inline const Aws::Vector& GetAudioChunk() const { return m_audioChunk; } /** *

An audio blob that contains the next part of the audio that you want to * transcribe. The maximum audio chunk size is 32 KB.

*/ inline Aws::Vector&& GetAudioChunkWithOwnership() { return std::move(m_audioChunk); } /** *

An audio blob that contains the next part of the audio that you want to * transcribe. The maximum audio chunk size is 32 KB.

*/ inline void SetAudioChunk(const Aws::Vector& value) { m_audioChunkHasBeenSet = true; m_audioChunk = value; } /** *

An audio blob that contains the next part of the audio that you want to * transcribe. The maximum audio chunk size is 32 KB.

*/ inline void SetAudioChunk(Aws::Vector&& value) { m_audioChunkHasBeenSet = true; m_audioChunk = std::move(value); } /** *

An audio blob that contains the next part of the audio that you want to * transcribe. The maximum audio chunk size is 32 KB.

*/ inline AudioEvent& WithAudioChunk(const Aws::Vector& value) { SetAudioChunk(value); return *this;} /** *

An audio blob that contains the next part of the audio that you want to * transcribe. The maximum audio chunk size is 32 KB.

*/ inline AudioEvent& WithAudioChunk(Aws::Vector&& value) { SetAudioChunk(std::move(value)); return *this;} private: Aws::Vector m_audioChunk; bool m_audioChunkHasBeenSet = false; }; } // namespace Model } // namespace TranscribeStreamingService } // namespace Aws