public class AmazonTranscribeClient extends AmazonWebServiceClient implements AmazonTranscribe
Operations and objects for transcribing speech to text.
| Modifier and Type | Field and Description |
|---|---|
protected List<com.amazonaws.transform.JsonErrorUnmarshaller> |
jsonErrorUnmarshallers
List of exception unmarshallers for all Amazon Transcribe exceptions.
|
client, clientConfiguration, endpoint, endpointPrefix, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset| Constructor and Description |
|---|
AmazonTranscribeClient()
Deprecated.
|
AmazonTranscribeClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on AmazonTranscribe
using the specified AWS account credentials.
|
AmazonTranscribeClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AmazonTranscribe
using the specified AWS account credentials and client configuration
options.
|
AmazonTranscribeClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on AmazonTranscribe
using the specified AWS account credentials provider.
|
AmazonTranscribeClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AmazonTranscribe
using the specified AWS account credentials provider and client
configuration options.
|
AmazonTranscribeClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
HttpClient httpClient)
Constructs a new client to invoke service methods on AmazonTranscribe
using the specified AWS account credentials provider, client
configuration options and request metric collector.
|
AmazonTranscribeClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
Deprecated.
|
AmazonTranscribeClient(ClientConfiguration clientConfiguration)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
CreateVocabularyResult |
createVocabulary(CreateVocabularyRequest createVocabularyRequest)
Creates a new custom vocabulary that you can use to change the way Amazon
Transcribe handles transcription of an audio file.
|
void |
deleteTranscriptionJob(DeleteTranscriptionJobRequest deleteTranscriptionJobRequest)
Deletes a previously submitted transcription job along with any other
generated results such as the transcription, models, and so on.
|
void |
deleteVocabulary(DeleteVocabularyRequest deleteVocabularyRequest)
Deletes a vocabulary from Amazon Transcribe.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Deprecated.
ResponseMetadata cache can hold up to 50 requests and
responses in memory and will cause memory issue. This method
now always returns null.
|
GetTranscriptionJobResult |
getTranscriptionJob(GetTranscriptionJobRequest getTranscriptionJobRequest)
Returns information about a transcription job.
|
GetVocabularyResult |
getVocabulary(GetVocabularyRequest getVocabularyRequest)
Gets information about a vocabulary.
|
ListTranscriptionJobsResult |
listTranscriptionJobs(ListTranscriptionJobsRequest listTranscriptionJobsRequest)
Lists transcription jobs with the specified status.
|
ListVocabulariesResult |
listVocabularies(ListVocabulariesRequest listVocabulariesRequest)
Returns a list of vocabularies that match the specified criteria.
|
StartTranscriptionJobResult |
startTranscriptionJob(StartTranscriptionJobRequest startTranscriptionJobRequest)
Starts an asynchronous job to transcribe speech to text.
|
UpdateVocabularyResult |
updateVocabulary(UpdateVocabularyRequest updateVocabularyRequest)
Updates an existing vocabulary with new values.
|
addRequestHandler, addRequestHandler, configSigner, configSigner, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getEndpoint, getEndpointPrefix, getRegions, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setConfiguration, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetEndpoint, setRegion, shutdownprotected List<com.amazonaws.transform.JsonErrorUnmarshaller> jsonErrorUnmarshallers
@Deprecated public AmazonTranscribeClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain@Deprecated public AmazonTranscribeClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration - The client configuration options controlling
how this client connects to AmazonTranscribe (ex: proxy
settings, retry counts, etc.).DefaultAWSCredentialsProviderChainpublic AmazonTranscribeClient(AWSCredentials awsCredentials)
If AWS session credentials are passed in, then those credentials will be used to authenticate requests. Otherwise, if AWS long-term credentials are passed in, then session management will be handled automatically by the SDK. Callers are encouraged to use long-term credentials and let the SDK handle starting and renewing sessions.
Automatically managed sessions will be shared among all clients that use
the same credentials and service endpoint. To opt out of this behavior,
explicitly provide an instance of AWSCredentialsProvider that
returns AWSSessionCredentials.
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key)
to use when authenticating with AWS services.public AmazonTranscribeClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
If AWS session credentials are passed in, then those credentials will be used to authenticate requests. Otherwise, if AWS long-term credentials are passed in, then session management will be handled automatically by the SDK. Callers are encouraged to use long-term credentials and let the SDK handle starting and renewing sessions.
Automatically managed sessions will be shared among all clients that use
the same credentials and service endpoint. To opt out of this behavior,
explicitly provide an instance of AWSCredentialsProvider that
returns AWSSessionCredentials.
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key)
to use when authenticating with AWS services.clientConfiguration - The client configuration options controlling
how this client connects to AmazonTranscribe (ex: proxy
settings, retry counts, etc.).public AmazonTranscribeClient(AWSCredentialsProvider awsCredentialsProvider)
If AWS session credentials are passed in, then those credentials will be used to authenticate requests. Otherwise, if AWS long-term credentials are passed in, then session management will be handled automatically by the SDK. Callers are encouraged to use long-term credentials and let the SDK handle starting and renewing sessions.
Automatically managed sessions will be shared among all clients that use
the same credentials and service endpoint. To opt out of this behavior,
explicitly provide an instance of AWSCredentialsProvider that
returns AWSSessionCredentials.
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.public AmazonTranscribeClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
If AWS session credentials are passed in, then those credentials will be used to authenticate requests. Otherwise, if AWS long-term credentials are passed in, then session management will be handled automatically by the SDK. Callers are encouraged to use long-term credentials and let the SDK handle starting and renewing sessions.
Automatically managed sessions will be shared among all clients that use
the same credentials and service endpoint. To opt out of this behavior,
explicitly provide an instance of AWSCredentialsProvider that
returns AWSSessionCredentials.
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.clientConfiguration - The client configuration options controlling
how this client connects to AmazonTranscribe (ex: proxy
settings, retry counts, etc.).@Deprecated public AmazonTranscribeClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.clientConfiguration - The client configuration options controlling
how this client connects to AmazonTranscribe (ex: proxy
settings, retry counts, etc.).requestMetricCollector - optional request metric collectorpublic AmazonTranscribeClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, HttpClient httpClient)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.clientConfiguration - The client configuration options controlling
how this client connects to AmazonTranscribe (ex: proxy
settings, retry counts, etc.).httpClient - A http clientpublic CreateVocabularyResult createVocabulary(CreateVocabularyRequest createVocabularyRequest) throws AmazonServiceException, AmazonClientException
Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file.
createVocabulary in interface AmazonTranscribecreateVocabularyRequest - BadRequestExceptionLimitExceededExceptionInternalFailureExceptionConflictExceptionAmazonClientException - If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException - If an error response is returned by Amazon
Transcribe indicating either a problem with the data in the
request, or a server side issue.public void deleteTranscriptionJob(DeleteTranscriptionJobRequest deleteTranscriptionJobRequest) throws AmazonServiceException, AmazonClientException
Deletes a previously submitted transcription job along with any other generated results such as the transcription, models, and so on.
deleteTranscriptionJob in interface AmazonTranscribedeleteTranscriptionJobRequest - LimitExceededExceptionBadRequestExceptionInternalFailureExceptionAmazonClientException - If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException - If an error response is returned by Amazon
Transcribe indicating either a problem with the data in the
request, or a server side issue.public void deleteVocabulary(DeleteVocabularyRequest deleteVocabularyRequest) throws AmazonServiceException, AmazonClientException
Deletes a vocabulary from Amazon Transcribe.
deleteVocabulary in interface AmazonTranscribedeleteVocabularyRequest - NotFoundExceptionLimitExceededExceptionBadRequestExceptionInternalFailureExceptionAmazonClientException - If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException - If an error response is returned by Amazon
Transcribe indicating either a problem with the data in the
request, or a server side issue.public GetTranscriptionJobResult getTranscriptionJob(GetTranscriptionJobRequest getTranscriptionJobRequest) throws AmazonServiceException, AmazonClientException
Returns information about a transcription job. To see the status of the
job, check the TranscriptionJobStatus field. If the status
is COMPLETED, the job is finished and you can find the
results at the location specified in the
TranscriptionFileUri field.
getTranscriptionJob in interface AmazonTranscribegetTranscriptionJobRequest - BadRequestExceptionLimitExceededExceptionInternalFailureExceptionNotFoundExceptionAmazonClientException - If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException - If an error response is returned by Amazon
Transcribe indicating either a problem with the data in the
request, or a server side issue.public GetVocabularyResult getVocabulary(GetVocabularyRequest getVocabularyRequest) throws AmazonServiceException, AmazonClientException
Gets information about a vocabulary.
getVocabulary in interface AmazonTranscribegetVocabularyRequest - NotFoundExceptionLimitExceededExceptionInternalFailureExceptionBadRequestExceptionAmazonClientException - If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException - If an error response is returned by Amazon
Transcribe indicating either a problem with the data in the
request, or a server side issue.public ListTranscriptionJobsResult listTranscriptionJobs(ListTranscriptionJobsRequest listTranscriptionJobsRequest) throws AmazonServiceException, AmazonClientException
Lists transcription jobs with the specified status.
listTranscriptionJobs in interface AmazonTranscribelistTranscriptionJobsRequest - BadRequestExceptionLimitExceededExceptionInternalFailureExceptionAmazonClientException - If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException - If an error response is returned by Amazon
Transcribe indicating either a problem with the data in the
request, or a server side issue.public ListVocabulariesResult listVocabularies(ListVocabulariesRequest listVocabulariesRequest) throws AmazonServiceException, AmazonClientException
Returns a list of vocabularies that match the specified criteria. If no criteria are specified, returns the entire list of vocabularies.
listVocabularies in interface AmazonTranscribelistVocabulariesRequest - BadRequestExceptionLimitExceededExceptionInternalFailureExceptionAmazonClientException - If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException - If an error response is returned by Amazon
Transcribe indicating either a problem with the data in the
request, or a server side issue.public StartTranscriptionJobResult startTranscriptionJob(StartTranscriptionJobRequest startTranscriptionJobRequest) throws AmazonServiceException, AmazonClientException
Starts an asynchronous job to transcribe speech to text.
startTranscriptionJob in interface AmazonTranscribestartTranscriptionJobRequest - BadRequestExceptionLimitExceededExceptionInternalFailureExceptionConflictExceptionAmazonClientException - If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException - If an error response is returned by Amazon
Transcribe indicating either a problem with the data in the
request, or a server side issue.public UpdateVocabularyResult updateVocabulary(UpdateVocabularyRequest updateVocabularyRequest) throws AmazonServiceException, AmazonClientException
Updates an existing vocabulary with new values. The
UpdateVocabulary operation overwrites all of the existing
information with the values that you provide in the request.
updateVocabulary in interface AmazonTranscribeupdateVocabularyRequest - BadRequestExceptionLimitExceededExceptionInternalFailureExceptionNotFoundExceptionConflictExceptionAmazonClientException - If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException - If an error response is returned by Amazon
Transcribe indicating either a problem with the data in the
request, or a server side issue.@Deprecated public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata in interface AmazonTranscriberequest - The originally executed requestCopyright © 2019. All rights reserved.