@aws-sdk/client-polly 3.50.0 → 3.53.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/PollyServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +275 -1
  5. package/dist-cjs/protocols/Aws_restJson1.js +219 -490
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/PollyServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +254 -1
  9. package/dist-es/protocols/Aws_restJson1.js +291 -548
  10. package/dist-types/index.d.ts +1 -0
  11. package/dist-types/models/PollyServiceException.d.ts +10 -0
  12. package/dist-types/models/models_0.d.ts +149 -85
  13. package/dist-types/ts3.4/Polly.d.ts +50 -0
  14. package/dist-types/ts3.4/PollyClient.d.ts +82 -0
  15. package/dist-types/ts3.4/commands/DeleteLexiconCommand.d.ts +17 -0
  16. package/dist-types/ts3.4/commands/DescribeVoicesCommand.d.ts +17 -0
  17. package/dist-types/ts3.4/commands/GetLexiconCommand.d.ts +17 -0
  18. package/dist-types/ts3.4/commands/GetSpeechSynthesisTaskCommand.d.ts +17 -0
  19. package/dist-types/ts3.4/commands/ListLexiconsCommand.d.ts +17 -0
  20. package/dist-types/ts3.4/commands/ListSpeechSynthesisTasksCommand.d.ts +17 -0
  21. package/dist-types/ts3.4/commands/PutLexiconCommand.d.ts +17 -0
  22. package/dist-types/ts3.4/commands/StartSpeechSynthesisTaskCommand.d.ts +17 -0
  23. package/dist-types/ts3.4/commands/SynthesizeSpeechCommand.d.ts +17 -0
  24. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  25. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  26. package/dist-types/ts3.4/index.d.ts +6 -0
  27. package/dist-types/ts3.4/models/PollyServiceException.d.ts +6 -0
  28. package/dist-types/ts3.4/models/index.d.ts +1 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +481 -0
  30. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  31. package/dist-types/ts3.4/pagination/ListSpeechSynthesisTasksPaginator.d.ts +4 -0
  32. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  33. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +29 -0
  34. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  35. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  36. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  37. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  38. package/package.json +33 -33
@@ -3,3 +3,4 @@ export * from "./PollyClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { PollyServiceException } from "./models/PollyServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from Polly service.
4
+ */
5
+ export declare class PollyServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,6 +1,7 @@
1
1
  /// <reference types="node" />
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
3
3
  import { Readable } from "stream";
4
+ import { PollyServiceException as __BaseException } from "./PollyServiceException";
4
5
  export interface DeleteLexiconInput {
5
6
  /**
6
7
  * <p>The name of the lexicon to delete. Must be an existing lexicon in
@@ -29,18 +30,24 @@ export declare namespace DeleteLexiconOutput {
29
30
  * <p>Verify that the lexicon exists, is in the region (see <a>ListLexicons</a>) and that you spelled its name is spelled
30
31
  * correctly. Then try again.</p>
31
32
  */
32
- export interface LexiconNotFoundException extends __SmithyException, $MetadataBearer {
33
- name: "LexiconNotFoundException";
34
- $fault: "client";
35
- message?: string;
33
+ export declare class LexiconNotFoundException extends __BaseException {
34
+ readonly name: "LexiconNotFoundException";
35
+ readonly $fault: "client";
36
+ /**
37
+ * @internal
38
+ */
39
+ constructor(opts: __ExceptionOptionType<LexiconNotFoundException, __BaseException>);
36
40
  }
37
41
  /**
38
42
  * <p>An unknown condition has caused a service failure.</p>
39
43
  */
40
- export interface ServiceFailureException extends __SmithyException, $MetadataBearer {
41
- name: "ServiceFailureException";
42
- $fault: "server";
43
- message?: string;
44
+ export declare class ServiceFailureException extends __BaseException {
45
+ readonly name: "ServiceFailureException";
46
+ readonly $fault: "server";
47
+ /**
48
+ * @internal
49
+ */
50
+ constructor(opts: __ExceptionOptionType<ServiceFailureException, __BaseException>);
44
51
  }
45
52
  export declare enum Engine {
46
53
  NEURAL = "neural",
@@ -154,20 +161,26 @@ export declare namespace DescribeVoicesOutput {
154
161
  * <p>The NextToken is invalid. Verify that it's spelled correctly, and
155
162
  * then try again.</p>
156
163
  */
157
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
158
- name: "InvalidNextTokenException";
159
- $fault: "client";
160
- message?: string;
164
+ export declare class InvalidNextTokenException extends __BaseException {
165
+ readonly name: "InvalidNextTokenException";
166
+ readonly $fault: "client";
167
+ /**
168
+ * @internal
169
+ */
170
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
161
171
  }
162
172
  /**
163
173
  * <p>This engine is not compatible with the voice that you have designated.
164
174
  * Choose a new voice that is compatible with the engine or change the engine
165
175
  * and restart the operation.</p>
166
176
  */
167
- export interface EngineNotSupportedException extends __SmithyException, $MetadataBearer {
168
- name: "EngineNotSupportedException";
169
- $fault: "client";
170
- message?: string;
177
+ export declare class EngineNotSupportedException extends __BaseException {
178
+ readonly name: "EngineNotSupportedException";
179
+ readonly $fault: "client";
180
+ /**
181
+ * @internal
182
+ */
183
+ constructor(opts: __ExceptionOptionType<EngineNotSupportedException, __BaseException>);
171
184
  }
172
185
  export interface GetLexiconInput {
173
186
  /**
@@ -407,81 +420,108 @@ export declare namespace GetSpeechSynthesisTaskOutput {
407
420
  * <p>The provided Task ID is not valid. Please provide a valid Task ID and
408
421
  * try again.</p>
409
422
  */
410
- export interface InvalidTaskIdException extends __SmithyException, $MetadataBearer {
411
- name: "InvalidTaskIdException";
412
- $fault: "client";
413
- message?: string;
423
+ export declare class InvalidTaskIdException extends __BaseException {
424
+ readonly name: "InvalidTaskIdException";
425
+ readonly $fault: "client";
426
+ /**
427
+ * @internal
428
+ */
429
+ constructor(opts: __ExceptionOptionType<InvalidTaskIdException, __BaseException>);
414
430
  }
415
431
  /**
416
432
  * <p>The Speech Synthesis task with requested Task ID cannot be
417
433
  * found.</p>
418
434
  */
419
- export interface SynthesisTaskNotFoundException extends __SmithyException, $MetadataBearer {
420
- name: "SynthesisTaskNotFoundException";
421
- $fault: "client";
422
- message?: string;
435
+ export declare class SynthesisTaskNotFoundException extends __BaseException {
436
+ readonly name: "SynthesisTaskNotFoundException";
437
+ readonly $fault: "client";
438
+ /**
439
+ * @internal
440
+ */
441
+ constructor(opts: __ExceptionOptionType<SynthesisTaskNotFoundException, __BaseException>);
423
442
  }
424
443
  /**
425
444
  * <p>Amazon Polly can't find the specified lexicon. Verify that the lexicon's
426
445
  * name is spelled correctly, and then try again.</p>
427
446
  */
428
- export interface InvalidLexiconException extends __SmithyException, $MetadataBearer {
429
- name: "InvalidLexiconException";
430
- $fault: "client";
431
- message?: string;
447
+ export declare class InvalidLexiconException extends __BaseException {
448
+ readonly name: "InvalidLexiconException";
449
+ readonly $fault: "client";
450
+ /**
451
+ * @internal
452
+ */
453
+ constructor(opts: __ExceptionOptionType<InvalidLexiconException, __BaseException>);
432
454
  }
433
455
  /**
434
456
  * <p>The provided Amazon S3 bucket name is invalid. Please check your input
435
457
  * with S3 bucket naming requirements and try again.</p>
436
458
  */
437
- export interface InvalidS3BucketException extends __SmithyException, $MetadataBearer {
438
- name: "InvalidS3BucketException";
439
- $fault: "client";
440
- message?: string;
459
+ export declare class InvalidS3BucketException extends __BaseException {
460
+ readonly name: "InvalidS3BucketException";
461
+ readonly $fault: "client";
462
+ /**
463
+ * @internal
464
+ */
465
+ constructor(opts: __ExceptionOptionType<InvalidS3BucketException, __BaseException>);
441
466
  }
442
467
  /**
443
468
  * <p>The provided Amazon S3 key prefix is invalid. Please provide a valid
444
469
  * S3 object key name.</p>
445
470
  */
446
- export interface InvalidS3KeyException extends __SmithyException, $MetadataBearer {
447
- name: "InvalidS3KeyException";
448
- $fault: "client";
449
- message?: string;
471
+ export declare class InvalidS3KeyException extends __BaseException {
472
+ readonly name: "InvalidS3KeyException";
473
+ readonly $fault: "client";
474
+ /**
475
+ * @internal
476
+ */
477
+ constructor(opts: __ExceptionOptionType<InvalidS3KeyException, __BaseException>);
450
478
  }
451
479
  /**
452
480
  * <p>The specified sample rate is not valid.</p>
453
481
  */
454
- export interface InvalidSampleRateException extends __SmithyException, $MetadataBearer {
455
- name: "InvalidSampleRateException";
456
- $fault: "client";
457
- message?: string;
482
+ export declare class InvalidSampleRateException extends __BaseException {
483
+ readonly name: "InvalidSampleRateException";
484
+ readonly $fault: "client";
485
+ /**
486
+ * @internal
487
+ */
488
+ constructor(opts: __ExceptionOptionType<InvalidSampleRateException, __BaseException>);
458
489
  }
459
490
  /**
460
491
  * <p>The provided SNS topic ARN is invalid. Please provide a valid SNS
461
492
  * topic ARN and try again.</p>
462
493
  */
463
- export interface InvalidSnsTopicArnException extends __SmithyException, $MetadataBearer {
464
- name: "InvalidSnsTopicArnException";
465
- $fault: "client";
466
- message?: string;
494
+ export declare class InvalidSnsTopicArnException extends __BaseException {
495
+ readonly name: "InvalidSnsTopicArnException";
496
+ readonly $fault: "client";
497
+ /**
498
+ * @internal
499
+ */
500
+ constructor(opts: __ExceptionOptionType<InvalidSnsTopicArnException, __BaseException>);
467
501
  }
468
502
  /**
469
503
  * <p>The SSML you provided is invalid. Verify the SSML syntax, spelling
470
504
  * of tags and values, and then try again.</p>
471
505
  */
472
- export interface InvalidSsmlException extends __SmithyException, $MetadataBearer {
473
- name: "InvalidSsmlException";
474
- $fault: "client";
475
- message?: string;
506
+ export declare class InvalidSsmlException extends __BaseException {
507
+ readonly name: "InvalidSsmlException";
508
+ readonly $fault: "client";
509
+ /**
510
+ * @internal
511
+ */
512
+ constructor(opts: __ExceptionOptionType<InvalidSsmlException, __BaseException>);
476
513
  }
477
514
  /**
478
515
  * <p>The language specified is not currently supported by Amazon Polly in this
479
516
  * capacity.</p>
480
517
  */
481
- export interface LanguageNotSupportedException extends __SmithyException, $MetadataBearer {
482
- name: "LanguageNotSupportedException";
483
- $fault: "client";
484
- message?: string;
518
+ export declare class LanguageNotSupportedException extends __BaseException {
519
+ readonly name: "LanguageNotSupportedException";
520
+ readonly $fault: "client";
521
+ /**
522
+ * @internal
523
+ */
524
+ constructor(opts: __ExceptionOptionType<LanguageNotSupportedException, __BaseException>);
485
525
  }
486
526
  /**
487
527
  * <p>Describes the content of the lexicon.</p>
@@ -506,10 +546,13 @@ export declare namespace LexiconDescription {
506
546
  * <p>The maximum size of the specified lexicon would be exceeded by this
507
547
  * operation.</p>
508
548
  */
509
- export interface LexiconSizeExceededException extends __SmithyException, $MetadataBearer {
510
- name: "LexiconSizeExceededException";
511
- $fault: "client";
512
- message?: string;
549
+ export declare class LexiconSizeExceededException extends __BaseException {
550
+ readonly name: "LexiconSizeExceededException";
551
+ readonly $fault: "client";
552
+ /**
553
+ * @internal
554
+ */
555
+ constructor(opts: __ExceptionOptionType<LexiconSizeExceededException, __BaseException>);
513
556
  }
514
557
  export interface ListLexiconsInput {
515
558
  /**
@@ -591,28 +634,37 @@ export declare namespace ListSpeechSynthesisTasksOutput {
591
634
  * selected. Speech marks are only available for content in <code>json</code>
592
635
  * format.</p>
593
636
  */
594
- export interface MarksNotSupportedForFormatException extends __SmithyException, $MetadataBearer {
595
- name: "MarksNotSupportedForFormatException";
596
- $fault: "client";
597
- message?: string;
637
+ export declare class MarksNotSupportedForFormatException extends __BaseException {
638
+ readonly name: "MarksNotSupportedForFormatException";
639
+ readonly $fault: "client";
640
+ /**
641
+ * @internal
642
+ */
643
+ constructor(opts: __ExceptionOptionType<MarksNotSupportedForFormatException, __BaseException>);
598
644
  }
599
645
  /**
600
646
  * <p>The maximum size of the lexeme would be exceeded by this
601
647
  * operation.</p>
602
648
  */
603
- export interface MaxLexemeLengthExceededException extends __SmithyException, $MetadataBearer {
604
- name: "MaxLexemeLengthExceededException";
605
- $fault: "client";
606
- message?: string;
649
+ export declare class MaxLexemeLengthExceededException extends __BaseException {
650
+ readonly name: "MaxLexemeLengthExceededException";
651
+ readonly $fault: "client";
652
+ /**
653
+ * @internal
654
+ */
655
+ constructor(opts: __ExceptionOptionType<MaxLexemeLengthExceededException, __BaseException>);
607
656
  }
608
657
  /**
609
658
  * <p>The maximum number of lexicons would be exceeded by this
610
659
  * operation.</p>
611
660
  */
612
- export interface MaxLexiconsNumberExceededException extends __SmithyException, $MetadataBearer {
613
- name: "MaxLexiconsNumberExceededException";
614
- $fault: "client";
615
- message?: string;
661
+ export declare class MaxLexiconsNumberExceededException extends __BaseException {
662
+ readonly name: "MaxLexiconsNumberExceededException";
663
+ readonly $fault: "client";
664
+ /**
665
+ * @internal
666
+ */
667
+ constructor(opts: __ExceptionOptionType<MaxLexiconsNumberExceededException, __BaseException>);
616
668
  }
617
669
  export interface PutLexiconInput {
618
670
  /**
@@ -644,28 +696,37 @@ export declare namespace PutLexiconOutput {
644
696
  * <p>The alphabet specified by the lexicon is not a supported alphabet.
645
697
  * Valid values are <code>x-sampa</code> and <code>ipa</code>.</p>
646
698
  */
647
- export interface UnsupportedPlsAlphabetException extends __SmithyException, $MetadataBearer {
648
- name: "UnsupportedPlsAlphabetException";
649
- $fault: "client";
650
- message?: string;
699
+ export declare class UnsupportedPlsAlphabetException extends __BaseException {
700
+ readonly name: "UnsupportedPlsAlphabetException";
701
+ readonly $fault: "client";
702
+ /**
703
+ * @internal
704
+ */
705
+ constructor(opts: __ExceptionOptionType<UnsupportedPlsAlphabetException, __BaseException>);
651
706
  }
652
707
  /**
653
708
  * <p>The language specified in the lexicon is unsupported. For a list of
654
709
  * supported languages, see <a href="https://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html">Lexicon Attributes</a>.</p>
655
710
  */
656
- export interface UnsupportedPlsLanguageException extends __SmithyException, $MetadataBearer {
657
- name: "UnsupportedPlsLanguageException";
658
- $fault: "client";
659
- message?: string;
711
+ export declare class UnsupportedPlsLanguageException extends __BaseException {
712
+ readonly name: "UnsupportedPlsLanguageException";
713
+ readonly $fault: "client";
714
+ /**
715
+ * @internal
716
+ */
717
+ constructor(opts: __ExceptionOptionType<UnsupportedPlsLanguageException, __BaseException>);
660
718
  }
661
719
  /**
662
720
  * <p>SSML speech marks are not supported for plain text-type
663
721
  * input.</p>
664
722
  */
665
- export interface SsmlMarksNotSupportedForTextTypeException extends __SmithyException, $MetadataBearer {
666
- name: "SsmlMarksNotSupportedForTextTypeException";
667
- $fault: "client";
668
- message?: string;
723
+ export declare class SsmlMarksNotSupportedForTextTypeException extends __BaseException {
724
+ readonly name: "SsmlMarksNotSupportedForTextTypeException";
725
+ readonly $fault: "client";
726
+ /**
727
+ * @internal
728
+ */
729
+ constructor(opts: __ExceptionOptionType<SsmlMarksNotSupportedForTextTypeException, __BaseException>);
669
730
  }
670
731
  export interface StartSpeechSynthesisTaskInput {
671
732
  /**
@@ -767,10 +828,13 @@ export declare namespace StartSpeechSynthesisTaskOutput {
767
828
  * billed characters. SSML tags are not counted as billed
768
829
  * characters.</p>
769
830
  */
770
- export interface TextLengthExceededException extends __SmithyException, $MetadataBearer {
771
- name: "TextLengthExceededException";
772
- $fault: "client";
773
- message?: string;
831
+ export declare class TextLengthExceededException extends __BaseException {
832
+ readonly name: "TextLengthExceededException";
833
+ readonly $fault: "client";
834
+ /**
835
+ * @internal
836
+ */
837
+ constructor(opts: __ExceptionOptionType<TextLengthExceededException, __BaseException>);
774
838
  }
775
839
  export interface SynthesizeSpeechInput {
776
840
  /**
@@ -0,0 +1,50 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { DeleteLexiconCommandInput, DeleteLexiconCommandOutput } from "./commands/DeleteLexiconCommand";
3
+ import { DescribeVoicesCommandInput, DescribeVoicesCommandOutput } from "./commands/DescribeVoicesCommand";
4
+ import { GetLexiconCommandInput, GetLexiconCommandOutput } from "./commands/GetLexiconCommand";
5
+ import { GetSpeechSynthesisTaskCommandInput, GetSpeechSynthesisTaskCommandOutput } from "./commands/GetSpeechSynthesisTaskCommand";
6
+ import { ListLexiconsCommandInput, ListLexiconsCommandOutput } from "./commands/ListLexiconsCommand";
7
+ import { ListSpeechSynthesisTasksCommandInput, ListSpeechSynthesisTasksCommandOutput } from "./commands/ListSpeechSynthesisTasksCommand";
8
+ import { PutLexiconCommandInput, PutLexiconCommandOutput } from "./commands/PutLexiconCommand";
9
+ import { StartSpeechSynthesisTaskCommandInput, StartSpeechSynthesisTaskCommandOutput } from "./commands/StartSpeechSynthesisTaskCommand";
10
+ import { SynthesizeSpeechCommandInput, SynthesizeSpeechCommandOutput } from "./commands/SynthesizeSpeechCommand";
11
+ import { PollyClient } from "./PollyClient";
12
+
13
+ export declare class Polly extends PollyClient {
14
+
15
+ deleteLexicon(args: DeleteLexiconCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLexiconCommandOutput>;
16
+ deleteLexicon(args: DeleteLexiconCommandInput, cb: (err: any, data?: DeleteLexiconCommandOutput) => void): void;
17
+ deleteLexicon(args: DeleteLexiconCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLexiconCommandOutput) => void): void;
18
+
19
+ describeVoices(args: DescribeVoicesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeVoicesCommandOutput>;
20
+ describeVoices(args: DescribeVoicesCommandInput, cb: (err: any, data?: DescribeVoicesCommandOutput) => void): void;
21
+ describeVoices(args: DescribeVoicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeVoicesCommandOutput) => void): void;
22
+
23
+ getLexicon(args: GetLexiconCommandInput, options?: __HttpHandlerOptions): Promise<GetLexiconCommandOutput>;
24
+ getLexicon(args: GetLexiconCommandInput, cb: (err: any, data?: GetLexiconCommandOutput) => void): void;
25
+ getLexicon(args: GetLexiconCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLexiconCommandOutput) => void): void;
26
+
27
+ getSpeechSynthesisTask(args: GetSpeechSynthesisTaskCommandInput, options?: __HttpHandlerOptions): Promise<GetSpeechSynthesisTaskCommandOutput>;
28
+ getSpeechSynthesisTask(args: GetSpeechSynthesisTaskCommandInput, cb: (err: any, data?: GetSpeechSynthesisTaskCommandOutput) => void): void;
29
+ getSpeechSynthesisTask(args: GetSpeechSynthesisTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSpeechSynthesisTaskCommandOutput) => void): void;
30
+
31
+ listLexicons(args: ListLexiconsCommandInput, options?: __HttpHandlerOptions): Promise<ListLexiconsCommandOutput>;
32
+ listLexicons(args: ListLexiconsCommandInput, cb: (err: any, data?: ListLexiconsCommandOutput) => void): void;
33
+ listLexicons(args: ListLexiconsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLexiconsCommandOutput) => void): void;
34
+
35
+ listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListSpeechSynthesisTasksCommandOutput>;
36
+ listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
37
+ listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
38
+
39
+ putLexicon(args: PutLexiconCommandInput, options?: __HttpHandlerOptions): Promise<PutLexiconCommandOutput>;
40
+ putLexicon(args: PutLexiconCommandInput, cb: (err: any, data?: PutLexiconCommandOutput) => void): void;
41
+ putLexicon(args: PutLexiconCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutLexiconCommandOutput) => void): void;
42
+
43
+ startSpeechSynthesisTask(args: StartSpeechSynthesisTaskCommandInput, options?: __HttpHandlerOptions): Promise<StartSpeechSynthesisTaskCommandOutput>;
44
+ startSpeechSynthesisTask(args: StartSpeechSynthesisTaskCommandInput, cb: (err: any, data?: StartSpeechSynthesisTaskCommandOutput) => void): void;
45
+ startSpeechSynthesisTask(args: StartSpeechSynthesisTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSpeechSynthesisTaskCommandOutput) => void): void;
46
+
47
+ synthesizeSpeech(args: SynthesizeSpeechCommandInput, options?: __HttpHandlerOptions): Promise<SynthesizeSpeechCommandOutput>;
48
+ synthesizeSpeech(args: SynthesizeSpeechCommandInput, cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void): void;
49
+ synthesizeSpeech(args: SynthesizeSpeechCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void): void;
50
+ }
@@ -0,0 +1,82 @@
1
+ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { DeleteLexiconCommandInput, DeleteLexiconCommandOutput } from "./commands/DeleteLexiconCommand";
10
+ import { DescribeVoicesCommandInput, DescribeVoicesCommandOutput } from "./commands/DescribeVoicesCommand";
11
+ import { GetLexiconCommandInput, GetLexiconCommandOutput } from "./commands/GetLexiconCommand";
12
+ import { GetSpeechSynthesisTaskCommandInput, GetSpeechSynthesisTaskCommandOutput } from "./commands/GetSpeechSynthesisTaskCommand";
13
+ import { ListLexiconsCommandInput, ListLexiconsCommandOutput } from "./commands/ListLexiconsCommand";
14
+ import { ListSpeechSynthesisTasksCommandInput, ListSpeechSynthesisTasksCommandOutput } from "./commands/ListSpeechSynthesisTasksCommand";
15
+ import { PutLexiconCommandInput, PutLexiconCommandOutput } from "./commands/PutLexiconCommand";
16
+ import { StartSpeechSynthesisTaskCommandInput, StartSpeechSynthesisTaskCommandOutput } from "./commands/StartSpeechSynthesisTaskCommand";
17
+ import { SynthesizeSpeechCommandInput, SynthesizeSpeechCommandOutput } from "./commands/SynthesizeSpeechCommand";
18
+ export declare type ServiceInputTypes = DeleteLexiconCommandInput | DescribeVoicesCommandInput | GetLexiconCommandInput | GetSpeechSynthesisTaskCommandInput | ListLexiconsCommandInput | ListSpeechSynthesisTasksCommandInput | PutLexiconCommandInput | StartSpeechSynthesisTaskCommandInput | SynthesizeSpeechCommandInput;
19
+ export declare type ServiceOutputTypes = DeleteLexiconCommandOutput | DescribeVoicesCommandOutput | GetLexiconCommandOutput | GetSpeechSynthesisTaskCommandOutput | ListLexiconsCommandOutput | ListSpeechSynthesisTasksCommandOutput | PutLexiconCommandOutput | StartSpeechSynthesisTaskCommandOutput | SynthesizeSpeechCommandOutput;
20
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
21
+
22
+ requestHandler?: __HttpHandler;
23
+
24
+ sha256?: __HashConstructor;
25
+
26
+ urlParser?: __UrlParser;
27
+
28
+ bodyLengthChecker?: (body: any) => number | undefined;
29
+
30
+ streamCollector?: __StreamCollector;
31
+
32
+ base64Decoder?: __Decoder;
33
+
34
+ base64Encoder?: __Encoder;
35
+
36
+ utf8Decoder?: __Decoder;
37
+
38
+ utf8Encoder?: __Encoder;
39
+
40
+ runtime?: string;
41
+
42
+ disableHostPrefix?: boolean;
43
+
44
+ maxAttempts?: number | __Provider<number>;
45
+
46
+ retryMode?: string | __Provider<string>;
47
+
48
+ logger?: __Logger;
49
+
50
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
51
+
52
+ useFipsEndpoint?: boolean | __Provider<boolean>;
53
+
54
+ serviceId?: string;
55
+
56
+ region?: string | __Provider<string>;
57
+
58
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
59
+
60
+ regionInfoProvider?: RegionInfoProvider;
61
+
62
+ defaultUserAgentProvider?: Provider<__UserAgent>;
63
+
64
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
65
+ }
66
+ declare type PollyClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
67
+
68
+ export interface PollyClientConfig extends PollyClientConfigType {
69
+ }
70
+ declare type PollyClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
71
+
72
+ export interface PollyClientResolvedConfig extends PollyClientResolvedConfigType {
73
+ }
74
+
75
+ export declare class PollyClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, PollyClientResolvedConfig> {
76
+
77
+ readonly config: PollyClientResolvedConfig;
78
+ constructor(configuration: PollyClientConfig);
79
+
80
+ destroy(): void;
81
+ }
82
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { DeleteLexiconInput, DeleteLexiconOutput } from "../models/models_0";
4
+ import { PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PollyClient";
5
+ export interface DeleteLexiconCommandInput extends DeleteLexiconInput {
6
+ }
7
+ export interface DeleteLexiconCommandOutput extends DeleteLexiconOutput, __MetadataBearer {
8
+ }
9
+
10
+ export declare class DeleteLexiconCommand extends $Command<DeleteLexiconCommandInput, DeleteLexiconCommandOutput, PollyClientResolvedConfig> {
11
+ readonly input: DeleteLexiconCommandInput;
12
+ constructor(input: DeleteLexiconCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteLexiconCommandInput, DeleteLexiconCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { DescribeVoicesInput, DescribeVoicesOutput } from "../models/models_0";
4
+ import { PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PollyClient";
5
+ export interface DescribeVoicesCommandInput extends DescribeVoicesInput {
6
+ }
7
+ export interface DescribeVoicesCommandOutput extends DescribeVoicesOutput, __MetadataBearer {
8
+ }
9
+
10
+ export declare class DescribeVoicesCommand extends $Command<DescribeVoicesCommandInput, DescribeVoicesCommandOutput, PollyClientResolvedConfig> {
11
+ readonly input: DescribeVoicesCommandInput;
12
+ constructor(input: DescribeVoicesCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeVoicesCommandInput, DescribeVoicesCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GetLexiconInput, GetLexiconOutput } from "../models/models_0";
4
+ import { PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PollyClient";
5
+ export interface GetLexiconCommandInput extends GetLexiconInput {
6
+ }
7
+ export interface GetLexiconCommandOutput extends GetLexiconOutput, __MetadataBearer {
8
+ }
9
+
10
+ export declare class GetLexiconCommand extends $Command<GetLexiconCommandInput, GetLexiconCommandOutput, PollyClientResolvedConfig> {
11
+ readonly input: GetLexiconCommandInput;
12
+ constructor(input: GetLexiconCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetLexiconCommandInput, GetLexiconCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GetSpeechSynthesisTaskInput, GetSpeechSynthesisTaskOutput } from "../models/models_0";
4
+ import { PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PollyClient";
5
+ export interface GetSpeechSynthesisTaskCommandInput extends GetSpeechSynthesisTaskInput {
6
+ }
7
+ export interface GetSpeechSynthesisTaskCommandOutput extends GetSpeechSynthesisTaskOutput, __MetadataBearer {
8
+ }
9
+
10
+ export declare class GetSpeechSynthesisTaskCommand extends $Command<GetSpeechSynthesisTaskCommandInput, GetSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig> {
11
+ readonly input: GetSpeechSynthesisTaskCommandInput;
12
+ constructor(input: GetSpeechSynthesisTaskCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetSpeechSynthesisTaskCommandInput, GetSpeechSynthesisTaskCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ListLexiconsInput, ListLexiconsOutput } from "../models/models_0";
4
+ import { PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PollyClient";
5
+ export interface ListLexiconsCommandInput extends ListLexiconsInput {
6
+ }
7
+ export interface ListLexiconsCommandOutput extends ListLexiconsOutput, __MetadataBearer {
8
+ }
9
+
10
+ export declare class ListLexiconsCommand extends $Command<ListLexiconsCommandInput, ListLexiconsCommandOutput, PollyClientResolvedConfig> {
11
+ readonly input: ListLexiconsCommandInput;
12
+ constructor(input: ListLexiconsCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListLexiconsCommandInput, ListLexiconsCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ListSpeechSynthesisTasksInput, ListSpeechSynthesisTasksOutput } from "../models/models_0";
4
+ import { PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PollyClient";
5
+ export interface ListSpeechSynthesisTasksCommandInput extends ListSpeechSynthesisTasksInput {
6
+ }
7
+ export interface ListSpeechSynthesisTasksCommandOutput extends ListSpeechSynthesisTasksOutput, __MetadataBearer {
8
+ }
9
+
10
+ export declare class ListSpeechSynthesisTasksCommand extends $Command<ListSpeechSynthesisTasksCommandInput, ListSpeechSynthesisTasksCommandOutput, PollyClientResolvedConfig> {
11
+ readonly input: ListSpeechSynthesisTasksCommandInput;
12
+ constructor(input: ListSpeechSynthesisTasksCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListSpeechSynthesisTasksCommandInput, ListSpeechSynthesisTasksCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { PutLexiconInput, PutLexiconOutput } from "../models/models_0";
4
+ import { PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PollyClient";
5
+ export interface PutLexiconCommandInput extends PutLexiconInput {
6
+ }
7
+ export interface PutLexiconCommandOutput extends PutLexiconOutput, __MetadataBearer {
8
+ }
9
+
10
+ export declare class PutLexiconCommand extends $Command<PutLexiconCommandInput, PutLexiconCommandOutput, PollyClientResolvedConfig> {
11
+ readonly input: PutLexiconCommandInput;
12
+ constructor(input: PutLexiconCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutLexiconCommandInput, PutLexiconCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }