@aws-sdk/client-polly 3.1012.0 → 3.1013.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 (40) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +45 -3
  3. package/dist-cjs/models/errors.js +50 -1
  4. package/dist-cjs/runtimeConfig.browser.js +5 -0
  5. package/dist-cjs/runtimeConfig.js +8 -1
  6. package/dist-cjs/runtimeConfig.native.js +4 -0
  7. package/dist-cjs/schemas/schemas_0.js +120 -2
  8. package/dist-es/Polly.js +2 -0
  9. package/dist-es/PollyClient.js +7 -3
  10. package/dist-es/commands/StartSpeechSynthesisStreamCommand.js +25 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/models/enums.js +13 -0
  13. package/dist-es/models/errors.js +46 -0
  14. package/dist-es/runtimeConfig.browser.js +6 -1
  15. package/dist-es/runtimeConfig.js +9 -2
  16. package/dist-es/runtimeConfig.native.js +4 -0
  17. package/dist-es/schemas/schemas_0.js +119 -1
  18. package/dist-types/Polly.d.ts +7 -0
  19. package/dist-types/PollyClient.d.ts +18 -5
  20. package/dist-types/commands/StartSpeechSynthesisStreamCommand.d.ts +147 -0
  21. package/dist-types/commands/index.d.ts +1 -0
  22. package/dist-types/models/enums.d.ts +37 -0
  23. package/dist-types/models/errors.d.ts +63 -0
  24. package/dist-types/models/models_0.d.ts +336 -3
  25. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  26. package/dist-types/runtimeConfig.d.ts +3 -1
  27. package/dist-types/runtimeConfig.native.d.ts +2 -0
  28. package/dist-types/schemas/schemas_0.d.ts +16 -1
  29. package/dist-types/ts3.4/Polly.d.ts +17 -0
  30. package/dist-types/ts3.4/PollyClient.d.ts +22 -0
  31. package/dist-types/ts3.4/commands/StartSpeechSynthesisStreamCommand.d.ts +51 -0
  32. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  33. package/dist-types/ts3.4/models/enums.d.ts +17 -0
  34. package/dist-types/ts3.4/models/errors.d.ts +28 -0
  35. package/dist-types/ts3.4/models/models_0.d.ts +153 -0
  36. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  37. package/dist-types/ts3.4/runtimeConfig.d.ts +3 -1
  38. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  39. package/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
  40. package/package.json +10 -5
@@ -1,4 +1,6 @@
1
1
  import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { QuotaCode, ServiceCode, ValidationExceptionReason } from "./enums";
3
+ import { ThrottlingReason, ValidationExceptionField } from "./models_0";
2
4
  import { PollyServiceException as __BaseException } from "./PollyServiceException";
3
5
  /**
4
6
  * <p>Amazon Polly can't find the specified lexicon. This could be caused by a
@@ -250,6 +252,67 @@ export declare class UnsupportedPlsLanguageException extends __BaseException {
250
252
  */
251
253
  constructor(opts: __ExceptionOptionType<UnsupportedPlsLanguageException, __BaseException>);
252
254
  }
255
+ /**
256
+ * <p>The request would cause a service quota to be exceeded.</p>
257
+ * @public
258
+ */
259
+ export declare class ServiceQuotaExceededException extends __BaseException {
260
+ readonly name: "ServiceQuotaExceededException";
261
+ readonly $fault: "client";
262
+ /**
263
+ * <p>The quota code identifying the specific quota.</p>
264
+ * @public
265
+ */
266
+ quotaCode: QuotaCode | undefined;
267
+ /**
268
+ * <p>The service code identifying the originating service.</p>
269
+ * @public
270
+ */
271
+ serviceCode: ServiceCode | undefined;
272
+ /**
273
+ * @internal
274
+ */
275
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
276
+ }
277
+ /**
278
+ * <p>The request was denied because of request throttling.</p>
279
+ * @public
280
+ */
281
+ export declare class ThrottlingException extends __BaseException {
282
+ readonly name: "ThrottlingException";
283
+ readonly $fault: "client";
284
+ /**
285
+ * <p>A list of reasons explaining why the request was throttled.</p>
286
+ * @public
287
+ */
288
+ throttlingReasons?: ThrottlingReason[] | undefined;
289
+ /**
290
+ * @internal
291
+ */
292
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
293
+ }
294
+ /**
295
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
296
+ * @public
297
+ */
298
+ export declare class ValidationException extends __BaseException {
299
+ readonly name: "ValidationException";
300
+ readonly $fault: "client";
301
+ /**
302
+ * <p>The reason the request failed validation.</p>
303
+ * @public
304
+ */
305
+ reason: ValidationExceptionReason | undefined;
306
+ /**
307
+ * <p>The fields that caused the validation error.</p>
308
+ * @public
309
+ */
310
+ fields?: ValidationExceptionField[] | undefined;
311
+ /**
312
+ * @internal
313
+ */
314
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
315
+ }
253
316
  /**
254
317
  * <p>SSML speech marks are not supported for plain text-type
255
318
  * input.</p>
@@ -1,5 +1,25 @@
1
1
  import { StreamingBlobTypes } from "@smithy/types";
2
2
  import { Engine, Gender, LanguageCode, OutputFormat, SpeechMarkType, TaskStatus, TextType, VoiceId } from "./enums";
3
+ import { ServiceFailureException, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "./errors";
4
+ /**
5
+ * <p>Contains a chunk of synthesized audio data.</p>
6
+ * @public
7
+ */
8
+ export interface AudioEvent {
9
+ /**
10
+ * <p>A chunk of synthesized audio data encoded in the format specified by the
11
+ * <code>OutputFormat</code> parameter.</p>
12
+ * @public
13
+ */
14
+ AudioChunk?: Uint8Array | undefined;
15
+ }
16
+ /**
17
+ * <p>Indicates the end of the input stream. After sending this event, the input stream
18
+ * will be closed and all audio will be returned.</p>
19
+ * @public
20
+ */
21
+ export interface CloseStreamEvent {
22
+ }
3
23
  /**
4
24
  * @public
5
25
  */
@@ -120,6 +140,18 @@ export interface DescribeVoicesOutput {
120
140
  */
121
141
  NextToken?: string | undefined;
122
142
  }
143
+ /**
144
+ * <p>Configuration that controls when synthesized audio data is sent on the output stream.</p>
145
+ * @public
146
+ */
147
+ export interface FlushStreamConfiguration {
148
+ /**
149
+ * <p>Specifies whether to force the synthesis engine to immediately
150
+ * write buffered audio data to the output stream.</p>
151
+ * @public
152
+ */
153
+ Force?: boolean | undefined;
154
+ }
123
155
  /**
124
156
  * @public
125
157
  */
@@ -277,7 +309,7 @@ export interface SynthesisTask {
277
309
  LexiconNames?: string[] | undefined;
278
310
  /**
279
311
  * <p>The format in which the returned output will be encoded. For audio
280
- * stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will
312
+ * stream, this will be mp3, ogg_vorbis, ogg_opus, mu-law, a-law, or pcm. For speech marks, this will
281
313
  * be json. </p>
282
314
  * @public
283
315
  */
@@ -290,6 +322,8 @@ export interface SynthesisTask {
290
322
  * is "24000". The default value for generative voices is "24000".</p>
291
323
  * <p>Valid values for pcm are "8000" and "16000" The default value is
292
324
  * "16000". </p>
325
+ * <p>Valid value for ogg_opus is "48000". </p>
326
+ * <p>Valid value for mu-law and a-law is "8000". </p>
293
327
  * @public
294
328
  */
295
329
  SampleRate?: string | undefined;
@@ -443,6 +477,284 @@ export interface PutLexiconInput {
443
477
  */
444
478
  export interface PutLexiconOutput {
445
479
  }
480
+ /**
481
+ * <p>Contains text content to be synthesized into speech.</p>
482
+ * @public
483
+ */
484
+ export interface TextEvent {
485
+ /**
486
+ * <p>The text content to synthesize. If you specify <code>ssml</code> as the
487
+ * <code>TextType</code>, follow the SSML format for the input text.</p>
488
+ * @public
489
+ */
490
+ Text: string | undefined;
491
+ /**
492
+ * <p>Specifies whether the input text is plain text or SSML. Default: plain text.</p>
493
+ * @public
494
+ */
495
+ TextType?: TextType | undefined;
496
+ /**
497
+ * <p>Configuration for controlling when synthesized audio flushes to the output stream.</p>
498
+ * @public
499
+ */
500
+ FlushStreamConfiguration?: FlushStreamConfiguration | undefined;
501
+ }
502
+ /**
503
+ * <p>Inbound event stream for sending input and control events to manage bidirectional speech synthesis.</p>
504
+ * @public
505
+ */
506
+ export type StartSpeechSynthesisStreamActionStream = StartSpeechSynthesisStreamActionStream.CloseStreamEventMember | StartSpeechSynthesisStreamActionStream.TextEventMember | StartSpeechSynthesisStreamActionStream.$UnknownMember;
507
+ /**
508
+ * @public
509
+ */
510
+ export declare namespace StartSpeechSynthesisStreamActionStream {
511
+ /**
512
+ * <p>A text event containing content to be synthesized.</p>
513
+ * @public
514
+ */
515
+ interface TextEventMember {
516
+ TextEvent: TextEvent;
517
+ CloseStreamEvent?: never;
518
+ $unknown?: never;
519
+ }
520
+ /**
521
+ * <p>An event indicating the end of the input stream.</p>
522
+ * @public
523
+ */
524
+ interface CloseStreamEventMember {
525
+ TextEvent?: never;
526
+ CloseStreamEvent: CloseStreamEvent;
527
+ $unknown?: never;
528
+ }
529
+ /**
530
+ * @public
531
+ */
532
+ interface $UnknownMember {
533
+ TextEvent?: never;
534
+ CloseStreamEvent?: never;
535
+ $unknown: [string, any];
536
+ }
537
+ /**
538
+ * @deprecated unused in schema-serde mode.
539
+ *
540
+ */
541
+ interface Visitor<T> {
542
+ TextEvent: (value: TextEvent) => T;
543
+ CloseStreamEvent: (value: CloseStreamEvent) => T;
544
+ _: (name: string, value: any) => T;
545
+ }
546
+ }
547
+ /**
548
+ * @public
549
+ */
550
+ export interface StartSpeechSynthesisStreamInput {
551
+ /**
552
+ * <p>Specifies the engine for Amazon Polly to use when processing input text for speech synthesis.
553
+ * Currently, only the <code>generative</code> engine is supported.
554
+ * If you specify a voice that the selected engine doesn't support, Amazon Polly returns an error.</p>
555
+ * @public
556
+ */
557
+ Engine: Engine | undefined;
558
+ /**
559
+ * <p>An optional parameter that sets the language code for the speech synthesis request. Specify this parameter only
560
+ * when using a bilingual voice. If a bilingual voice is used and no language code is specified, Amazon Polly
561
+ * uses the default language of the bilingual voice.</p>
562
+ * @public
563
+ */
564
+ LanguageCode?: LanguageCode | undefined;
565
+ /**
566
+ * <p>The names of one or more pronunciation lexicons for the service to apply
567
+ * during synthesis. Amazon Polly applies lexicons only when the lexicon language matches the voice language.</p>
568
+ * @public
569
+ */
570
+ LexiconNames?: string[] | undefined;
571
+ /**
572
+ * <p>The audio format for the synthesized speech. Currently, Amazon Polly does not support JSON speech marks.</p>
573
+ * @public
574
+ */
575
+ OutputFormat: OutputFormat | undefined;
576
+ /**
577
+ * <p>The audio frequency, specified in Hz.</p>
578
+ * @public
579
+ */
580
+ SampleRate?: string | undefined;
581
+ /**
582
+ * <p>The voice to use in synthesis. To get a list of available voice IDs, use the <a href="https://docs.aws.amazon.com/polly/latest/API/API_DescribeVoices.html">DescribeVoices</a> operation.</p>
583
+ * @public
584
+ */
585
+ VoiceId: VoiceId | undefined;
586
+ /**
587
+ * <p>The input event stream that contains text events and stream control events.</p>
588
+ * @public
589
+ */
590
+ ActionStream?: AsyncIterable<StartSpeechSynthesisStreamActionStream> | undefined;
591
+ }
592
+ /**
593
+ * <p>Indicates that the synthesis stream is closed and provides summary information.</p>
594
+ * @public
595
+ */
596
+ export interface StreamClosedEvent {
597
+ /**
598
+ * <p>The total number of characters synthesized during the streaming session.</p>
599
+ * @public
600
+ */
601
+ RequestCharacters?: number | undefined;
602
+ }
603
+ /**
604
+ * <p>Provides information about a specific throttling reason.</p>
605
+ * @public
606
+ */
607
+ export interface ThrottlingReason {
608
+ /**
609
+ * <p>The reason code explaining why the request was throttled.</p>
610
+ * @public
611
+ */
612
+ reason?: string | undefined;
613
+ /**
614
+ * <p>The resource that caused the throttling.</p>
615
+ * @public
616
+ */
617
+ resource?: string | undefined;
618
+ }
619
+ /**
620
+ * <p>Information about a field that failed validation.</p>
621
+ * @public
622
+ */
623
+ export interface ValidationExceptionField {
624
+ /**
625
+ * <p>The name of the field that failed validation.</p>
626
+ * @public
627
+ */
628
+ name: string | undefined;
629
+ /**
630
+ * <p>A message describing why the field failed validation.</p>
631
+ * @public
632
+ */
633
+ message: string | undefined;
634
+ }
635
+ /**
636
+ * <p>Outbound event stream that contains synthesized audio data and stream status events.</p>
637
+ * @public
638
+ */
639
+ export type StartSpeechSynthesisStreamEventStream = StartSpeechSynthesisStreamEventStream.AudioEventMember | StartSpeechSynthesisStreamEventStream.ServiceFailureExceptionMember | StartSpeechSynthesisStreamEventStream.ServiceQuotaExceededExceptionMember | StartSpeechSynthesisStreamEventStream.StreamClosedEventMember | StartSpeechSynthesisStreamEventStream.ThrottlingExceptionMember | StartSpeechSynthesisStreamEventStream.ValidationExceptionMember | StartSpeechSynthesisStreamEventStream.$UnknownMember;
640
+ /**
641
+ * @public
642
+ */
643
+ export declare namespace StartSpeechSynthesisStreamEventStream {
644
+ /**
645
+ * <p>An audio event containing synthesized speech.</p>
646
+ * @public
647
+ */
648
+ interface AudioEventMember {
649
+ AudioEvent: AudioEvent;
650
+ StreamClosedEvent?: never;
651
+ ValidationException?: never;
652
+ ServiceQuotaExceededException?: never;
653
+ ServiceFailureException?: never;
654
+ ThrottlingException?: never;
655
+ $unknown?: never;
656
+ }
657
+ /**
658
+ * <p>An event, with summary information, indicating the stream has closed.</p>
659
+ * @public
660
+ */
661
+ interface StreamClosedEventMember {
662
+ AudioEvent?: never;
663
+ StreamClosedEvent: StreamClosedEvent;
664
+ ValidationException?: never;
665
+ ServiceQuotaExceededException?: never;
666
+ ServiceFailureException?: never;
667
+ ThrottlingException?: never;
668
+ $unknown?: never;
669
+ }
670
+ /**
671
+ * <p>An exception indicating the input failed validation.</p>
672
+ * @public
673
+ */
674
+ interface ValidationExceptionMember {
675
+ AudioEvent?: never;
676
+ StreamClosedEvent?: never;
677
+ ValidationException: ValidationException;
678
+ ServiceQuotaExceededException?: never;
679
+ ServiceFailureException?: never;
680
+ ThrottlingException?: never;
681
+ $unknown?: never;
682
+ }
683
+ /**
684
+ * <p>An exception indicating a service quota would be exceeded.</p>
685
+ * @public
686
+ */
687
+ interface ServiceQuotaExceededExceptionMember {
688
+ AudioEvent?: never;
689
+ StreamClosedEvent?: never;
690
+ ValidationException?: never;
691
+ ServiceQuotaExceededException: ServiceQuotaExceededException;
692
+ ServiceFailureException?: never;
693
+ ThrottlingException?: never;
694
+ $unknown?: never;
695
+ }
696
+ /**
697
+ * <p>An unknown condition has caused a service failure.</p>
698
+ * @public
699
+ */
700
+ interface ServiceFailureExceptionMember {
701
+ AudioEvent?: never;
702
+ StreamClosedEvent?: never;
703
+ ValidationException?: never;
704
+ ServiceQuotaExceededException?: never;
705
+ ServiceFailureException: ServiceFailureException;
706
+ ThrottlingException?: never;
707
+ $unknown?: never;
708
+ }
709
+ /**
710
+ * <p>An exception indicating the request was throttled.</p>
711
+ * @public
712
+ */
713
+ interface ThrottlingExceptionMember {
714
+ AudioEvent?: never;
715
+ StreamClosedEvent?: never;
716
+ ValidationException?: never;
717
+ ServiceQuotaExceededException?: never;
718
+ ServiceFailureException?: never;
719
+ ThrottlingException: ThrottlingException;
720
+ $unknown?: never;
721
+ }
722
+ /**
723
+ * @public
724
+ */
725
+ interface $UnknownMember {
726
+ AudioEvent?: never;
727
+ StreamClosedEvent?: never;
728
+ ValidationException?: never;
729
+ ServiceQuotaExceededException?: never;
730
+ ServiceFailureException?: never;
731
+ ThrottlingException?: never;
732
+ $unknown: [string, any];
733
+ }
734
+ /**
735
+ * @deprecated unused in schema-serde mode.
736
+ *
737
+ */
738
+ interface Visitor<T> {
739
+ AudioEvent: (value: AudioEvent) => T;
740
+ StreamClosedEvent: (value: StreamClosedEvent) => T;
741
+ ValidationException: (value: ValidationException) => T;
742
+ ServiceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
743
+ ServiceFailureException: (value: ServiceFailureException) => T;
744
+ ThrottlingException: (value: ThrottlingException) => T;
745
+ _: (name: string, value: any) => T;
746
+ }
747
+ }
748
+ /**
749
+ * @public
750
+ */
751
+ export interface StartSpeechSynthesisStreamOutput {
752
+ /**
753
+ * <p>The output event stream that contains synthesized audio events and stream status events.</p>
754
+ * @public
755
+ */
756
+ EventStream?: AsyncIterable<StartSpeechSynthesisStreamEventStream> | undefined;
757
+ }
446
758
  /**
447
759
  * @public
448
760
  */
@@ -476,7 +788,7 @@ export interface StartSpeechSynthesisTaskInput {
476
788
  LexiconNames?: string[] | undefined;
477
789
  /**
478
790
  * <p>The format in which the returned output will be encoded. For audio
479
- * stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will
791
+ * stream, this will be mp3, ogg_vorbis, ogg_opus, mu-law, a-law, or pcm. For speech marks, this will
480
792
  * be json. </p>
481
793
  * @public
482
794
  */
@@ -499,6 +811,8 @@ export interface StartSpeechSynthesisTaskInput {
499
811
  * is "24000". The default value for generative voices is "24000".</p>
500
812
  * <p>Valid values for pcm are "8000" and "16000" The default value is
501
813
  * "16000". </p>
814
+ * <p>Valid value for ogg_opus is "48000". </p>
815
+ * <p>Valid value for mu-law and a-law is "8000". </p>
502
816
  * @public
503
817
  */
504
818
  SampleRate?: string | undefined;
@@ -579,7 +893,7 @@ export interface SynthesizeSpeechInput {
579
893
  LexiconNames?: string[] | undefined;
580
894
  /**
581
895
  * <p> The format in which the returned output will be encoded. For audio
582
- * stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will
896
+ * stream, this will be mp3, ogg_vorbis, ogg_opus, mu-law, a-law or pcm. For speech marks, this will
583
897
  * be json. </p>
584
898
  * <p>When pcm is used, the content returned is audio/pcm in a signed
585
899
  * 16-bit, 1 channel (mono), little-endian format. </p>
@@ -593,6 +907,8 @@ export interface SynthesizeSpeechInput {
593
907
  * is "24000". The default value for generative voices is "24000".</p>
594
908
  * <p>Valid values for pcm are "8000" and "16000" The default value is
595
909
  * "16000". </p>
910
+ * <p>Valid value for ogg_opus is "48000". </p>
911
+ * <p>Valid value for mu-law and a-law is "8000". </p>
596
912
  * @public
597
913
  */
598
914
  SampleRate?: string | undefined;
@@ -646,12 +962,29 @@ export interface SynthesizeSpeechOutput {
646
962
  * audio/ogg. </p>
647
963
  * </li>
648
964
  * <li>
965
+ * <p> If you request <code>ogg_opus</code> as the
966
+ * <code>OutputFormat</code>, the <code>ContentType</code> returned is
967
+ * audio/ogg. </p>
968
+ * </li>
969
+ * <li>
649
970
  * <p> If you request <code>pcm</code> as the
650
971
  * <code>OutputFormat</code>, the <code>ContentType</code> returned is
651
972
  * audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
652
973
  * </p>
653
974
  * </li>
654
975
  * <li>
976
+ * <p> If you request <code>mu-law</code> as the
977
+ * <code>OutputFormat</code>, the <code>ContentType</code> returned is
978
+ * audio/mulaw.
979
+ * </p>
980
+ * </li>
981
+ * <li>
982
+ * <p> If you request <code>a-law</code> as the
983
+ * <code>OutputFormat</code>, the <code>ContentType</code> returned is
984
+ * audio/alaw.
985
+ * </p>
986
+ * </li>
987
+ * <li>
655
988
  * <p>If you request <code>json</code> as the
656
989
  * <code>OutputFormat</code>, the <code>ContentType</code> returned is
657
990
  * application/x-json-stream.</p>
@@ -9,6 +9,8 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
12
+ eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
13
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
12
14
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
15
  region: string | import("@smithy/types").Provider<any>;
14
16
  requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
@@ -1,4 +1,4 @@
1
- import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
1
+ import { NodeHttp2Handler as RequestHandler } from "@smithy/node-http-handler";
2
2
  import type { PollyClientConfig } from "./PollyClient";
3
3
  /**
4
4
  * @internal
@@ -10,6 +10,8 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
11
  credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
12
12
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
13
+ eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
14
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
13
15
  maxAttempts: number | import("@smithy/types").Provider<number>;
14
16
  region: string | import("@smithy/types").Provider<string>;
15
17
  requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
@@ -4,6 +4,7 @@ import type { PollyClientConfig } from "./PollyClient";
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: PollyClientConfig) => {
6
6
  runtime: string;
7
+ eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
7
8
  sha256: import("@smithy/types").HashConstructor;
8
9
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
10
  cacheMiddleware?: boolean;
@@ -32,6 +33,7 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
32
33
  retryMode: string | import("@smithy/types").Provider<string>;
33
34
  logger: import("@smithy/types").Logger;
34
35
  extensions: import("./runtimeExtensions").RuntimeExtension[];
36
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
35
37
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
36
38
  sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
37
39
  customUserAgent?: string | import("@smithy/types").UserAgent;
@@ -1,5 +1,5 @@
1
1
  import { TypeRegistry } from "@smithy/core/schema";
2
- import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
+ import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
3
  export declare var PollyServiceException$: StaticErrorSchema;
4
4
  export declare var EngineNotSupportedException$: StaticErrorSchema;
5
5
  export declare var InvalidLexiconException$: StaticErrorSchema;
@@ -17,21 +17,27 @@ export declare var MarksNotSupportedForFormatException$: StaticErrorSchema;
17
17
  export declare var MaxLexemeLengthExceededException$: StaticErrorSchema;
18
18
  export declare var MaxLexiconsNumberExceededException$: StaticErrorSchema;
19
19
  export declare var ServiceFailureException$: StaticErrorSchema;
20
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
20
21
  export declare var SsmlMarksNotSupportedForTextTypeException$: StaticErrorSchema;
21
22
  export declare var SynthesisTaskNotFoundException$: StaticErrorSchema;
22
23
  export declare var TextLengthExceededException$: StaticErrorSchema;
24
+ export declare var ThrottlingException$: StaticErrorSchema;
23
25
  export declare var UnsupportedPlsAlphabetException$: StaticErrorSchema;
24
26
  export declare var UnsupportedPlsLanguageException$: StaticErrorSchema;
27
+ export declare var ValidationException$: StaticErrorSchema;
25
28
  /**
26
29
  * TypeRegistry instances containing modeled errors.
27
30
  * @internal
28
31
  *
29
32
  */
30
33
  export declare const errorTypeRegistries: TypeRegistry[];
34
+ export declare var AudioEvent$: StaticStructureSchema;
35
+ export declare var CloseStreamEvent$: StaticStructureSchema;
31
36
  export declare var DeleteLexiconInput$: StaticStructureSchema;
32
37
  export declare var DeleteLexiconOutput$: StaticStructureSchema;
33
38
  export declare var DescribeVoicesInput$: StaticStructureSchema;
34
39
  export declare var DescribeVoicesOutput$: StaticStructureSchema;
40
+ export declare var FlushStreamConfiguration$: StaticStructureSchema;
35
41
  export declare var GetLexiconInput$: StaticStructureSchema;
36
42
  export declare var GetLexiconOutput$: StaticStructureSchema;
37
43
  export declare var GetSpeechSynthesisTaskInput$: StaticStructureSchema;
@@ -45,12 +51,20 @@ export declare var ListSpeechSynthesisTasksInput$: StaticStructureSchema;
45
51
  export declare var ListSpeechSynthesisTasksOutput$: StaticStructureSchema;
46
52
  export declare var PutLexiconInput$: StaticStructureSchema;
47
53
  export declare var PutLexiconOutput$: StaticStructureSchema;
54
+ export declare var StartSpeechSynthesisStreamInput$: StaticStructureSchema;
55
+ export declare var StartSpeechSynthesisStreamOutput$: StaticStructureSchema;
48
56
  export declare var StartSpeechSynthesisTaskInput$: StaticStructureSchema;
49
57
  export declare var StartSpeechSynthesisTaskOutput$: StaticStructureSchema;
58
+ export declare var StreamClosedEvent$: StaticStructureSchema;
50
59
  export declare var SynthesisTask$: StaticStructureSchema;
51
60
  export declare var SynthesizeSpeechInput$: StaticStructureSchema;
52
61
  export declare var SynthesizeSpeechOutput$: StaticStructureSchema;
62
+ export declare var TextEvent$: StaticStructureSchema;
63
+ export declare var ThrottlingReason$: StaticStructureSchema;
64
+ export declare var ValidationExceptionField$: StaticStructureSchema;
53
65
  export declare var Voice$: StaticStructureSchema;
66
+ export declare var StartSpeechSynthesisStreamActionStream$: StaticUnionSchema;
67
+ export declare var StartSpeechSynthesisStreamEventStream$: StaticUnionSchema;
54
68
  export declare var DeleteLexicon$: StaticOperationSchema;
55
69
  export declare var DescribeVoices$: StaticOperationSchema;
56
70
  export declare var GetLexicon$: StaticOperationSchema;
@@ -58,5 +72,6 @@ export declare var GetSpeechSynthesisTask$: StaticOperationSchema;
58
72
  export declare var ListLexicons$: StaticOperationSchema;
59
73
  export declare var ListSpeechSynthesisTasks$: StaticOperationSchema;
60
74
  export declare var PutLexicon$: StaticOperationSchema;
75
+ export declare var StartSpeechSynthesisStream$: StaticOperationSchema;
61
76
  export declare var StartSpeechSynthesisTask$: StaticOperationSchema;
62
77
  export declare var SynthesizeSpeech$: StaticOperationSchema;
@@ -31,6 +31,10 @@ import {
31
31
  PutLexiconCommandInput,
32
32
  PutLexiconCommandOutput,
33
33
  } from "./commands/PutLexiconCommand";
34
+ import {
35
+ StartSpeechSynthesisStreamCommandInput,
36
+ StartSpeechSynthesisStreamCommandOutput,
37
+ } from "./commands/StartSpeechSynthesisStreamCommand";
34
38
  import {
35
39
  StartSpeechSynthesisTaskCommandInput,
36
40
  StartSpeechSynthesisTaskCommandOutput,
@@ -135,6 +139,19 @@ export interface Polly {
135
139
  options: __HttpHandlerOptions,
136
140
  cb: (err: any, data?: PutLexiconCommandOutput) => void
137
141
  ): void;
142
+ startSpeechSynthesisStream(
143
+ args: StartSpeechSynthesisStreamCommandInput,
144
+ options?: __HttpHandlerOptions
145
+ ): Promise<StartSpeechSynthesisStreamCommandOutput>;
146
+ startSpeechSynthesisStream(
147
+ args: StartSpeechSynthesisStreamCommandInput,
148
+ cb: (err: any, data?: StartSpeechSynthesisStreamCommandOutput) => void
149
+ ): void;
150
+ startSpeechSynthesisStream(
151
+ args: StartSpeechSynthesisStreamCommandInput,
152
+ options: __HttpHandlerOptions,
153
+ cb: (err: any, data?: StartSpeechSynthesisStreamCommandOutput) => void
154
+ ): void;
138
155
  startSpeechSynthesisTask(
139
156
  args: StartSpeechSynthesisTaskCommandInput,
140
157
  options?: __HttpHandlerOptions