AWS SDK for C++  1.8.95
AWS SDK for C++
TranscribeStreamingServiceClient.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <aws/core/NoResult.h>
17 #include <future>
18 #include <functional>
19 
20 namespace Aws
21 {
22 
23 namespace Http
24 {
25  class HttpClient;
26  class HttpClientFactory;
27 } // namespace Http
28 
29 namespace Utils
30 {
31  template< typename R, typename E> class Outcome;
32 namespace Event
33 {
34  class EventEncoderStream;
35 }
36 
37 namespace Threading
38 {
39  class Executor;
40 } // namespace Threading
41 } // namespace Utils
42 
43 namespace Auth
44 {
45  class AWSCredentials;
46  class AWSCredentialsProvider;
47 } // namespace Auth
48 
49 namespace Client
50 {
51  class RetryStrategy;
52 } // namespace Client
53 
54 namespace TranscribeStreamingService
55 {
56 
57 namespace Model
58 {
59  class StartMedicalStreamTranscriptionRequest;
60  class AudioStream;
61  class StartStreamTranscriptionRequest;
62  class AudioStream;
63 
66 
67  typedef std::future<StartMedicalStreamTranscriptionOutcome> StartMedicalStreamTranscriptionOutcomeCallable;
68  typedef std::future<StartStreamTranscriptionOutcome> StartStreamTranscriptionOutcomeCallable;
69 } // namespace Model
70 
72 
73  typedef std::function<void(Model::AudioStream&)> StartMedicalStreamTranscriptionStreamReadyHandler;
74  typedef std::function<void(const TranscribeStreamingServiceClient*, const Model::StartMedicalStreamTranscriptionRequest&, const Model::StartMedicalStreamTranscriptionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StartMedicalStreamTranscriptionResponseReceivedHandler;
75  typedef std::function<void(Model::AudioStream&)> StartStreamTranscriptionStreamReadyHandler;
76  typedef std::function<void(const TranscribeStreamingServiceClient*, const Model::StartStreamTranscriptionRequest&, const Model::StartStreamTranscriptionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StartStreamTranscriptionResponseReceivedHandler;
77 
82  {
83  public:
85 
91 
97 
102  TranscribeStreamingServiceClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
104 
106 
107 
119  virtual void StartMedicalStreamTranscriptionAsync(Model::StartMedicalStreamTranscriptionRequest& request,
120  const StartMedicalStreamTranscriptionStreamReadyHandler& streamReadyHandler,
122  const std::shared_ptr<const Aws::Client::AsyncCallerContext>& handlerContext = nullptr) const;
123 
139  virtual void StartStreamTranscriptionAsync(Model::StartStreamTranscriptionRequest& request,
140  const StartStreamTranscriptionStreamReadyHandler& streamReadyHandler,
142  const std::shared_ptr<const Aws::Client::AsyncCallerContext>& handlerContext = nullptr) const;
143 
144 
145  void OverrideEndpoint(const Aws::String& endpoint);
146  private:
147  void init(const Aws::Client::ClientConfiguration& clientConfiguration);
148 
149  Aws::String m_uri;
150  Aws::String m_configScheme;
151  std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
152  };
153 
154 } // namespace TranscribeStreamingService
155 } // namespace Aws
std::future< StartStreamTranscriptionOutcome > StartStreamTranscriptionOutcomeCallable
Aws::Utils::Outcome< Aws::NoResult, TranscribeStreamingServiceError > StartStreamTranscriptionOutcome
std::function< void(const TranscribeStreamingServiceClient *, const Model::StartMedicalStreamTranscriptionRequest &, const Model::StartMedicalStreamTranscriptionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > StartMedicalStreamTranscriptionResponseReceivedHandler
std::function< void(Model::AudioStream &)> StartMedicalStreamTranscriptionStreamReadyHandler
std::function< void(Model::AudioStream &)> StartStreamTranscriptionStreamReadyHandler
std::function< void(const TranscribeStreamingServiceClient *, const Model::StartStreamTranscriptionRequest &, const Model::StartStreamTranscriptionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > StartStreamTranscriptionResponseReceivedHandler
Aws::Utils::Outcome< Aws::NoResult, TranscribeStreamingServiceError > StartMedicalStreamTranscriptionOutcome
#define AWS_TRANSCRIBESTREAMINGSERVICE_API
std::future< StartMedicalStreamTranscriptionOutcome > StartMedicalStreamTranscriptionOutcomeCallable
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97