@aws-sdk/client-transcribe 3.55.0 → 3.56.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-transcribe:** This release adds an additional parameter for subtitling with Amazon Transcribe batch jobs: outputStartIndex. ([8419c39](https://github.com/aws/aws-sdk-js-v3/commit/8419c399cdb580fa608d4df09f588fe67664ab47))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-transcribe
@@ -2766,6 +2766,8 @@ const serializeAws_json1_1Subtitles = (input, context) => {
2766
2766
  return {
2767
2767
  ...(input.Formats !== undefined &&
2768
2768
  input.Formats !== null && { Formats: serializeAws_json1_1SubtitleFormats(input.Formats, context) }),
2769
+ ...(input.OutputStartIndex !== undefined &&
2770
+ input.OutputStartIndex !== null && { OutputStartIndex: input.OutputStartIndex }),
2769
2771
  };
2770
2772
  };
2771
2773
  const serializeAws_json1_1Tag = (input, context) => {
@@ -3575,6 +3577,7 @@ const deserializeAws_json1_1SubtitlesOutput = (output, context) => {
3575
3577
  Formats: output.Formats !== undefined && output.Formats !== null
3576
3578
  ? deserializeAws_json1_1SubtitleFormats(output.Formats, context)
3577
3579
  : undefined,
3580
+ OutputStartIndex: (0, smithy_client_1.expectInt32)(output.OutputStartIndex),
3578
3581
  SubtitleFileUris: output.SubtitleFileUris !== undefined && output.SubtitleFileUris !== null
3579
3582
  ? deserializeAws_json1_1SubtitleFileUris(output.SubtitleFileUris, context)
3580
3583
  : undefined,
@@ -3258,8 +3258,9 @@ var serializeAws_json1_1SubtitleFormats = function (input, context) {
3258
3258
  });
3259
3259
  };
3260
3260
  var serializeAws_json1_1Subtitles = function (input, context) {
3261
- return __assign({}, (input.Formats !== undefined &&
3262
- input.Formats !== null && { Formats: serializeAws_json1_1SubtitleFormats(input.Formats, context) }));
3261
+ return __assign(__assign({}, (input.Formats !== undefined &&
3262
+ input.Formats !== null && { Formats: serializeAws_json1_1SubtitleFormats(input.Formats, context) })), (input.OutputStartIndex !== undefined &&
3263
+ input.OutputStartIndex !== null && { OutputStartIndex: input.OutputStartIndex }));
3263
3264
  };
3264
3265
  var serializeAws_json1_1Tag = function (input, context) {
3265
3266
  return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
@@ -4035,6 +4036,7 @@ var deserializeAws_json1_1SubtitlesOutput = function (output, context) {
4035
4036
  Formats: output.Formats !== undefined && output.Formats !== null
4036
4037
  ? deserializeAws_json1_1SubtitleFormats(output.Formats, context)
4037
4038
  : undefined,
4039
+ OutputStartIndex: __expectInt32(output.OutputStartIndex),
4038
4040
  SubtitleFileUris: output.SubtitleFileUris !== undefined && output.SubtitleFileUris !== null
4039
4041
  ? deserializeAws_json1_1SubtitleFileUris(output.SubtitleFileUris, context)
4040
4042
  : undefined,
@@ -381,7 +381,7 @@ export interface CallAnalyticsJob {
381
381
  */
382
382
  LanguageCode?: LanguageCode | string;
383
383
  /**
384
- * <p>The sample rate, in Hertz, of the audio.</p>
384
+ * <p>The sample rate, in Hertz, of the input audio.</p>
385
385
  */
386
386
  MediaSampleRateHertz?: number;
387
387
  /**
@@ -1980,13 +1980,14 @@ export declare enum SubtitleFormat {
1980
1980
  VTT = "vtt"
1981
1981
  }
1982
1982
  /**
1983
- * <p>Choose the output format for your subtitle file and the S3 location where you want
1984
- * your file saved.</p>
1983
+ * <p>The S3 location where your subtitle files are located. Note that your subtitle files are
1984
+ * placed in the same location as your transcription output. Refer to
1985
+ * <code>TranscriptFileUri</code> to download your files.</p>
1985
1986
  */
1986
1987
  export interface SubtitlesOutput {
1987
1988
  /**
1988
- * <p>Specify the output format for your subtitle file; if you select both SRT and VTT formats,
1989
- * two output files are generated.</p>
1989
+ * <p>The format of your subtitle files. If your request specified both <code>srt</code> and
1990
+ * <code>vtt</code> formats, both formats are shown.</p>
1990
1991
  */
1991
1992
  Formats?: (SubtitleFormat | string)[];
1992
1993
  /**
@@ -1994,6 +1995,11 @@ export interface SubtitlesOutput {
1994
1995
  * bucket.</p>
1995
1996
  */
1996
1997
  SubtitleFileUris?: string[];
1998
+ /**
1999
+ * <p>Shows the output start index value for your subtitle files. If you did not specify a value
2000
+ * in your request, the default value of <code>0</code> is used.</p>
2001
+ */
2002
+ OutputStartIndex?: number;
1997
2003
  }
1998
2004
  export declare namespace SubtitlesOutput {
1999
2005
  /**
@@ -3139,13 +3145,23 @@ export declare namespace StartMedicalTranscriptionJobResponse {
3139
3145
  const filterSensitiveLog: (obj: StartMedicalTranscriptionJobResponse) => any;
3140
3146
  }
3141
3147
  /**
3142
- * <p>Generate subtitles for your batch transcription job.</p>
3148
+ * <p>Generate subtitles for your batch transcription job. Note that your subtitle files are
3149
+ * placed in the same location as your transcription output.</p>
3143
3150
  */
3144
3151
  export interface Subtitles {
3145
3152
  /**
3146
- * <p>Specify the output format for your subtitle file.</p>
3153
+ * <p>Specify the output format for your subtitle file; if you select both <code>srt</code> and
3154
+ * <code>vtt</code> formats, two output files are generated.</p>
3147
3155
  */
3148
3156
  Formats?: (SubtitleFormat | string)[];
3157
+ /**
3158
+ * <p>Defines the starting value that is assigned to the first subtitle segment.</p>
3159
+ * <p>The default start index for Amazon Transcribe is <code>0</code>, which differs from
3160
+ * the more widely used standard of <code>1</code>. If you're uncertain which value to use,
3161
+ * we recommend choosing <code>1</code>, as this may improve compatibility with other
3162
+ * services.</p>
3163
+ */
3164
+ OutputStartIndex?: number;
3149
3165
  }
3150
3166
  export declare namespace Subtitles {
3151
3167
  /**
@@ -3162,7 +3178,9 @@ export interface StartTranscriptionJobRequest {
3162
3178
  */
3163
3179
  TranscriptionJobName: string | undefined;
3164
3180
  /**
3165
- * <p>The language code for the language used in the input media file.</p>
3181
+ * <p>The language code for the language used in the input media file. You must include
3182
+ * either <code>LanguageCode</code> or <code>IdentifyLanguage</code> in your
3183
+ * request.</p>
3166
3184
  * <p>To transcribe speech in Modern Standard Arabic (ar-SA), your audio or video file must
3167
3185
  * be encoded at a sample rate of 16,000 Hz or higher.</p>
3168
3186
  */
@@ -3282,6 +3300,8 @@ export interface StartTranscriptionJobRequest {
3282
3300
  * Automatic language identification is disabled by default. You receive a
3283
3301
  * <code>BadRequestException</code> error if you enter a value for a
3284
3302
  * <code>LanguageCode</code>.</p>
3303
+ * <p>You must include either <code>LanguageCode</code> or
3304
+ * <code>IdentifyLanguage</code> in your request.</p>
3285
3305
  */
3286
3306
  IdentifyLanguage?: boolean;
3287
3307
  /**
@@ -3317,7 +3337,7 @@ export declare namespace StartTranscriptionJobRequest {
3317
3337
  }
3318
3338
  export interface StartTranscriptionJobResponse {
3319
3339
  /**
3320
- * <p>An object containing details of the asynchronous transcription job.</p>
3340
+ * <p>Provides information about your asynchronous transcription job.</p>
3321
3341
  */
3322
3342
  TranscriptionJob?: TranscriptionJob;
3323
3343
  }
@@ -965,6 +965,8 @@ export interface SubtitlesOutput {
965
965
  Formats?: (SubtitleFormat | string)[];
966
966
 
967
967
  SubtitleFileUris?: string[];
968
+
969
+ OutputStartIndex?: number;
968
970
  }
969
971
  export declare namespace SubtitlesOutput {
970
972
 
@@ -1459,6 +1461,8 @@ export declare namespace StartMedicalTranscriptionJobResponse {
1459
1461
  export interface Subtitles {
1460
1462
 
1461
1463
  Formats?: (SubtitleFormat | string)[];
1464
+
1465
+ OutputStartIndex?: number;
1462
1466
  }
1463
1467
  export declare namespace Subtitles {
1464
1468
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-transcribe",
3
3
  "description": "AWS SDK for JavaScript Transcribe Client for Node.js, Browser and React Native",
4
- "version": "3.55.0",
4
+ "version": "3.56.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,21 +18,21 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.55.0",
22
- "@aws-sdk/config-resolver": "3.55.0",
23
- "@aws-sdk/credential-provider-node": "3.55.0",
21
+ "@aws-sdk/client-sts": "3.56.0",
22
+ "@aws-sdk/config-resolver": "3.56.0",
23
+ "@aws-sdk/credential-provider-node": "3.56.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.55.0",
25
25
  "@aws-sdk/hash-node": "3.55.0",
26
26
  "@aws-sdk/invalid-dependency": "3.55.0",
27
27
  "@aws-sdk/middleware-content-length": "3.55.0",
28
28
  "@aws-sdk/middleware-host-header": "3.55.0",
29
29
  "@aws-sdk/middleware-logger": "3.55.0",
30
- "@aws-sdk/middleware-retry": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.56.0",
31
31
  "@aws-sdk/middleware-serde": "3.55.0",
32
- "@aws-sdk/middleware-signing": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.56.0",
33
33
  "@aws-sdk/middleware-stack": "3.55.0",
34
34
  "@aws-sdk/middleware-user-agent": "3.55.0",
35
- "@aws-sdk/node-config-provider": "3.55.0",
35
+ "@aws-sdk/node-config-provider": "3.56.0",
36
36
  "@aws-sdk/node-http-handler": "3.55.0",
37
37
  "@aws-sdk/protocol-http": "3.55.0",
38
38
  "@aws-sdk/smithy-client": "3.55.0",
@@ -43,9 +43,9 @@
43
43
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
44
  "@aws-sdk/util-body-length-node": "3.55.0",
45
45
  "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.55.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.56.0",
47
47
  "@aws-sdk/util-user-agent-browser": "3.55.0",
48
- "@aws-sdk/util-user-agent-node": "3.55.0",
48
+ "@aws-sdk/util-user-agent-node": "3.56.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.55.0",
50
50
  "@aws-sdk/util-utf8-node": "3.55.0",
51
51
  "tslib": "^2.3.1"