AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MedicalScribeInputStream.h
1
6#pragma once
7#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
8#include <aws/transcribestreaming/model/MedicalScribeAudioEvent.h>
9#include <aws/transcribestreaming/model/MedicalScribeSessionControlEvent.h>
10#include <aws/transcribestreaming/model/MedicalScribeConfigurationEvent.h>
11#include <utility>
12#include <aws/core/utils/event/EventStream.h>
13
14namespace Aws
15{
16namespace TranscribeStreamingService
17{
18namespace Model
19{
20
32 class AWS_TRANSCRIBESTREAMINGSERVICE_API MedicalScribeInputStream : public Aws::Utils::Event::EventEncoderStream
33 {
34 public:
36 {
38 if(!value.GetAudioChunk().empty())
39 {
40 msg.InsertEventHeader(":message-type", Aws::String("event"));
41 msg.InsertEventHeader(":event-type", Aws::String("AudioEvent"));
42 msg.InsertEventHeader(":content-type", Aws::String("application/octet-stream"));
44 }
45 WriteEvent(msg);
46 return *this;
47 }
49 {
51 msg.InsertEventHeader(":message-type", Aws::String("event"));
52 msg.InsertEventHeader(":event-type", Aws::String("SessionControlEvent"));
53 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
55 WriteEvent(msg);
56 return *this;
57 }
59 {
61 msg.InsertEventHeader(":message-type", Aws::String("event"));
62 msg.InsertEventHeader(":event-type", Aws::String("ConfigurationEvent"));
63 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
65 WriteEvent(msg);
66 return *this;
67 }
68
69 };
70
71} // namespace Model
72} // namespace TranscribeStreamingService
73} // namespace Aws
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
MedicalScribeInputStream & WriteMedicalScribeSessionControlEvent(const MedicalScribeSessionControlEvent &value)
MedicalScribeInputStream & WriteMedicalScribeConfigurationEvent(const MedicalScribeConfigurationEvent &value)
MedicalScribeInputStream & WriteMedicalScribeAudioEvent(const MedicalScribeAudioEvent &value)
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void WriteEventPayload(const unsigned char *data, size_t length)
void InsertEventHeader(const Aws::String &headerName, const EventHeaderValue &eventHeaderValue)
Aws::String WriteCompact(bool treatAsObject=true) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String