AWS SDK for C++  1.9.123
AWS SDK for C++
AudioStream.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
11 
12 namespace Aws
13 {
14 namespace TranscribeStreamingService
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29  {
31  msg.InsertEventHeader(":message-type", Aws::String("event"));
32  msg.InsertEventHeader(":event-type", Aws::String("AudioEvent"));
33  msg.InsertEventHeader(":content-type", Aws::String("application/octet-stream"));
34  msg.WriteEventPayload(value.GetAudioChunk());
35  WriteEvent(msg);
36  return *this;
37  }
38 
39  };
40 
41 } // namespace Model
42 } // namespace TranscribeStreamingService
43 } // namespace Aws
AWS_TRANSCRIBESTREAMINGSERVICE_API
#define AWS_TRANSCRIBESTREAMINGSERVICE_API
Definition: TranscribeStreamingService_EXPORTS.h:28
AudioEvent.h
Aws::Utils::Event::Message::WriteEventPayload
void WriteEventPayload(const unsigned char *data, size_t length)
EventStream.h
Aws::TranscribeStreamingService::Model::AudioEvent::GetAudioChunk
const Aws::Vector< unsigned char > & GetAudioChunk() const
Definition: AudioEvent.h:38
Aws::TranscribeStreamingService::Model::AudioStream::WriteAudioEvent
AudioStream & WriteAudioEvent(const AudioEvent &value)
Definition: AudioStream.h:28
TranscribeStreamingService_EXPORTS.h
Aws::Utils::Event::Message
Definition: EventMessage.h:30
Aws::TranscribeStreamingService::Model::AudioEvent
Definition: AudioEvent.h:29
Aws
Definition: AccessManagementClient.h:15
Aws::Utils::Event::Message::InsertEventHeader
void InsertEventHeader(const Aws::String &headerName, const EventHeaderValue &eventHeaderValue)
Definition: EventMessage.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::TranscribeStreamingService::Model::AudioStream
Definition: AudioStream.h:26
Aws::Utils::Event::EventEncoderStream
Definition: EventEncoderStream.h:29