AWS SDK for C++  1.8.95
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
AudioStream & WriteAudioEvent(const AudioEvent &value)
Definition: AudioStream.h:28
void InsertEventHeader(const Aws::String &headerName, const EventHeaderValue &eventHeaderValue)
Definition: EventMessage.h:87
void WriteEventPayload(const unsigned char *data, size_t length)
const Aws::Vector< unsigned char > & GetAudioChunk() const
Definition: AudioEvent.h:33
#define AWS_TRANSCRIBESTREAMINGSERVICE_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97