@Generated(value="software.amazon.awssdk:codegen") public interface TranscribeStreamingAsyncClient extends SdkClient
builder()
method.
Operations and objects for transcribing streaming speech to text.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
static TranscribeStreamingAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
TranscribeStreamingAsyncClient . |
static TranscribeStreamingAsyncClient |
create()
Create a
TranscribeStreamingAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CompletableFuture<Void> |
startStreamTranscription(Consumer<StartStreamTranscriptionRequest.Builder> startStreamTranscriptionRequest,
org.reactivestreams.Publisher<AudioStream> requestStream,
StartStreamTranscriptionResponseHandler asyncResponseHandler)
Starts a bidirectional HTTP2 stream where audio is streamed to Amazon Transcribe and the transcription results
are streamed to your application.
|
default CompletableFuture<Void> |
startStreamTranscription(StartStreamTranscriptionRequest startStreamTranscriptionRequest,
org.reactivestreams.Publisher<AudioStream> requestStream,
StartStreamTranscriptionResponseHandler asyncResponseHandler)
Starts a bidirectional HTTP2 stream where audio is streamed to Amazon Transcribe and the transcription results
are streamed to your application.
|
serviceName
close
static final String SERVICE_NAME
static TranscribeStreamingAsyncClient create()
TranscribeStreamingAsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static TranscribeStreamingAsyncClientBuilder builder()
TranscribeStreamingAsyncClient
.default CompletableFuture<Void> startStreamTranscription(StartStreamTranscriptionRequest startStreamTranscriptionRequest, org.reactivestreams.Publisher<AudioStream> requestStream, StartStreamTranscriptionResponseHandler asyncResponseHandler)
Starts a bidirectional HTTP2 stream where audio is streamed to Amazon Transcribe and the transcription results are streamed to your application.
The following are encoded as HTTP2 headers:
x-amzn-transcribe-language-code
x-amzn-transcribe-media-encoding
x-amzn-transcribe-sample-rate
x-amzn-transcribe-session-id
startStreamTranscriptionRequest
- StartStreamTranscription
operation was
invalid. For example, MediaEncoding
was not set to pcm
or
LanguageCode
was not set to a valid code. Check the parameters and try your request again.default CompletableFuture<Void> startStreamTranscription(Consumer<StartStreamTranscriptionRequest.Builder> startStreamTranscriptionRequest, org.reactivestreams.Publisher<AudioStream> requestStream, StartStreamTranscriptionResponseHandler asyncResponseHandler)
Starts a bidirectional HTTP2 stream where audio is streamed to Amazon Transcribe and the transcription results are streamed to your application.
The following are encoded as HTTP2 headers:
x-amzn-transcribe-language-code
x-amzn-transcribe-media-encoding
x-amzn-transcribe-sample-rate
x-amzn-transcribe-session-id
This is a convenience which creates an instance of the StartStreamTranscriptionRequest.Builder
avoiding
the need to create one manually via StartStreamTranscriptionRequest.builder()
startStreamTranscriptionRequest
- A Consumer
that will call methods on StartStreamTranscriptionRequest.Builder
to create a
request.StartStreamTranscription
operation was
invalid. For example, MediaEncoding
was not set to pcm
or
LanguageCode
was not set to a valid code. Check the parameters and try your request again.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.