aws-sdk-transcribeservice 1.45.0 → 1.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,9 +14,13 @@ module Aws::TranscribeService
14
14
  include Seahorse::Model
15
15
 
16
16
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
17
+ BaseModelName = Shapes::StringShape.new(name: 'BaseModelName')
17
18
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
19
+ CLMLanguageCode = Shapes::StringShape.new(name: 'CLMLanguageCode')
18
20
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
19
21
  ContentRedaction = Shapes::StructureShape.new(name: 'ContentRedaction')
22
+ CreateLanguageModelRequest = Shapes::StructureShape.new(name: 'CreateLanguageModelRequest')
23
+ CreateLanguageModelResponse = Shapes::StructureShape.new(name: 'CreateLanguageModelResponse')
20
24
  CreateMedicalVocabularyRequest = Shapes::StructureShape.new(name: 'CreateMedicalVocabularyRequest')
21
25
  CreateMedicalVocabularyResponse = Shapes::StructureShape.new(name: 'CreateMedicalVocabularyResponse')
22
26
  CreateVocabularyFilterRequest = Shapes::StructureShape.new(name: 'CreateVocabularyFilterRequest')
@@ -25,11 +29,14 @@ module Aws::TranscribeService
25
29
  CreateVocabularyResponse = Shapes::StructureShape.new(name: 'CreateVocabularyResponse')
26
30
  DataAccessRoleArn = Shapes::StringShape.new(name: 'DataAccessRoleArn')
27
31
  DateTime = Shapes::TimestampShape.new(name: 'DateTime')
32
+ DeleteLanguageModelRequest = Shapes::StructureShape.new(name: 'DeleteLanguageModelRequest')
28
33
  DeleteMedicalTranscriptionJobRequest = Shapes::StructureShape.new(name: 'DeleteMedicalTranscriptionJobRequest')
29
34
  DeleteMedicalVocabularyRequest = Shapes::StructureShape.new(name: 'DeleteMedicalVocabularyRequest')
30
35
  DeleteTranscriptionJobRequest = Shapes::StructureShape.new(name: 'DeleteTranscriptionJobRequest')
31
36
  DeleteVocabularyFilterRequest = Shapes::StructureShape.new(name: 'DeleteVocabularyFilterRequest')
32
37
  DeleteVocabularyRequest = Shapes::StructureShape.new(name: 'DeleteVocabularyRequest')
38
+ DescribeLanguageModelRequest = Shapes::StructureShape.new(name: 'DescribeLanguageModelRequest')
39
+ DescribeLanguageModelResponse = Shapes::StructureShape.new(name: 'DescribeLanguageModelResponse')
33
40
  FailureReason = Shapes::StringShape.new(name: 'FailureReason')
34
41
  GetMedicalTranscriptionJobRequest = Shapes::StructureShape.new(name: 'GetMedicalTranscriptionJobRequest')
35
42
  GetMedicalTranscriptionJobResponse = Shapes::StructureShape.new(name: 'GetMedicalTranscriptionJobResponse')
@@ -41,11 +48,17 @@ module Aws::TranscribeService
41
48
  GetVocabularyFilterResponse = Shapes::StructureShape.new(name: 'GetVocabularyFilterResponse')
42
49
  GetVocabularyRequest = Shapes::StructureShape.new(name: 'GetVocabularyRequest')
43
50
  GetVocabularyResponse = Shapes::StructureShape.new(name: 'GetVocabularyResponse')
51
+ IdentifiedLanguageScore = Shapes::FloatShape.new(name: 'IdentifiedLanguageScore')
52
+ InputDataConfig = Shapes::StructureShape.new(name: 'InputDataConfig')
44
53
  InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
45
54
  JobExecutionSettings = Shapes::StructureShape.new(name: 'JobExecutionSettings')
46
55
  KMSKeyId = Shapes::StringShape.new(name: 'KMSKeyId')
47
56
  LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
57
+ LanguageModel = Shapes::StructureShape.new(name: 'LanguageModel')
58
+ LanguageOptions = Shapes::ListShape.new(name: 'LanguageOptions')
48
59
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
60
+ ListLanguageModelsRequest = Shapes::StructureShape.new(name: 'ListLanguageModelsRequest')
61
+ ListLanguageModelsResponse = Shapes::StructureShape.new(name: 'ListLanguageModelsResponse')
49
62
  ListMedicalTranscriptionJobsRequest = Shapes::StructureShape.new(name: 'ListMedicalTranscriptionJobsRequest')
50
63
  ListMedicalTranscriptionJobsResponse = Shapes::StructureShape.new(name: 'ListMedicalTranscriptionJobsResponse')
51
64
  ListMedicalVocabulariesRequest = Shapes::StructureShape.new(name: 'ListMedicalVocabulariesRequest')
@@ -67,9 +80,14 @@ module Aws::TranscribeService
67
80
  MedicalTranscriptionJobSummaries = Shapes::ListShape.new(name: 'MedicalTranscriptionJobSummaries')
68
81
  MedicalTranscriptionJobSummary = Shapes::StructureShape.new(name: 'MedicalTranscriptionJobSummary')
69
82
  MedicalTranscriptionSetting = Shapes::StructureShape.new(name: 'MedicalTranscriptionSetting')
83
+ ModelName = Shapes::StringShape.new(name: 'ModelName')
84
+ ModelSettings = Shapes::StructureShape.new(name: 'ModelSettings')
85
+ ModelStatus = Shapes::StringShape.new(name: 'ModelStatus')
86
+ Models = Shapes::ListShape.new(name: 'Models')
70
87
  NextToken = Shapes::StringShape.new(name: 'NextToken')
71
88
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
72
89
  OutputBucketName = Shapes::StringShape.new(name: 'OutputBucketName')
90
+ OutputKey = Shapes::StringShape.new(name: 'OutputKey')
73
91
  OutputLocationType = Shapes::StringShape.new(name: 'OutputLocationType')
74
92
  Phrase = Shapes::StringShape.new(name: 'Phrase')
75
93
  Phrases = Shapes::ListShape.new(name: 'Phrases')
@@ -117,6 +135,19 @@ module Aws::TranscribeService
117
135
  ContentRedaction.add_member(:redaction_output, Shapes::ShapeRef.new(shape: RedactionOutput, required: true, location_name: "RedactionOutput"))
118
136
  ContentRedaction.struct_class = Types::ContentRedaction
119
137
 
138
+ CreateLanguageModelRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: CLMLanguageCode, required: true, location_name: "LanguageCode"))
139
+ CreateLanguageModelRequest.add_member(:base_model_name, Shapes::ShapeRef.new(shape: BaseModelName, required: true, location_name: "BaseModelName"))
140
+ CreateLanguageModelRequest.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "ModelName"))
141
+ CreateLanguageModelRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, required: true, location_name: "InputDataConfig"))
142
+ CreateLanguageModelRequest.struct_class = Types::CreateLanguageModelRequest
143
+
144
+ CreateLanguageModelResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: CLMLanguageCode, location_name: "LanguageCode"))
145
+ CreateLanguageModelResponse.add_member(:base_model_name, Shapes::ShapeRef.new(shape: BaseModelName, location_name: "BaseModelName"))
146
+ CreateLanguageModelResponse.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, location_name: "ModelName"))
147
+ CreateLanguageModelResponse.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
148
+ CreateLanguageModelResponse.add_member(:model_status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "ModelStatus"))
149
+ CreateLanguageModelResponse.struct_class = Types::CreateLanguageModelResponse
150
+
120
151
  CreateMedicalVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
121
152
  CreateMedicalVocabularyRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
122
153
  CreateMedicalVocabularyRequest.add_member(:vocabulary_file_uri, Shapes::ShapeRef.new(shape: Uri, required: true, location_name: "VocabularyFileUri"))
@@ -153,6 +184,9 @@ module Aws::TranscribeService
153
184
  CreateVocabularyResponse.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason"))
154
185
  CreateVocabularyResponse.struct_class = Types::CreateVocabularyResponse
155
186
 
187
+ DeleteLanguageModelRequest.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "ModelName"))
188
+ DeleteLanguageModelRequest.struct_class = Types::DeleteLanguageModelRequest
189
+
156
190
  DeleteMedicalTranscriptionJobRequest.add_member(:medical_transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, required: true, location_name: "MedicalTranscriptionJobName"))
157
191
  DeleteMedicalTranscriptionJobRequest.struct_class = Types::DeleteMedicalTranscriptionJobRequest
158
192
 
@@ -168,6 +202,12 @@ module Aws::TranscribeService
168
202
  DeleteVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
169
203
  DeleteVocabularyRequest.struct_class = Types::DeleteVocabularyRequest
170
204
 
205
+ DescribeLanguageModelRequest.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "ModelName"))
206
+ DescribeLanguageModelRequest.struct_class = Types::DescribeLanguageModelRequest
207
+
208
+ DescribeLanguageModelResponse.add_member(:language_model, Shapes::ShapeRef.new(shape: LanguageModel, location_name: "LanguageModel"))
209
+ DescribeLanguageModelResponse.struct_class = Types::DescribeLanguageModelResponse
210
+
171
211
  GetMedicalTranscriptionJobRequest.add_member(:medical_transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, required: true, location_name: "MedicalTranscriptionJobName"))
172
212
  GetMedicalTranscriptionJobRequest.struct_class = Types::GetMedicalTranscriptionJobRequest
173
213
 
@@ -211,6 +251,11 @@ module Aws::TranscribeService
211
251
  GetVocabularyResponse.add_member(:download_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "DownloadUri"))
212
252
  GetVocabularyResponse.struct_class = Types::GetVocabularyResponse
213
253
 
254
+ InputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: Uri, required: true, location_name: "S3Uri"))
255
+ InputDataConfig.add_member(:tuning_data_s3_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "TuningDataS3Uri"))
256
+ InputDataConfig.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: DataAccessRoleArn, required: true, location_name: "DataAccessRoleArn"))
257
+ InputDataConfig.struct_class = Types::InputDataConfig
258
+
214
259
  InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
215
260
  InternalFailureException.struct_class = Types::InternalFailureException
216
261
 
@@ -218,9 +263,32 @@ module Aws::TranscribeService
218
263
  JobExecutionSettings.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: DataAccessRoleArn, location_name: "DataAccessRoleArn"))
219
264
  JobExecutionSettings.struct_class = Types::JobExecutionSettings
220
265
 
266
+ LanguageModel.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, location_name: "ModelName"))
267
+ LanguageModel.add_member(:create_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreateTime"))
268
+ LanguageModel.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime"))
269
+ LanguageModel.add_member(:language_code, Shapes::ShapeRef.new(shape: CLMLanguageCode, location_name: "LanguageCode"))
270
+ LanguageModel.add_member(:base_model_name, Shapes::ShapeRef.new(shape: BaseModelName, location_name: "BaseModelName"))
271
+ LanguageModel.add_member(:model_status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "ModelStatus"))
272
+ LanguageModel.add_member(:upgrade_availability, Shapes::ShapeRef.new(shape: Boolean, location_name: "UpgradeAvailability"))
273
+ LanguageModel.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason"))
274
+ LanguageModel.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
275
+ LanguageModel.struct_class = Types::LanguageModel
276
+
277
+ LanguageOptions.member = Shapes::ShapeRef.new(shape: LanguageCode)
278
+
221
279
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
222
280
  LimitExceededException.struct_class = Types::LimitExceededException
223
281
 
282
+ ListLanguageModelsRequest.add_member(:status_equals, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "StatusEquals"))
283
+ ListLanguageModelsRequest.add_member(:name_contains, Shapes::ShapeRef.new(shape: ModelName, location_name: "NameContains"))
284
+ ListLanguageModelsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
285
+ ListLanguageModelsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
286
+ ListLanguageModelsRequest.struct_class = Types::ListLanguageModelsRequest
287
+
288
+ ListLanguageModelsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
289
+ ListLanguageModelsResponse.add_member(:models, Shapes::ShapeRef.new(shape: Models, location_name: "Models"))
290
+ ListLanguageModelsResponse.struct_class = Types::ListLanguageModelsResponse
291
+
224
292
  ListMedicalTranscriptionJobsRequest.add_member(:status, Shapes::ShapeRef.new(shape: TranscriptionJobStatus, location_name: "Status"))
225
293
  ListMedicalTranscriptionJobsRequest.add_member(:job_name_contains, Shapes::ShapeRef.new(shape: TranscriptionJobName, location_name: "JobNameContains"))
226
294
  ListMedicalTranscriptionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
@@ -318,6 +386,11 @@ module Aws::TranscribeService
318
386
  MedicalTranscriptionSetting.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
319
387
  MedicalTranscriptionSetting.struct_class = Types::MedicalTranscriptionSetting
320
388
 
389
+ ModelSettings.add_member(:language_model_name, Shapes::ShapeRef.new(shape: ModelName, location_name: "LanguageModelName"))
390
+ ModelSettings.struct_class = Types::ModelSettings
391
+
392
+ Models.member = Shapes::ShapeRef.new(shape: LanguageModel)
393
+
321
394
  NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
322
395
  NotFoundException.struct_class = Types::NotFoundException
323
396
 
@@ -339,6 +412,7 @@ module Aws::TranscribeService
339
412
  StartMedicalTranscriptionJobRequest.add_member(:media_format, Shapes::ShapeRef.new(shape: MediaFormat, location_name: "MediaFormat"))
340
413
  StartMedicalTranscriptionJobRequest.add_member(:media, Shapes::ShapeRef.new(shape: Media, required: true, location_name: "Media"))
341
414
  StartMedicalTranscriptionJobRequest.add_member(:output_bucket_name, Shapes::ShapeRef.new(shape: OutputBucketName, required: true, location_name: "OutputBucketName"))
415
+ StartMedicalTranscriptionJobRequest.add_member(:output_key, Shapes::ShapeRef.new(shape: OutputKey, location_name: "OutputKey"))
342
416
  StartMedicalTranscriptionJobRequest.add_member(:output_encryption_kms_key_id, Shapes::ShapeRef.new(shape: KMSKeyId, location_name: "OutputEncryptionKMSKeyId"))
343
417
  StartMedicalTranscriptionJobRequest.add_member(:settings, Shapes::ShapeRef.new(shape: MedicalTranscriptionSetting, location_name: "Settings"))
344
418
  StartMedicalTranscriptionJobRequest.add_member(:specialty, Shapes::ShapeRef.new(shape: Specialty, required: true, location_name: "Specialty"))
@@ -349,15 +423,19 @@ module Aws::TranscribeService
349
423
  StartMedicalTranscriptionJobResponse.struct_class = Types::StartMedicalTranscriptionJobResponse
350
424
 
351
425
  StartTranscriptionJobRequest.add_member(:transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, required: true, location_name: "TranscriptionJobName"))
352
- StartTranscriptionJobRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
426
+ StartTranscriptionJobRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
353
427
  StartTranscriptionJobRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, location_name: "MediaSampleRateHertz"))
354
428
  StartTranscriptionJobRequest.add_member(:media_format, Shapes::ShapeRef.new(shape: MediaFormat, location_name: "MediaFormat"))
355
429
  StartTranscriptionJobRequest.add_member(:media, Shapes::ShapeRef.new(shape: Media, required: true, location_name: "Media"))
356
430
  StartTranscriptionJobRequest.add_member(:output_bucket_name, Shapes::ShapeRef.new(shape: OutputBucketName, location_name: "OutputBucketName"))
431
+ StartTranscriptionJobRequest.add_member(:output_key, Shapes::ShapeRef.new(shape: OutputKey, location_name: "OutputKey"))
357
432
  StartTranscriptionJobRequest.add_member(:output_encryption_kms_key_id, Shapes::ShapeRef.new(shape: KMSKeyId, location_name: "OutputEncryptionKMSKeyId"))
358
433
  StartTranscriptionJobRequest.add_member(:settings, Shapes::ShapeRef.new(shape: Settings, location_name: "Settings"))
434
+ StartTranscriptionJobRequest.add_member(:model_settings, Shapes::ShapeRef.new(shape: ModelSettings, location_name: "ModelSettings"))
359
435
  StartTranscriptionJobRequest.add_member(:job_execution_settings, Shapes::ShapeRef.new(shape: JobExecutionSettings, location_name: "JobExecutionSettings"))
360
436
  StartTranscriptionJobRequest.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
437
+ StartTranscriptionJobRequest.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location_name: "IdentifyLanguage"))
438
+ StartTranscriptionJobRequest.add_member(:language_options, Shapes::ShapeRef.new(shape: LanguageOptions, location_name: "LanguageOptions"))
361
439
  StartTranscriptionJobRequest.struct_class = Types::StartTranscriptionJobRequest
362
440
 
363
441
  StartTranscriptionJobResponse.add_member(:transcription_job, Shapes::ShapeRef.new(shape: TranscriptionJob, location_name: "TranscriptionJob"))
@@ -379,8 +457,12 @@ module Aws::TranscribeService
379
457
  TranscriptionJob.add_member(:completion_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CompletionTime"))
380
458
  TranscriptionJob.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason"))
381
459
  TranscriptionJob.add_member(:settings, Shapes::ShapeRef.new(shape: Settings, location_name: "Settings"))
460
+ TranscriptionJob.add_member(:model_settings, Shapes::ShapeRef.new(shape: ModelSettings, location_name: "ModelSettings"))
382
461
  TranscriptionJob.add_member(:job_execution_settings, Shapes::ShapeRef.new(shape: JobExecutionSettings, location_name: "JobExecutionSettings"))
383
462
  TranscriptionJob.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
463
+ TranscriptionJob.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location_name: "IdentifyLanguage"))
464
+ TranscriptionJob.add_member(:language_options, Shapes::ShapeRef.new(shape: LanguageOptions, location_name: "LanguageOptions"))
465
+ TranscriptionJob.add_member(:identified_language_score, Shapes::ShapeRef.new(shape: IdentifiedLanguageScore, location_name: "IdentifiedLanguageScore"))
384
466
  TranscriptionJob.struct_class = Types::TranscriptionJob
385
467
 
386
468
  TranscriptionJobSummaries.member = Shapes::ShapeRef.new(shape: TranscriptionJobSummary)
@@ -394,6 +476,9 @@ module Aws::TranscribeService
394
476
  TranscriptionJobSummary.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason"))
395
477
  TranscriptionJobSummary.add_member(:output_location_type, Shapes::ShapeRef.new(shape: OutputLocationType, location_name: "OutputLocationType"))
396
478
  TranscriptionJobSummary.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
479
+ TranscriptionJobSummary.add_member(:model_settings, Shapes::ShapeRef.new(shape: ModelSettings, location_name: "ModelSettings"))
480
+ TranscriptionJobSummary.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location_name: "IdentifyLanguage"))
481
+ TranscriptionJobSummary.add_member(:identified_language_score, Shapes::ShapeRef.new(shape: IdentifiedLanguageScore, location_name: "IdentifiedLanguageScore"))
397
482
  TranscriptionJobSummary.struct_class = Types::TranscriptionJobSummary
398
483
 
399
484
  UpdateMedicalVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
@@ -465,6 +550,18 @@ module Aws::TranscribeService
465
550
  "uid" => "transcribe-2017-10-26",
466
551
  }
467
552
 
553
+ api.add_operation(:create_language_model, Seahorse::Model::Operation.new.tap do |o|
554
+ o.name = "CreateLanguageModel"
555
+ o.http_method = "POST"
556
+ o.http_request_uri = "/"
557
+ o.input = Shapes::ShapeRef.new(shape: CreateLanguageModelRequest)
558
+ o.output = Shapes::ShapeRef.new(shape: CreateLanguageModelResponse)
559
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
560
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
561
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
562
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
563
+ end)
564
+
468
565
  api.add_operation(:create_medical_vocabulary, Seahorse::Model::Operation.new.tap do |o|
469
566
  o.name = "CreateMedicalVocabulary"
470
567
  o.http_method = "POST"
@@ -501,6 +598,17 @@ module Aws::TranscribeService
501
598
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
502
599
  end)
503
600
 
601
+ api.add_operation(:delete_language_model, Seahorse::Model::Operation.new.tap do |o|
602
+ o.name = "DeleteLanguageModel"
603
+ o.http_method = "POST"
604
+ o.http_request_uri = "/"
605
+ o.input = Shapes::ShapeRef.new(shape: DeleteLanguageModelRequest)
606
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
607
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
608
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
609
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
610
+ end)
611
+
504
612
  api.add_operation(:delete_medical_transcription_job, Seahorse::Model::Operation.new.tap do |o|
505
613
  o.name = "DeleteMedicalTranscriptionJob"
506
614
  o.http_method = "POST"
@@ -559,6 +667,18 @@ module Aws::TranscribeService
559
667
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
560
668
  end)
561
669
 
670
+ api.add_operation(:describe_language_model, Seahorse::Model::Operation.new.tap do |o|
671
+ o.name = "DescribeLanguageModel"
672
+ o.http_method = "POST"
673
+ o.http_request_uri = "/"
674
+ o.input = Shapes::ShapeRef.new(shape: DescribeLanguageModelRequest)
675
+ o.output = Shapes::ShapeRef.new(shape: DescribeLanguageModelResponse)
676
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
677
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
678
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
679
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
680
+ end)
681
+
562
682
  api.add_operation(:get_medical_transcription_job, Seahorse::Model::Operation.new.tap do |o|
563
683
  o.name = "GetMedicalTranscriptionJob"
564
684
  o.http_method = "POST"
@@ -619,6 +739,23 @@ module Aws::TranscribeService
619
739
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
620
740
  end)
621
741
 
742
+ api.add_operation(:list_language_models, Seahorse::Model::Operation.new.tap do |o|
743
+ o.name = "ListLanguageModels"
744
+ o.http_method = "POST"
745
+ o.http_request_uri = "/"
746
+ o.input = Shapes::ShapeRef.new(shape: ListLanguageModelsRequest)
747
+ o.output = Shapes::ShapeRef.new(shape: ListLanguageModelsResponse)
748
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
749
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
750
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
751
+ o[:pager] = Aws::Pager.new(
752
+ limit_key: "max_results",
753
+ tokens: {
754
+ "next_token" => "next_token"
755
+ }
756
+ )
757
+ end)
758
+
622
759
  api.add_operation(:list_medical_transcription_jobs, Seahorse::Model::Operation.new.tap do |o|
623
760
  o.name = "ListMedicalTranscriptionJobs"
624
761
  o.http_method = "POST"
@@ -11,9 +11,9 @@ module Aws::TranscribeService
11
11
  module Types
12
12
 
13
13
  # Your request didn't pass one or more validation tests. For example,
14
- # if the transcription you're trying to delete doesn't exist or if it
15
- # is in a non-terminal state (for example, it's "in progress"). See
16
- # the exception `Message` field for more information.
14
+ # if the entity that you're trying to delete doesn't exist or if it is
15
+ # in a non-terminal state (for example, it's "in progress"). See the
16
+ # exception `Message` field for more information.
17
17
  #
18
18
  # @!attribute [rw] message
19
19
  # @return [String]
@@ -26,7 +26,7 @@ module Aws::TranscribeService
26
26
  include Aws::Structure
27
27
  end
28
28
 
29
- # The resource name already exists.
29
+ # There is already a resource with that name.
30
30
  #
31
31
  # @!attribute [rw] message
32
32
  # @return [String]
@@ -74,45 +74,134 @@ module Aws::TranscribeService
74
74
  include Aws::Structure
75
75
  end
76
76
 
77
+ # @note When making an API call, you may pass CreateLanguageModelRequest
78
+ # data as a hash:
79
+ #
80
+ # {
81
+ # language_code: "en-US", # required, accepts en-US
82
+ # base_model_name: "NarrowBand", # required, accepts NarrowBand, WideBand
83
+ # model_name: "ModelName", # required
84
+ # input_data_config: { # required
85
+ # s3_uri: "Uri", # required
86
+ # tuning_data_s3_uri: "Uri",
87
+ # data_access_role_arn: "DataAccessRoleArn", # required
88
+ # },
89
+ # }
90
+ #
91
+ # @!attribute [rw] language_code
92
+ # The language of the input text you're using to train your custom
93
+ # language model.
94
+ # @return [String]
95
+ #
96
+ # @!attribute [rw] base_model_name
97
+ # The Amazon Transcribe standard language model, or base model used to
98
+ # create your custom language model.
99
+ #
100
+ # If you want to use your custom language model to transcribe audio
101
+ # with a sample rate of 16 kHz or greater, choose `Wideband`.
102
+ #
103
+ # If you want to use your custom language model to transcribe audio
104
+ # with a sample rate that is less than 16 kHz, choose `Narrowband`.
105
+ # @return [String]
106
+ #
107
+ # @!attribute [rw] model_name
108
+ # The name you choose for your custom language model when you create
109
+ # it.
110
+ # @return [String]
111
+ #
112
+ # @!attribute [rw] input_data_config
113
+ # Contains the data access role and the Amazon S3 prefixes to read the
114
+ # required input files to create a custom language model.
115
+ # @return [Types::InputDataConfig]
116
+ #
117
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateLanguageModelRequest AWS API Documentation
118
+ #
119
+ class CreateLanguageModelRequest < Struct.new(
120
+ :language_code,
121
+ :base_model_name,
122
+ :model_name,
123
+ :input_data_config)
124
+ SENSITIVE = []
125
+ include Aws::Structure
126
+ end
127
+
128
+ # @!attribute [rw] language_code
129
+ # The language code of the text you've used to create a custom
130
+ # language model.
131
+ # @return [String]
132
+ #
133
+ # @!attribute [rw] base_model_name
134
+ # The Amazon Transcribe standard language model, or base model you've
135
+ # used to create a custom language model.
136
+ # @return [String]
137
+ #
138
+ # @!attribute [rw] model_name
139
+ # The name you've chosen for your custom language model.
140
+ # @return [String]
141
+ #
142
+ # @!attribute [rw] input_data_config
143
+ # The data access role and Amazon S3 prefixes you've chosen to create
144
+ # your custom language model.
145
+ # @return [Types::InputDataConfig]
146
+ #
147
+ # @!attribute [rw] model_status
148
+ # The status of the custom language model. When the status is
149
+ # `COMPLETED` the model is ready to use.
150
+ # @return [String]
151
+ #
152
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateLanguageModelResponse AWS API Documentation
153
+ #
154
+ class CreateLanguageModelResponse < Struct.new(
155
+ :language_code,
156
+ :base_model_name,
157
+ :model_name,
158
+ :input_data_config,
159
+ :model_status)
160
+ SENSITIVE = []
161
+ include Aws::Structure
162
+ end
163
+
77
164
  # @note When making an API call, you may pass CreateMedicalVocabularyRequest
78
165
  # data as a hash:
79
166
  #
80
167
  # {
81
168
  # vocabulary_name: "VocabularyName", # required
82
- # language_code: "en-US", # required, accepts en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR, fr-FR, it-IT, ko-KR, es-ES, en-IN, hi-IN, ar-SA, ru-RU, zh-CN, nl-NL, id-ID, ta-IN, fa-IR, en-IE, en-AB, en-WL, pt-PT, te-IN, tr-TR, de-CH, he-IL, ms-MY, ja-JP, ar-AE
169
+ # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
83
170
  # vocabulary_file_uri: "Uri", # required
84
171
  # }
85
172
  #
86
173
  # @!attribute [rw] vocabulary_name
87
174
  # The name of the custom vocabulary. This case-sensitive name must be
88
175
  # unique within an AWS account. If you try to create a vocabulary with
89
- # the same name as a previous vocabulary you will receive a
176
+ # the same name as a previous vocabulary, you get a
90
177
  # `ConflictException` error.
91
178
  # @return [String]
92
179
  #
93
180
  # @!attribute [rw] language_code
94
- # The language code used for the entries within your custom
95
- # vocabulary. The language code of your custom vocabulary must match
96
- # the language code of your transcription job. US English (en-US) is
97
- # the only language code available for Amazon Transcribe Medical.
181
+ # The language code for the language used for the entries in your
182
+ # custom vocabulary. The language code of your custom vocabulary must
183
+ # match the language code of your transcription job. US English
184
+ # (en-US) is the only language code available for Amazon Transcribe
185
+ # Medical.
98
186
  # @return [String]
99
187
  #
100
188
  # @!attribute [rw] vocabulary_file_uri
101
- # The Amazon S3 location of the text file you use to define your
102
- # custom vocabulary. The URI must be in the same AWS region as the API
103
- # endpoint you're calling. Enter information about your
189
+ # The location in Amazon S3 of the text file you use to define your
190
+ # custom vocabulary. The URI must be in the same AWS Region as the
191
+ # resource that you're calling. Enter information about your
104
192
  # `VocabularyFileUri` in the following format:
105
193
  #
106
194
  # `
107
195
  # https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
108
196
  # `
109
197
  #
110
- # This is an example of a vocabulary file uri location in Amazon S3:
198
+ # The following is an example URI for a vocabulary file that is stored
199
+ # in Amazon S3:
111
200
  #
112
201
  # `https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt`
113
202
  #
114
- # For more information about S3 object names, see [Object Keys][1] in
115
- # the *Amazon S3 Developer Guide*.
203
+ # For more information about Amazon S3 object names, see [Object
204
+ # Keys][1] in the *Amazon S3 Developer Guide*.
116
205
  #
117
206
  # For more information about custom vocabularies, see [Medical Custom
118
207
  # Vocabularies][2].
@@ -135,23 +224,23 @@ module Aws::TranscribeService
135
224
 
136
225
  # @!attribute [rw] vocabulary_name
137
226
  # The name of the vocabulary. The name must be unique within an AWS
138
- # account. It is also case-sensitive.
227
+ # account and is case sensitive.
139
228
  # @return [String]
140
229
  #
141
230
  # @!attribute [rw] language_code
142
- # The language code you chose to describe the entries in your custom
143
- # vocabulary. US English (en-US) is the only valid language code for
144
- # Amazon Transcribe Medical.
231
+ # The language code for the entries in your custom vocabulary. US
232
+ # English (en-US) is the only valid language code for Amazon
233
+ # Transcribe Medical.
145
234
  # @return [String]
146
235
  #
147
236
  # @!attribute [rw] vocabulary_state
148
237
  # The processing state of your custom vocabulary in Amazon Transcribe
149
- # Medical. If the state is `READY` you can use the vocabulary in a
238
+ # Medical. If the state is `READY`, you can use the vocabulary in a
150
239
  # `StartMedicalTranscriptionJob` request.
151
240
  # @return [String]
152
241
  #
153
242
  # @!attribute [rw] last_modified_time
154
- # The date and time you created the vocabulary.
243
+ # The date and time that you created the vocabulary.
155
244
  # @return [Time]
156
245
  #
157
246
  # @!attribute [rw] failure_reason
@@ -176,16 +265,16 @@ module Aws::TranscribeService
176
265
  #
177
266
  # {
178
267
  # vocabulary_filter_name: "VocabularyFilterName", # required
179
- # language_code: "en-US", # required, accepts en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR, fr-FR, it-IT, ko-KR, es-ES, en-IN, hi-IN, ar-SA, ru-RU, zh-CN, nl-NL, id-ID, ta-IN, fa-IR, en-IE, en-AB, en-WL, pt-PT, te-IN, tr-TR, de-CH, he-IL, ms-MY, ja-JP, ar-AE
268
+ # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
180
269
  # words: ["Word"],
181
270
  # vocabulary_filter_file_uri: "Uri",
182
271
  # }
183
272
  #
184
273
  # @!attribute [rw] vocabulary_filter_name
185
274
  # The vocabulary filter name. The name must be unique within the
186
- # account that contains it.If you try to create a vocabulary filter
187
- # with the same name as a previous vocabulary filter you will receive
188
- # a `ConflictException` error.
275
+ # account that contains it. If you try to create a vocabulary filter
276
+ # with the same name as another vocabulary filter, you get a
277
+ # `ConflictException` error.
189
278
  # @return [String]
190
279
  #
191
280
  # @!attribute [rw] language_code
@@ -262,14 +351,14 @@ module Aws::TranscribeService
262
351
  #
263
352
  # {
264
353
  # vocabulary_name: "VocabularyName", # required
265
- # language_code: "en-US", # required, accepts en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR, fr-FR, it-IT, ko-KR, es-ES, en-IN, hi-IN, ar-SA, ru-RU, zh-CN, nl-NL, id-ID, ta-IN, fa-IR, en-IE, en-AB, en-WL, pt-PT, te-IN, tr-TR, de-CH, he-IL, ms-MY, ja-JP, ar-AE
354
+ # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
266
355
  # phrases: ["Phrase"],
267
356
  # vocabulary_file_uri: "Uri",
268
357
  # }
269
358
  #
270
359
  # @!attribute [rw] vocabulary_name
271
360
  # The name of the vocabulary. The name must be unique within an AWS
272
- # account. The name is case-sensitive. If you try to create a
361
+ # account. The name is case sensitive. If you try to create a
273
362
  # vocabulary with the same name as a previous vocabulary you will
274
363
  # receive a `ConflictException` error.
275
364
  # @return [String]
@@ -345,6 +434,25 @@ module Aws::TranscribeService
345
434
  include Aws::Structure
346
435
  end
347
436
 
437
+ # @note When making an API call, you may pass DeleteLanguageModelRequest
438
+ # data as a hash:
439
+ #
440
+ # {
441
+ # model_name: "ModelName", # required
442
+ # }
443
+ #
444
+ # @!attribute [rw] model_name
445
+ # The name of the model you're choosing to delete.
446
+ # @return [String]
447
+ #
448
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteLanguageModelRequest AWS API Documentation
449
+ #
450
+ class DeleteLanguageModelRequest < Struct.new(
451
+ :model_name)
452
+ SENSITIVE = []
453
+ include Aws::Structure
454
+ end
455
+
348
456
  # @note When making an API call, you may pass DeleteMedicalTranscriptionJobRequest
349
457
  # data as a hash:
350
458
  #
@@ -373,7 +481,7 @@ module Aws::TranscribeService
373
481
  # }
374
482
  #
375
483
  # @!attribute [rw] vocabulary_name
376
- # The name of the vocabulary you are choosing to delete.
484
+ # The name of the vocabulary that you want to delete.
377
485
  # @return [String]
378
486
  #
379
487
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteMedicalVocabularyRequest AWS API Documentation
@@ -441,6 +549,39 @@ module Aws::TranscribeService
441
549
  include Aws::Structure
442
550
  end
443
551
 
552
+ # @note When making an API call, you may pass DescribeLanguageModelRequest
553
+ # data as a hash:
554
+ #
555
+ # {
556
+ # model_name: "ModelName", # required
557
+ # }
558
+ #
559
+ # @!attribute [rw] model_name
560
+ # The name of the custom language model you submit to get more
561
+ # information.
562
+ # @return [String]
563
+ #
564
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DescribeLanguageModelRequest AWS API Documentation
565
+ #
566
+ class DescribeLanguageModelRequest < Struct.new(
567
+ :model_name)
568
+ SENSITIVE = []
569
+ include Aws::Structure
570
+ end
571
+
572
+ # @!attribute [rw] language_model
573
+ # The name of the custom language model you requested more information
574
+ # about.
575
+ # @return [Types::LanguageModel]
576
+ #
577
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DescribeLanguageModelResponse AWS API Documentation
578
+ #
579
+ class DescribeLanguageModelResponse < Struct.new(
580
+ :language_model)
581
+ SENSITIVE = []
582
+ include Aws::Structure
583
+ end
584
+
444
585
  # @note When making an API call, you may pass GetMedicalTranscriptionJobRequest
445
586
  # data as a hash:
446
587
  #
@@ -481,8 +622,8 @@ module Aws::TranscribeService
481
622
  # }
482
623
  #
483
624
  # @!attribute [rw] vocabulary_name
484
- # The name of the vocabulary you are trying to get information about.
485
- # The value you enter for this request is case-sensitive.
625
+ # The name of the vocabulary that you want information about. The
626
+ # value is case sensitive.
486
627
  # @return [String]
487
628
  #
488
629
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalVocabularyRequest AWS API Documentation
@@ -494,20 +635,22 @@ module Aws::TranscribeService
494
635
  end
495
636
 
496
637
  # @!attribute [rw] vocabulary_name
497
- # The valid name that Amazon Transcribe Medical returns.
638
+ # The name of the vocabulary returned by Amazon Transcribe Medical.
498
639
  # @return [String]
499
640
  #
500
641
  # @!attribute [rw] language_code
501
- # The valid language code returned for your vocabulary entries.
642
+ # The valid language code for your vocabulary entries.
502
643
  # @return [String]
503
644
  #
504
645
  # @!attribute [rw] vocabulary_state
505
- # The processing state of the vocabulary.
646
+ # The processing state of the vocabulary. If the `VocabularyState` is
647
+ # `READY` then you can use it in the `StartMedicalTranscriptionJob`
648
+ # operation.
506
649
  # @return [String]
507
650
  #
508
651
  # @!attribute [rw] last_modified_time
509
- # The date and time the vocabulary was last modified with a text file
510
- # different from what was previously used.
652
+ # The date and time that the vocabulary was last modified with a text
653
+ # file different from the one that was previously used.
511
654
  # @return [Time]
512
655
  #
513
656
  # @!attribute [rw] failure_reason
@@ -516,8 +659,8 @@ module Aws::TranscribeService
516
659
  # @return [String]
517
660
  #
518
661
  # @!attribute [rw] download_uri
519
- # The Amazon S3 location where the vocabulary is stored. Use this URI
520
- # to get the contents of the vocabulary. You can download your
662
+ # The location in Amazon S3 where the vocabulary is stored. Use this
663
+ # URI to get the contents of the vocabulary. You can download your
521
664
  # vocabulary from the URI for a limited time.
522
665
  # @return [String]
523
666
  #
@@ -622,7 +765,7 @@ module Aws::TranscribeService
622
765
  #
623
766
  # @!attribute [rw] vocabulary_name
624
767
  # The name of the vocabulary to return information about. The name is
625
- # case-sensitive.
768
+ # case sensitive.
626
769
  # @return [String]
627
770
  #
628
771
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabularyRequest AWS API Documentation
@@ -673,6 +816,44 @@ module Aws::TranscribeService
673
816
  include Aws::Structure
674
817
  end
675
818
 
819
+ # The object that contains the Amazon S3 object location and access role
820
+ # required to train and tune your custom language model.
821
+ #
822
+ # @note When making an API call, you may pass InputDataConfig
823
+ # data as a hash:
824
+ #
825
+ # {
826
+ # s3_uri: "Uri", # required
827
+ # tuning_data_s3_uri: "Uri",
828
+ # data_access_role_arn: "DataAccessRoleArn", # required
829
+ # }
830
+ #
831
+ # @!attribute [rw] s3_uri
832
+ # The Amazon S3 prefix you specify to access the plain text files that
833
+ # you use to train your custom language model.
834
+ # @return [String]
835
+ #
836
+ # @!attribute [rw] tuning_data_s3_uri
837
+ # The Amazon S3 prefix you specify to access the plain text files that
838
+ # you use to tune your custom language model.
839
+ # @return [String]
840
+ #
841
+ # @!attribute [rw] data_access_role_arn
842
+ # The Amazon Resource Name (ARN) that uniquely identifies the
843
+ # permissions you've given Amazon Transcribe to access your Amazon S3
844
+ # buckets containing your media files or text data.
845
+ # @return [String]
846
+ #
847
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/InputDataConfig AWS API Documentation
848
+ #
849
+ class InputDataConfig < Struct.new(
850
+ :s3_uri,
851
+ :tuning_data_s3_uri,
852
+ :data_access_role_arn)
853
+ SENSITIVE = []
854
+ include Aws::Structure
855
+ end
856
+
676
857
  # There was an internal error. Check the error message and try your
677
858
  # request again.
678
859
  #
@@ -730,6 +911,65 @@ module Aws::TranscribeService
730
911
  include Aws::Structure
731
912
  end
732
913
 
914
+ # The structure used to describe a custom language model.
915
+ #
916
+ # @!attribute [rw] model_name
917
+ # The name of the custom language model.
918
+ # @return [String]
919
+ #
920
+ # @!attribute [rw] create_time
921
+ # The time the custom language model was created.
922
+ # @return [Time]
923
+ #
924
+ # @!attribute [rw] last_modified_time
925
+ # The most recent time the custom language model was modified.
926
+ # @return [Time]
927
+ #
928
+ # @!attribute [rw] language_code
929
+ # The language code you used to create your custom language model.
930
+ # @return [String]
931
+ #
932
+ # @!attribute [rw] base_model_name
933
+ # The Amazon Transcribe standard language model, or base model used to
934
+ # create the custom language model.
935
+ # @return [String]
936
+ #
937
+ # @!attribute [rw] model_status
938
+ # The creation status of a custom language model. When the status is
939
+ # `COMPLETED` the model is ready for use.
940
+ # @return [String]
941
+ #
942
+ # @!attribute [rw] upgrade_availability
943
+ # Whether the base model used for the custom language model is up to
944
+ # date. If this field is `true` then you are running the most
945
+ # up-to-date version of the base model in your custom language model.
946
+ # @return [Boolean]
947
+ #
948
+ # @!attribute [rw] failure_reason
949
+ # The reason why the custom language model couldn't be created.
950
+ # @return [String]
951
+ #
952
+ # @!attribute [rw] input_data_config
953
+ # The data access role and Amazon S3 prefixes for the input files used
954
+ # to train the custom language model.
955
+ # @return [Types::InputDataConfig]
956
+ #
957
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/LanguageModel AWS API Documentation
958
+ #
959
+ class LanguageModel < Struct.new(
960
+ :model_name,
961
+ :create_time,
962
+ :last_modified_time,
963
+ :language_code,
964
+ :base_model_name,
965
+ :model_status,
966
+ :upgrade_availability,
967
+ :failure_reason,
968
+ :input_data_config)
969
+ SENSITIVE = []
970
+ include Aws::Structure
971
+ end
972
+
733
973
  # Either you have sent too many requests or your input file is too long.
734
974
  # Wait before you resend your request, or use a smaller file and resend
735
975
  # the request.
@@ -745,6 +985,72 @@ module Aws::TranscribeService
745
985
  include Aws::Structure
746
986
  end
747
987
 
988
+ # @note When making an API call, you may pass ListLanguageModelsRequest
989
+ # data as a hash:
990
+ #
991
+ # {
992
+ # status_equals: "IN_PROGRESS", # accepts IN_PROGRESS, FAILED, COMPLETED
993
+ # name_contains: "ModelName",
994
+ # next_token: "NextToken",
995
+ # max_results: 1,
996
+ # }
997
+ #
998
+ # @!attribute [rw] status_equals
999
+ # When specified, returns only custom language models with the
1000
+ # specified status. Language models are ordered by creation date, with
1001
+ # the newest models first. If you don't specify a status, Amazon
1002
+ # Transcribe returns all custom language models ordered by date.
1003
+ # @return [String]
1004
+ #
1005
+ # @!attribute [rw] name_contains
1006
+ # When specified, the custom language model names returned contain the
1007
+ # substring you've specified.
1008
+ # @return [String]
1009
+ #
1010
+ # @!attribute [rw] next_token
1011
+ # When included, fetches the next set of jobs if the result of the
1012
+ # previous request was truncated.
1013
+ # @return [String]
1014
+ #
1015
+ # @!attribute [rw] max_results
1016
+ # The maximum number of language models to return in the response. If
1017
+ # there are fewer results in the list, the response contains only the
1018
+ # actual results.
1019
+ # @return [Integer]
1020
+ #
1021
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListLanguageModelsRequest AWS API Documentation
1022
+ #
1023
+ class ListLanguageModelsRequest < Struct.new(
1024
+ :status_equals,
1025
+ :name_contains,
1026
+ :next_token,
1027
+ :max_results)
1028
+ SENSITIVE = []
1029
+ include Aws::Structure
1030
+ end
1031
+
1032
+ # @!attribute [rw] next_token
1033
+ # The operation returns a page of jobs at a time. The maximum size of
1034
+ # the list is set by the MaxResults parameter. If there are more
1035
+ # language models in the list than the page size, Amazon Transcribe
1036
+ # returns the `NextPage` token. Include the token in the next request
1037
+ # to the operation to return the next page of language models.
1038
+ # @return [String]
1039
+ #
1040
+ # @!attribute [rw] models
1041
+ # A list of objects containing information about custom language
1042
+ # models.
1043
+ # @return [Array<Types::LanguageModel>]
1044
+ #
1045
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListLanguageModelsResponse AWS API Documentation
1046
+ #
1047
+ class ListLanguageModelsResponse < Struct.new(
1048
+ :next_token,
1049
+ :models)
1050
+ SENSITIVE = []
1051
+ include Aws::Structure
1052
+ end
1053
+
748
1054
  # @note When making an API call, you may pass ListMedicalTranscriptionJobsRequest
749
1055
  # data as a hash:
750
1056
  #
@@ -832,7 +1138,7 @@ module Aws::TranscribeService
832
1138
  # @!attribute [rw] next_token
833
1139
  # If the result of your previous request to `ListMedicalVocabularies`
834
1140
  # was truncated, include the `NextToken` to fetch the next set of
835
- # jobs.
1141
+ # vocabularies.
836
1142
  # @return [String]
837
1143
  #
838
1144
  # @!attribute [rw] max_results
@@ -840,15 +1146,15 @@ module Aws::TranscribeService
840
1146
  # @return [Integer]
841
1147
  #
842
1148
  # @!attribute [rw] state_equals
843
- # When specified, only returns vocabularies with the `VocabularyState`
844
- # equal to the specified vocabulary state.
1149
+ # When specified, returns only vocabularies with the `VocabularyState`
1150
+ # equal to the specified vocabulary state. Use this field to see which
1151
+ # vocabularies are ready for your medical transcription jobs.
845
1152
  # @return [String]
846
1153
  #
847
1154
  # @!attribute [rw] name_contains
848
- # Returns vocabularies in the list whose name contains the specified
849
- # string. The search is case-insensitive, `ListMedicalVocabularies`
850
- # returns both "vocabularyname" and "VocabularyName" in the
851
- # response list.
1155
+ # Returns vocabularies whose names contain the specified string. The
1156
+ # search is not case sensitive. `ListMedicalVocabularies` returns both
1157
+ # "`vocabularyname`" and "`VocabularyName`".
852
1158
  # @return [String]
853
1159
  #
854
1160
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalVocabulariesRequest AWS API Documentation
@@ -868,16 +1174,17 @@ module Aws::TranscribeService
868
1174
  #
869
1175
  # @!attribute [rw] next_token
870
1176
  # The `ListMedicalVocabularies` operation returns a page of
871
- # vocabularies at a time. The maximum size of the page is set by the
872
- # `MaxResults` parameter. If there are more jobs in the list than the
873
- # page size, Amazon Transcribe Medical returns the `NextPage` token.
874
- # Include the token in the next request to the
875
- # `ListMedicalVocabularies` operation to return the next page of jobs.
1177
+ # vocabularies at a time. You set the maximum number of vocabularies
1178
+ # to return on a page with the `MaxResults` parameter. If there are
1179
+ # more jobs in the list will fit on a page, Amazon Transcribe Medical
1180
+ # returns the `NextPage` token. To return the next page of
1181
+ # vocabularies, include the token in the next request to the
1182
+ # `ListMedicalVocabularies` operation .
876
1183
  # @return [String]
877
1184
  #
878
1185
  # @!attribute [rw] vocabularies
879
- # A list of objects that describe the vocabularies that match the
880
- # search criteria in the request.
1186
+ # A list of objects that describe the vocabularies that match your
1187
+ # search criteria.
881
1188
  # @return [Array<Types::VocabularyInfo>]
882
1189
  #
883
1190
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalVocabulariesResponse AWS API Documentation
@@ -991,8 +1298,8 @@ module Aws::TranscribeService
991
1298
  # @!attribute [rw] name_contains
992
1299
  # When specified, the vocabularies returned in the list are limited to
993
1300
  # vocabularies whose name contains the specified string. The search is
994
- # case-insensitive, `ListVocabularies` returns both "vocabularyname"
995
- # and "VocabularyName" in the response list.
1301
+ # not case sensitive, `ListVocabularies` returns both
1302
+ # "vocabularyname" and "VocabularyName" in the response list.
996
1303
  # @return [String]
997
1304
  #
998
1305
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabulariesRequest AWS API Documentation
@@ -1012,11 +1319,11 @@ module Aws::TranscribeService
1012
1319
  #
1013
1320
  # @!attribute [rw] next_token
1014
1321
  # The `ListVocabularies` operation returns a page of vocabularies at a
1015
- # time. The maximum size of the page is set by the `MaxResults`
1016
- # parameter. If there are more jobs in the list than the page size,
1017
- # Amazon Transcribe returns the `NextPage` token. Include the token in
1018
- # the next request to the `ListVocabularies` operation to return in
1019
- # the next page of jobs.
1322
+ # time. The maximum size of the page is set in the `MaxResults`
1323
+ # parameter. If there are more jobs in the list than will fit on the
1324
+ # page, Amazon Transcribe returns the `NextPage` token. To return in
1325
+ # the next page of jobs, include the token in the next request to the
1326
+ # `ListVocabularies` operation.
1020
1327
  # @return [String]
1021
1328
  #
1022
1329
  # @!attribute [rw] vocabularies
@@ -1145,7 +1452,7 @@ module Aws::TranscribeService
1145
1452
  include Aws::Structure
1146
1453
  end
1147
1454
 
1148
- # The data structure that containts the information for a medical
1455
+ # The data structure that contains the information for a medical
1149
1456
  # transcription job.
1150
1457
  #
1151
1458
  # @!attribute [rw] medical_transcription_job_name
@@ -1227,8 +1534,8 @@ module Aws::TranscribeService
1227
1534
  #
1228
1535
  # * `Invalid file size: file size too large`- The size of your audio
1229
1536
  # file is larger than what Amazon Transcribe Medical can process.
1230
- # For more information, see [Guidlines and Quotas][1] in the *Amazon
1231
- # Transcribe Medical Guide*
1537
+ # For more information, see [Guidelines and Quotas][1] in the
1538
+ # *Amazon Transcribe Medical Guide*
1232
1539
  #
1233
1540
  # * `Invalid number of channels: number of channels too large`- Your
1234
1541
  # audio contains more channels than Amazon Transcribe Medical is
@@ -1366,7 +1673,7 @@ module Aws::TranscribeService
1366
1673
  #
1367
1674
  # @!attribute [rw] show_speaker_labels
1368
1675
  # Determines whether the transcription job uses speaker recognition to
1369
- # identify different speakers in the input audio. Speaker recongition
1676
+ # identify different speakers in the input audio. Speaker recognition
1370
1677
  # labels individual speakers in the audio file. If you set the
1371
1678
  # `ShowSpeakerLabels` field to true, you must also set the maximum
1372
1679
  # number of speaker labels in the `MaxSpeakerLabels` field.
@@ -1431,6 +1738,28 @@ module Aws::TranscribeService
1431
1738
  include Aws::Structure
1432
1739
  end
1433
1740
 
1741
+ # The object used to call your custom language model to your
1742
+ # transcription job.
1743
+ #
1744
+ # @note When making an API call, you may pass ModelSettings
1745
+ # data as a hash:
1746
+ #
1747
+ # {
1748
+ # language_model_name: "ModelName",
1749
+ # }
1750
+ #
1751
+ # @!attribute [rw] language_model_name
1752
+ # The name of your custom language model.
1753
+ # @return [String]
1754
+ #
1755
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ModelSettings AWS API Documentation
1756
+ #
1757
+ class ModelSettings < Struct.new(
1758
+ :language_model_name)
1759
+ SENSITIVE = []
1760
+ include Aws::Structure
1761
+ end
1762
+
1434
1763
  # We can't find the requested resource. Check the name and try your
1435
1764
  # request again.
1436
1765
  #
@@ -1547,13 +1876,14 @@ module Aws::TranscribeService
1547
1876
  #
1548
1877
  # {
1549
1878
  # medical_transcription_job_name: "TranscriptionJobName", # required
1550
- # language_code: "en-US", # required, accepts en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR, fr-FR, it-IT, ko-KR, es-ES, en-IN, hi-IN, ar-SA, ru-RU, zh-CN, nl-NL, id-ID, ta-IN, fa-IR, en-IE, en-AB, en-WL, pt-PT, te-IN, tr-TR, de-CH, he-IL, ms-MY, ja-JP, ar-AE
1879
+ # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
1551
1880
  # media_sample_rate_hertz: 1,
1552
- # media_format: "mp3", # accepts mp3, mp4, wav, flac
1881
+ # media_format: "mp3", # accepts mp3, mp4, wav, flac, ogg, amr, webm
1553
1882
  # media: { # required
1554
1883
  # media_file_uri: "Uri",
1555
1884
  # },
1556
1885
  # output_bucket_name: "OutputBucketName", # required
1886
+ # output_key: "OutputKey",
1557
1887
  # output_encryption_kms_key_id: "KMSKeyId",
1558
1888
  # settings: {
1559
1889
  # show_speaker_labels: false,
@@ -1569,10 +1899,10 @@ module Aws::TranscribeService
1569
1899
  #
1570
1900
  # @!attribute [rw] medical_transcription_job_name
1571
1901
  # The name of the medical transcription job. You can't use the
1572
- # strings "." or ".." by themselves as the job name. The name must
1573
- # also be unique within an AWS account. If you try to create a medical
1574
- # transcription job with the same name as a previous medical
1575
- # transcription job you will receive a `ConflictException` error.
1902
+ # strings "`.`" or "`..`" by themselves as the job name. The name
1903
+ # must also be unique within an AWS account. If you try to create a
1904
+ # medical transcription job with the same name as a previous medical
1905
+ # transcription job, you get a `ConflictException` error.
1576
1906
  # @return [String]
1577
1907
  #
1578
1908
  # @!attribute [rw] language_code
@@ -1624,6 +1954,29 @@ module Aws::TranscribeService
1624
1954
  # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user
1625
1955
  # @return [String]
1626
1956
  #
1957
+ # @!attribute [rw] output_key
1958
+ # You can specify a location in an Amazon S3 bucket to store the
1959
+ # output of your medical transcription job.
1960
+ #
1961
+ # If you don't specify an output key, Amazon Transcribe Medical
1962
+ # stores the output of your transcription job in the Amazon S3 bucket
1963
+ # you specified. By default, the object key is
1964
+ # "your-transcription-job-name.json".
1965
+ #
1966
+ # You can use output keys to specify the Amazon S3 prefix and file
1967
+ # name of the transcription output. For example, specifying the Amazon
1968
+ # S3 prefix, "folder1/folder2/", as an output key would lead to the
1969
+ # output being stored as
1970
+ # "folder1/folder2/your-transcription-job-name.json". If you specify
1971
+ # "my-other-job-name.json" as the output key, the object key is
1972
+ # changed to "my-other-job-name.json". You can use an output key to
1973
+ # change both the prefix and the file name, for example
1974
+ # "folder/my-other-job-name.json".
1975
+ #
1976
+ # If you specify an output key, you must also specify an S3 bucket in
1977
+ # the `OutputBucketName` parameter.
1978
+ # @return [String]
1979
+ #
1627
1980
  # @!attribute [rw] output_encryption_kms_key_id
1628
1981
  # The Amazon Resource Name (ARN) of the AWS Key Management Service
1629
1982
  # (KMS) key used to encrypt the output of the transcription job. The
@@ -1679,6 +2032,7 @@ module Aws::TranscribeService
1679
2032
  :media_format,
1680
2033
  :media,
1681
2034
  :output_bucket_name,
2035
+ :output_key,
1682
2036
  :output_encryption_kms_key_id,
1683
2037
  :settings,
1684
2038
  :specialty,
@@ -1704,13 +2058,14 @@ module Aws::TranscribeService
1704
2058
  #
1705
2059
  # {
1706
2060
  # transcription_job_name: "TranscriptionJobName", # required
1707
- # language_code: "en-US", # required, accepts en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR, fr-FR, it-IT, ko-KR, es-ES, en-IN, hi-IN, ar-SA, ru-RU, zh-CN, nl-NL, id-ID, ta-IN, fa-IR, en-IE, en-AB, en-WL, pt-PT, te-IN, tr-TR, de-CH, he-IL, ms-MY, ja-JP, ar-AE
2061
+ # language_code: "af-ZA", # accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
1708
2062
  # media_sample_rate_hertz: 1,
1709
- # media_format: "mp3", # accepts mp3, mp4, wav, flac
2063
+ # media_format: "mp3", # accepts mp3, mp4, wav, flac, ogg, amr, webm
1710
2064
  # media: { # required
1711
2065
  # media_file_uri: "Uri",
1712
2066
  # },
1713
2067
  # output_bucket_name: "OutputBucketName",
2068
+ # output_key: "OutputKey",
1714
2069
  # output_encryption_kms_key_id: "KMSKeyId",
1715
2070
  # settings: {
1716
2071
  # vocabulary_name: "VocabularyName",
@@ -1722,6 +2077,9 @@ module Aws::TranscribeService
1722
2077
  # vocabulary_filter_name: "VocabularyFilterName",
1723
2078
  # vocabulary_filter_method: "remove", # accepts remove, mask
1724
2079
  # },
2080
+ # model_settings: {
2081
+ # language_model_name: "ModelName",
2082
+ # },
1725
2083
  # job_execution_settings: {
1726
2084
  # allow_deferred_execution: false,
1727
2085
  # data_access_role_arn: "DataAccessRoleArn",
@@ -1730,13 +2088,15 @@ module Aws::TranscribeService
1730
2088
  # redaction_type: "PII", # required, accepts PII
1731
2089
  # redaction_output: "redacted", # required, accepts redacted, redacted_and_unredacted
1732
2090
  # },
2091
+ # identify_language: false,
2092
+ # language_options: ["af-ZA"], # accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
1733
2093
  # }
1734
2094
  #
1735
2095
  # @!attribute [rw] transcription_job_name
1736
- # The name of the job. Note that you can't use the strings "." or
1737
- # ".." by themselves as the job name. The name must also be unique
1738
- # within an AWS account. If you try to create a transcription job with
1739
- # the same name as a previous transcription job you will receive a
2096
+ # The name of the job. You can't use the strings "`.`" or "`..`"
2097
+ # by themselves as the job name. The name must also be unique within
2098
+ # an AWS account. If you try to create a transcription job with the
2099
+ # same name as a previous transcription job, you get a
1740
2100
  # `ConflictException` error.
1741
2101
  # @return [String]
1742
2102
  #
@@ -1795,6 +2155,29 @@ module Aws::TranscribeService
1795
2155
  # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user
1796
2156
  # @return [String]
1797
2157
  #
2158
+ # @!attribute [rw] output_key
2159
+ # You can specify a location in an Amazon S3 bucket to store the
2160
+ # output of your transcription job.
2161
+ #
2162
+ # If you don't specify an output key, Amazon Transcribe stores the
2163
+ # output of your transcription job in the Amazon S3 bucket you
2164
+ # specified. By default, the object key is
2165
+ # "your-transcription-job-name.json".
2166
+ #
2167
+ # You can use output keys to specify the Amazon S3 prefix and file
2168
+ # name of the transcription output. For example, specifying the Amazon
2169
+ # S3 prefix, "folder1/folder2/", as an output key would lead to the
2170
+ # output being stored as
2171
+ # "folder1/folder2/your-transcription-job-name.json". If you specify
2172
+ # "my-other-job-name.json" as the output key, the object key is
2173
+ # changed to "my-other-job-name.json". You can use an output key to
2174
+ # change both the prefix and the file name, for example
2175
+ # "folder/my-other-job-name.json".
2176
+ #
2177
+ # If you specify an output key, you must also specify an S3 bucket in
2178
+ # the `OutputBucketName` parameter.
2179
+ # @return [String]
2180
+ #
1798
2181
  # @!attribute [rw] output_encryption_kms_key_id
1799
2182
  # The Amazon Resource Name (ARN) of the AWS Key Management Service
1800
2183
  # (KMS) key used to encrypt the output of the transcription job. The
@@ -1831,6 +2214,11 @@ module Aws::TranscribeService
1831
2214
  # transcription job.
1832
2215
  # @return [Types::Settings]
1833
2216
  #
2217
+ # @!attribute [rw] model_settings
2218
+ # Choose the custom language model you use for your transcription job
2219
+ # in this parameter.
2220
+ # @return [Types::ModelSettings]
2221
+ #
1834
2222
  # @!attribute [rw] job_execution_settings
1835
2223
  # Provides information about how a transcription job is executed. Use
1836
2224
  # this field to indicate that the job can be queued for deferred
@@ -1843,6 +2231,20 @@ module Aws::TranscribeService
1843
2231
  # redaction.
1844
2232
  # @return [Types::ContentRedaction]
1845
2233
  #
2234
+ # @!attribute [rw] identify_language
2235
+ # Set this field to `true` to enable automatic language
2236
+ # identification. Automatic language identification is disabled by
2237
+ # default. You receive a `BadRequestException` error if you enter a
2238
+ # value for a `LanguageCode`.
2239
+ # @return [Boolean]
2240
+ #
2241
+ # @!attribute [rw] language_options
2242
+ # An object containing a list of languages that might be present in
2243
+ # your collection of audio files. Automatic language identification
2244
+ # chooses a language that best matches the source audio from that
2245
+ # list.
2246
+ # @return [Array<String>]
2247
+ #
1846
2248
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJobRequest AWS API Documentation
1847
2249
  #
1848
2250
  class StartTranscriptionJobRequest < Struct.new(
@@ -1852,10 +2254,14 @@ module Aws::TranscribeService
1852
2254
  :media_format,
1853
2255
  :media,
1854
2256
  :output_bucket_name,
2257
+ :output_key,
1855
2258
  :output_encryption_kms_key_id,
1856
2259
  :settings,
2260
+ :model_settings,
1857
2261
  :job_execution_settings,
1858
- :content_redaction)
2262
+ :content_redaction,
2263
+ :identify_language,
2264
+ :language_options)
1859
2265
  SENSITIVE = []
1860
2266
  include Aws::Structure
1861
2267
  end
@@ -1875,7 +2281,7 @@ module Aws::TranscribeService
1875
2281
  # Identifies the location of a transcription.
1876
2282
  #
1877
2283
  # @!attribute [rw] transcript_file_uri
1878
- # The S3 object location of the the transcript.
2284
+ # The S3 object location of the transcript.
1879
2285
  #
1880
2286
  # Use this URI to access the transcript. If you specified an S3 bucket
1881
2287
  # in the `OutputBucketName` field when you created the job, this is
@@ -1887,7 +2293,7 @@ module Aws::TranscribeService
1887
2293
  # @!attribute [rw] redacted_transcript_file_uri
1888
2294
  # The S3 object location of the redacted transcript.
1889
2295
  #
1890
- # Use this URI to access the redacated transcript. If you specified an
2296
+ # Use this URI to access the redacted transcript. If you specified an
1891
2297
  # S3 bucket in the `OutputBucketName` field when you created the job,
1892
2298
  # this is the URI of that bucket. If you chose to store the transcript
1893
2299
  # in Amazon Transcribe, this is a shareable URL that provides secure
@@ -1996,6 +2402,10 @@ module Aws::TranscribeService
1996
2402
  # when processing the transcription job.
1997
2403
  # @return [Types::Settings]
1998
2404
  #
2405
+ # @!attribute [rw] model_settings
2406
+ # An object containing the details of your custom language model.
2407
+ # @return [Types::ModelSettings]
2408
+ #
1999
2409
  # @!attribute [rw] job_execution_settings
2000
2410
  # Provides information about how a transcription job is executed.
2001
2411
  # @return [Types::JobExecutionSettings]
@@ -2005,6 +2415,23 @@ module Aws::TranscribeService
2005
2415
  # transcription job.
2006
2416
  # @return [Types::ContentRedaction]
2007
2417
  #
2418
+ # @!attribute [rw] identify_language
2419
+ # A value that shows if automatic language identification was enabled
2420
+ # for a transcription job.
2421
+ # @return [Boolean]
2422
+ #
2423
+ # @!attribute [rw] language_options
2424
+ # An object that shows the optional array of languages inputted for
2425
+ # transcription jobs with automatic language identification enabled.
2426
+ # @return [Array<String>]
2427
+ #
2428
+ # @!attribute [rw] identified_language_score
2429
+ # A value between zero and one that Amazon Transcribe assigned to the
2430
+ # language that it identified in the source audio. Larger values
2431
+ # indicate that Amazon Transcribe has higher confidence in the
2432
+ # language it identified.
2433
+ # @return [Float]
2434
+ #
2008
2435
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscriptionJob AWS API Documentation
2009
2436
  #
2010
2437
  class TranscriptionJob < Struct.new(
@@ -2020,8 +2447,12 @@ module Aws::TranscribeService
2020
2447
  :completion_time,
2021
2448
  :failure_reason,
2022
2449
  :settings,
2450
+ :model_settings,
2023
2451
  :job_execution_settings,
2024
- :content_redaction)
2452
+ :content_redaction,
2453
+ :identify_language,
2454
+ :language_options,
2455
+ :identified_language_score)
2025
2456
  SENSITIVE = []
2026
2457
  include Aws::Structure
2027
2458
  end
@@ -2075,6 +2506,23 @@ module Aws::TranscribeService
2075
2506
  # The content redaction settings of the transcription job.
2076
2507
  # @return [Types::ContentRedaction]
2077
2508
  #
2509
+ # @!attribute [rw] model_settings
2510
+ # The object used to call your custom language model to your
2511
+ # transcription job.
2512
+ # @return [Types::ModelSettings]
2513
+ #
2514
+ # @!attribute [rw] identify_language
2515
+ # Whether automatic language identification was enabled for a
2516
+ # transcription job.
2517
+ # @return [Boolean]
2518
+ #
2519
+ # @!attribute [rw] identified_language_score
2520
+ # A value between zero and one that Amazon Transcribe assigned to the
2521
+ # language it identified in the source audio. A higher score indicates
2522
+ # that Amazon Transcribe is more confident in the language it
2523
+ # identified.
2524
+ # @return [Float]
2525
+ #
2078
2526
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscriptionJobSummary AWS API Documentation
2079
2527
  #
2080
2528
  class TranscriptionJobSummary < Struct.new(
@@ -2086,7 +2534,10 @@ module Aws::TranscribeService
2086
2534
  :transcription_job_status,
2087
2535
  :failure_reason,
2088
2536
  :output_location_type,
2089
- :content_redaction)
2537
+ :content_redaction,
2538
+ :model_settings,
2539
+ :identify_language,
2540
+ :identified_language_score)
2090
2541
  SENSITIVE = []
2091
2542
  include Aws::Structure
2092
2543
  end
@@ -2096,27 +2547,27 @@ module Aws::TranscribeService
2096
2547
  #
2097
2548
  # {
2098
2549
  # vocabulary_name: "VocabularyName", # required
2099
- # language_code: "en-US", # required, accepts en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR, fr-FR, it-IT, ko-KR, es-ES, en-IN, hi-IN, ar-SA, ru-RU, zh-CN, nl-NL, id-ID, ta-IN, fa-IR, en-IE, en-AB, en-WL, pt-PT, te-IN, tr-TR, de-CH, he-IL, ms-MY, ja-JP, ar-AE
2550
+ # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
2100
2551
  # vocabulary_file_uri: "Uri",
2101
2552
  # }
2102
2553
  #
2103
2554
  # @!attribute [rw] vocabulary_name
2104
- # The name of the vocabulary to update. The name is case-sensitive. If
2105
- # you try to update a vocabulary with the same name as a previous
2106
- # vocabulary you will receive a `ConflictException` error.
2555
+ # The name of the vocabulary to update. The name is case sensitive. If
2556
+ # you try to update a vocabulary with the same name as a vocabulary
2557
+ # you've already made, you get a `ConflictException` error.
2107
2558
  # @return [String]
2108
2559
  #
2109
2560
  # @!attribute [rw] language_code
2110
- # The language code of the entries in the updated vocabulary. US
2111
- # English (en-US) is the only valid language code in Amazon Transcribe
2112
- # Medical.
2561
+ # The language code of the language used for the entries in the
2562
+ # updated vocabulary. US English (en-US) is the only valid language
2563
+ # code in Amazon Transcribe Medical.
2113
2564
  # @return [String]
2114
2565
  #
2115
2566
  # @!attribute [rw] vocabulary_file_uri
2116
- # The Amazon S3 location of the text file containing the definition of
2117
- # the custom vocabulary. The URI must be in the same AWS region as the
2118
- # API endpoint you are calling. You can see the fields you need to
2119
- # enter for you Amazon S3 location in the example URI here:
2567
+ # The location in Amazon S3 of the text file that contains the you use
2568
+ # for your custom vocabulary. The URI must be in the same AWS Region
2569
+ # as the resource that you are calling. The following is the format
2570
+ # for a URI:
2120
2571
  #
2121
2572
  # `
2122
2573
  # https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
@@ -2126,8 +2577,8 @@ module Aws::TranscribeService
2126
2577
  #
2127
2578
  # `https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt`
2128
2579
  #
2129
- # For more information about S3 object names, see [Object Keys][1] in
2130
- # the *Amazon S3 Developer Guide*.
2580
+ # For more information about Amazon S3 object names, see [Object
2581
+ # Keys][1] in the *Amazon S3 Developer Guide*.
2131
2582
  #
2132
2583
  # For more information about custom vocabularies in Amazon Transcribe
2133
2584
  # Medical, see [Medical Custom Vocabularies][2].
@@ -2153,18 +2604,18 @@ module Aws::TranscribeService
2153
2604
  # @return [String]
2154
2605
  #
2155
2606
  # @!attribute [rw] language_code
2156
- # The language code for the text file used to update the custom
2157
- # vocabulary. US English (en-US) is the only language supported in
2158
- # Amazon Transcribe Medical.
2607
+ # The language code for the language of the text file used to update
2608
+ # the custom vocabulary. US English (en-US) is the only language
2609
+ # supported in Amazon Transcribe Medical.
2159
2610
  # @return [String]
2160
2611
  #
2161
2612
  # @!attribute [rw] last_modified_time
2162
- # The date and time the vocabulary was updated.
2613
+ # The date and time that the vocabulary was updated.
2163
2614
  # @return [Time]
2164
2615
  #
2165
2616
  # @!attribute [rw] vocabulary_state
2166
2617
  # The processing state of the update to the vocabulary. When the
2167
- # `VocabularyState` field is `READY` the vocabulary is ready to be
2618
+ # `VocabularyState` field is `READY`, the vocabulary is ready to be
2168
2619
  # used in a `StartMedicalTranscriptionJob` request.
2169
2620
  # @return [String]
2170
2621
  #
@@ -2190,8 +2641,8 @@ module Aws::TranscribeService
2190
2641
  #
2191
2642
  # @!attribute [rw] vocabulary_filter_name
2192
2643
  # The name of the vocabulary filter to update. If you try to update a
2193
- # vocabulary filter with the same name as a previous vocabulary filter
2194
- # you will receive a `ConflictException` error.
2644
+ # vocabulary filter with the same name as another vocabulary filter,
2645
+ # you get a `ConflictException` error.
2195
2646
  # @return [String]
2196
2647
  #
2197
2648
  # @!attribute [rw] words
@@ -2261,13 +2712,13 @@ module Aws::TranscribeService
2261
2712
  #
2262
2713
  # {
2263
2714
  # vocabulary_name: "VocabularyName", # required
2264
- # language_code: "en-US", # required, accepts en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR, fr-FR, it-IT, ko-KR, es-ES, en-IN, hi-IN, ar-SA, ru-RU, zh-CN, nl-NL, id-ID, ta-IN, fa-IR, en-IE, en-AB, en-WL, pt-PT, te-IN, tr-TR, de-CH, he-IL, ms-MY, ja-JP, ar-AE
2715
+ # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
2265
2716
  # phrases: ["Phrase"],
2266
2717
  # vocabulary_file_uri: "Uri",
2267
2718
  # }
2268
2719
  #
2269
2720
  # @!attribute [rw] vocabulary_name
2270
- # The name of the vocabulary to update. The name is case-sensitive. If
2721
+ # The name of the vocabulary to update. The name is case sensitive. If
2271
2722
  # you try to update a vocabulary with the same name as a previous
2272
2723
  # vocabulary you will receive a `ConflictException` error.
2273
2724
  # @return [String]