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/StartCallAnalyticsStreamTranscriptionInitialResponse.h>
14#include <aws/transcribestreaming/model/UtteranceEvent.h>
15#include <aws/transcribestreaming/model/CategoryEvent.h>
19namespace TranscribeStreamingService
35 typedef std::function<void(
const UtteranceEvent&)> UtteranceEventCallback;
36 typedef std::function<void(
const CategoryEvent&)> CategoryEventCallback;
43 AWS_TRANSCRIBESTREAMINGSERVICE_API
virtual void OnEvent()
override;
52 inline void SetInitialResponseCallbackEx(
const StartCallAnalyticsStreamTranscriptionInitialResponseCallbackEx& callback) { m_onInitialResponse = callback; }
68 AWS_TRANSCRIBESTREAMINGSERVICE_API
void HandleEventInMessage();
69 AWS_TRANSCRIBESTREAMINGSERVICE_API
void HandleErrorInMessage();
70 AWS_TRANSCRIBESTREAMINGSERVICE_API
void MarshallError(
const Aws::String& errorCode,
const Aws::String& errorMessage);
72 StartCallAnalyticsStreamTranscriptionInitialResponseCallbackEx m_onInitialResponse;
73 UtteranceEventCallback m_onUtteranceEvent;
74 CategoryEventCallback m_onCategoryEvent;
75 ErrorCallback m_onError;
78namespace StartCallAnalyticsStreamTranscriptionEventMapper
virtual AWS_TRANSCRIBESTREAMINGSERVICE_API void OnEvent() override
void SetInitialResponseCallbackEx(const StartCallAnalyticsStreamTranscriptionInitialResponseCallbackEx &callback)
void SetUtteranceEventCallback(const UtteranceEventCallback &callback)
AWS_TRANSCRIBESTREAMINGSERVICE_API StartCallAnalyticsStreamTranscriptionHandler()
AWS_TRANSCRIBESTREAMINGSERVICE_API StartCallAnalyticsStreamTranscriptionHandler & operator=(const StartCallAnalyticsStreamTranscriptionHandler &)=default
void SetCategoryEventCallback(const CategoryEventCallback &callback)
StartCallAnalyticsStreamTranscriptionInitialResponseCallbackEx & GetInitialResponseCallbackEx()
void SetOnErrorCallback(const ErrorCallback &callback)
void SetInitialResponseCallback(const StartCallAnalyticsStreamTranscriptionInitialResponseCallback &noArgCallback)
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::String GetNameForStartCallAnalyticsStreamTranscriptionEventType(StartCallAnalyticsStreamTranscriptionEventType value)
AWS_TRANSCRIBESTREAMINGSERVICE_API StartCallAnalyticsStreamTranscriptionEventType GetStartCallAnalyticsStreamTranscriptionEventTypeForName(const Aws::String &name)
StartCallAnalyticsStreamTranscriptionEventType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String