Skip to content

Commit c0436c9

Browse files
authored
feat(aws-android-sdk-transcribe): update models to latest (#2050)
1 parent 698811b commit c0436c9

File tree

100 files changed

+12510
-854
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+12510
-854
lines changed

aws-android-sdk-transcribe/src/main/java/com/amazonaws/services/transcribe/AmazonTranscribe.java

Lines changed: 231 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,59 @@ public interface AmazonTranscribe {
8585
*/
8686
public void setRegion(Region region) throws java.lang.IllegalArgumentException;
8787

88+
/**
89+
* <p>
90+
* Creates a new custom language model. Use Amazon S3 prefixes to provide
91+
* the location of your input files. The time it takes to create your model
92+
* depends on the size of your training data.
93+
* </p>
94+
*
95+
* @param createLanguageModelRequest
96+
* @return createLanguageModelResult The response from the
97+
* CreateLanguageModel service method, as returned by Amazon
98+
* Transcribe.
99+
* @throws BadRequestException
100+
* @throws LimitExceededException
101+
* @throws InternalFailureException
102+
* @throws ConflictException
103+
* @throws AmazonClientException If any internal errors are encountered
104+
* inside the client while attempting to make the request or
105+
* handle the response. For example if a network connection is
106+
* not available.
107+
* @throws AmazonServiceException If an error response is returned by Amazon
108+
* Transcribe indicating either a problem with the data in the
109+
* request, or a server side issue.
110+
*/
111+
CreateLanguageModelResult createLanguageModel(
112+
CreateLanguageModelRequest createLanguageModelRequest) throws AmazonClientException,
113+
AmazonServiceException;
114+
115+
/**
116+
* <p>
117+
* Creates a new custom vocabulary that you can use to change how Amazon
118+
* Transcribe Medical transcribes your audio file.
119+
* </p>
120+
*
121+
* @param createMedicalVocabularyRequest
122+
* @return createMedicalVocabularyResult The response from the
123+
* CreateMedicalVocabulary service method, as returned by Amazon
124+
* Transcribe.
125+
* @throws BadRequestException
126+
* @throws LimitExceededException
127+
* @throws InternalFailureException
128+
* @throws ConflictException
129+
* @throws AmazonClientException If any internal errors are encountered
130+
* inside the client while attempting to make the request or
131+
* handle the response. For example if a network connection is
132+
* not available.
133+
* @throws AmazonServiceException If an error response is returned by Amazon
134+
* Transcribe indicating either a problem with the data in the
135+
* request, or a server side issue.
136+
*/
137+
CreateMedicalVocabularyResult createMedicalVocabulary(
138+
CreateMedicalVocabularyRequest createMedicalVocabularyRequest)
139+
throws AmazonClientException, AmazonServiceException;
140+
88141
/**
89142
* <p>
90143
* Creates a new custom vocabulary that you can use to change the way Amazon
@@ -135,6 +188,26 @@ CreateVocabularyFilterResult createVocabularyFilter(
135188
CreateVocabularyFilterRequest createVocabularyFilterRequest)
136189
throws AmazonClientException, AmazonServiceException;
137190

191+
/**
192+
* <p>
193+
* Deletes a custom language model using its name.
194+
* </p>
195+
*
196+
* @param deleteLanguageModelRequest
197+
* @throws BadRequestException
198+
* @throws LimitExceededException
199+
* @throws InternalFailureException
200+
* @throws AmazonClientException If any internal errors are encountered
201+
* inside the client while attempting to make the request or
202+
* handle the response. For example if a network connection is
203+
* not available.
204+
* @throws AmazonServiceException If an error response is returned by Amazon
205+
* Transcribe indicating either a problem with the data in the
206+
* request, or a server side issue.
207+
*/
208+
void deleteLanguageModel(DeleteLanguageModelRequest deleteLanguageModelRequest)
209+
throws AmazonClientException, AmazonServiceException;
210+
138211
/**
139212
* <p>
140213
* Deletes a transcription job generated by Amazon Transcribe Medical and
@@ -157,6 +230,27 @@ void deleteMedicalTranscriptionJob(
157230
DeleteMedicalTranscriptionJobRequest deleteMedicalTranscriptionJobRequest)
158231
throws AmazonClientException, AmazonServiceException;
159232

233+
/**
234+
* <p>
235+
* Deletes a vocabulary from Amazon Transcribe Medical.
236+
* </p>
237+
*
238+
* @param deleteMedicalVocabularyRequest
239+
* @throws NotFoundException
240+
* @throws LimitExceededException
241+
* @throws BadRequestException
242+
* @throws InternalFailureException
243+
* @throws AmazonClientException If any internal errors are encountered
244+
* inside the client while attempting to make the request or
245+
* handle the response. For example if a network connection is
246+
* not available.
247+
* @throws AmazonServiceException If an error response is returned by Amazon
248+
* Transcribe indicating either a problem with the data in the
249+
* request, or a server side issue.
250+
*/
251+
void deleteMedicalVocabulary(DeleteMedicalVocabularyRequest deleteMedicalVocabularyRequest)
252+
throws AmazonClientException, AmazonServiceException;
253+
160254
/**
161255
* <p>
162256
* Deletes a previously submitted transcription job along with any other
@@ -220,6 +314,37 @@ void deleteVocabulary(DeleteVocabularyRequest deleteVocabularyRequest)
220314
void deleteVocabularyFilter(DeleteVocabularyFilterRequest deleteVocabularyFilterRequest)
221315
throws AmazonClientException, AmazonServiceException;
222316

317+
/**
318+
* <p>
319+
* Gets information about a single custom language model. Use this
320+
* information to see details about the language model in your AWS account.
321+
* You can also see whether the base language model used to create your
322+
* custom language model has been updated. If Amazon Transcribe has updated
323+
* the base model, you can create a new custom language model using the
324+
* updated base model. If the language model wasn't created, you can use
325+
* this operation to understand why Amazon Transcribe couldn't create it.
326+
* </p>
327+
*
328+
* @param describeLanguageModelRequest
329+
* @return describeLanguageModelResult The response from the
330+
* DescribeLanguageModel service method, as returned by Amazon
331+
* Transcribe.
332+
* @throws BadRequestException
333+
* @throws LimitExceededException
334+
* @throws InternalFailureException
335+
* @throws NotFoundException
336+
* @throws AmazonClientException If any internal errors are encountered
337+
* inside the client while attempting to make the request or
338+
* handle the response. For example if a network connection is
339+
* not available.
340+
* @throws AmazonServiceException If an error response is returned by Amazon
341+
* Transcribe indicating either a problem with the data in the
342+
* request, or a server side issue.
343+
*/
344+
DescribeLanguageModelResult describeLanguageModel(
345+
DescribeLanguageModelRequest describeLanguageModelRequest)
346+
throws AmazonClientException, AmazonServiceException;
347+
223348
/**
224349
* <p>
225350
* Returns information about a transcription job from Amazon Transcribe
@@ -249,6 +374,31 @@ GetMedicalTranscriptionJobResult getMedicalTranscriptionJob(
249374
GetMedicalTranscriptionJobRequest getMedicalTranscriptionJobRequest)
250375
throws AmazonClientException, AmazonServiceException;
251376

377+
/**
378+
* <p>
379+
* Retrieves information about a medical vocabulary.
380+
* </p>
381+
*
382+
* @param getMedicalVocabularyRequest
383+
* @return getMedicalVocabularyResult The response from the
384+
* GetMedicalVocabulary service method, as returned by Amazon
385+
* Transcribe.
386+
* @throws NotFoundException
387+
* @throws LimitExceededException
388+
* @throws InternalFailureException
389+
* @throws BadRequestException
390+
* @throws AmazonClientException If any internal errors are encountered
391+
* inside the client while attempting to make the request or
392+
* handle the response. For example if a network connection is
393+
* not available.
394+
* @throws AmazonServiceException If an error response is returned by Amazon
395+
* Transcribe indicating either a problem with the data in the
396+
* request, or a server side issue.
397+
*/
398+
GetMedicalVocabularyResult getMedicalVocabulary(
399+
GetMedicalVocabularyRequest getMedicalVocabularyRequest) throws AmazonClientException,
400+
AmazonServiceException;
401+
252402
/**
253403
* <p>
254404
* Returns information about a transcription job. To see the status of the
@@ -327,6 +477,31 @@ GetVocabularyFilterResult getVocabularyFilter(
327477
GetVocabularyFilterRequest getVocabularyFilterRequest) throws AmazonClientException,
328478
AmazonServiceException;
329479

480+
/**
481+
* <p>
482+
* Provides more information about the custom language models you've
483+
* created. You can use the information in this list to find a specific
484+
* custom language model. You can then use the operation to get more
485+
* information about it.
486+
* </p>
487+
*
488+
* @param listLanguageModelsRequest
489+
* @return listLanguageModelsResult The response from the ListLanguageModels
490+
* service method, as returned by Amazon Transcribe.
491+
* @throws BadRequestException
492+
* @throws LimitExceededException
493+
* @throws InternalFailureException
494+
* @throws AmazonClientException If any internal errors are encountered
495+
* inside the client while attempting to make the request or
496+
* handle the response. For example if a network connection is
497+
* not available.
498+
* @throws AmazonServiceException If an error response is returned by Amazon
499+
* Transcribe indicating either a problem with the data in the
500+
* request, or a server side issue.
501+
*/
502+
ListLanguageModelsResult listLanguageModels(ListLanguageModelsRequest listLanguageModelsRequest)
503+
throws AmazonClientException, AmazonServiceException;
504+
330505
/**
331506
* <p>
332507
* Lists medical transcription jobs with a specified status or substring
@@ -352,6 +527,32 @@ ListMedicalTranscriptionJobsResult listMedicalTranscriptionJobs(
352527
ListMedicalTranscriptionJobsRequest listMedicalTranscriptionJobsRequest)
353528
throws AmazonClientException, AmazonServiceException;
354529

530+
/**
531+
* <p>
532+
* Returns a list of vocabularies that match the specified criteria. If you
533+
* don't enter a value in any of the request parameters, returns the entire
534+
* list of vocabularies.
535+
* </p>
536+
*
537+
* @param listMedicalVocabulariesRequest
538+
* @return listMedicalVocabulariesResult The response from the
539+
* ListMedicalVocabularies service method, as returned by Amazon
540+
* Transcribe.
541+
* @throws BadRequestException
542+
* @throws LimitExceededException
543+
* @throws InternalFailureException
544+
* @throws AmazonClientException If any internal errors are encountered
545+
* inside the client while attempting to make the request or
546+
* handle the response. For example if a network connection is
547+
* not available.
548+
* @throws AmazonServiceException If an error response is returned by Amazon
549+
* Transcribe indicating either a problem with the data in the
550+
* request, or a server side issue.
551+
*/
552+
ListMedicalVocabulariesResult listMedicalVocabularies(
553+
ListMedicalVocabulariesRequest listMedicalVocabulariesRequest)
554+
throws AmazonClientException, AmazonServiceException;
555+
355556
/**
356557
* <p>
357558
* Lists transcription jobs with the specified status.
@@ -425,7 +626,7 @@ ListVocabularyFiltersResult listVocabularyFilters(
425626

426627
/**
427628
* <p>
428-
* Start a batch job to transcribe medical speech to text.
629+
* Starts a batch job to transcribe medical speech to text.
429630
* </p>
430631
*
431632
* @param startMedicalTranscriptionJobRequest
@@ -473,6 +674,35 @@ StartTranscriptionJobResult startTranscriptionJob(
473674
StartTranscriptionJobRequest startTranscriptionJobRequest)
474675
throws AmazonClientException, AmazonServiceException;
475676

677+
/**
678+
* <p>
679+
* Updates a vocabulary with new values that you provide in a different text
680+
* file from the one you used to create the vocabulary. The
681+
* <code>UpdateMedicalVocabulary</code> operation overwrites all of the
682+
* existing information with the values that you provide in the request.
683+
* </p>
684+
*
685+
* @param updateMedicalVocabularyRequest
686+
* @return updateMedicalVocabularyResult The response from the
687+
* UpdateMedicalVocabulary service method, as returned by Amazon
688+
* Transcribe.
689+
* @throws BadRequestException
690+
* @throws LimitExceededException
691+
* @throws InternalFailureException
692+
* @throws NotFoundException
693+
* @throws ConflictException
694+
* @throws AmazonClientException If any internal errors are encountered
695+
* inside the client while attempting to make the request or
696+
* handle the response. For example if a network connection is
697+
* not available.
698+
* @throws AmazonServiceException If an error response is returned by Amazon
699+
* Transcribe indicating either a problem with the data in the
700+
* request, or a server side issue.
701+
*/
702+
UpdateMedicalVocabularyResult updateMedicalVocabulary(
703+
UpdateMedicalVocabularyRequest updateMedicalVocabularyRequest)
704+
throws AmazonClientException, AmazonServiceException;
705+
476706
/**
477707
* <p>
478708
* Updates an existing vocabulary with new values. The

0 commit comments

Comments
 (0)