7#include <aws/core/utils/HashingUtils.h>
8#include <aws/core/utils/event/EventStreamHandler.h>
9#include <aws/core/client/AWSError.h>
10#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
11#include <aws/transcribestreaming/TranscribeStreamingServiceErrors.h>
13#include <aws/transcribestreaming/model/StartStreamTranscriptionInitialResponse.h>
14#include <aws/transcribestreaming/model/TranscriptEvent.h>
18namespace TranscribeStreamingService
33 typedef std::function<void(
const TranscriptEvent&)> TranscriptEventCallback;
40 AWS_TRANSCRIBESTREAMINGSERVICE_API
virtual void OnEvent()
override;
64 AWS_TRANSCRIBESTREAMINGSERVICE_API
void HandleEventInMessage();
65 AWS_TRANSCRIBESTREAMINGSERVICE_API
void HandleErrorInMessage();
66 AWS_TRANSCRIBESTREAMINGSERVICE_API
void MarshallError(
const Aws::String& errorCode,
const Aws::String& errorMessage);
68 StartStreamTranscriptionInitialResponseCallbackEx m_onInitialResponse;
69 TranscriptEventCallback m_onTranscriptEvent;
70 ErrorCallback m_onError;
73namespace StartStreamTranscriptionEventMapper
void SetInitialResponseCallbackEx(const StartStreamTranscriptionInitialResponseCallbackEx &callback)
void SetInitialResponseCallback(const StartStreamTranscriptionInitialResponseCallback &noArgCallback)
StartStreamTranscriptionInitialResponseCallbackEx & GetInitialResponseCallbackEx()
AWS_TRANSCRIBESTREAMINGSERVICE_API StartStreamTranscriptionHandler()
virtual AWS_TRANSCRIBESTREAMINGSERVICE_API void OnEvent() override
AWS_TRANSCRIBESTREAMINGSERVICE_API StartStreamTranscriptionHandler & operator=(const StartStreamTranscriptionHandler &)=default
void SetTranscriptEventCallback(const TranscriptEventCallback &callback)
void SetOnErrorCallback(const ErrorCallback &callback)
AWS_TRANSCRIBESTREAMINGSERVICE_API StartStreamTranscriptionEventType GetStartStreamTranscriptionEventTypeForName(const Aws::String &name)
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::String GetNameForStartStreamTranscriptionEventType(StartStreamTranscriptionEventType value)
StartStreamTranscriptionEventType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String