@wildix/wilma-voice-client 0.0.21 → 0.0.24

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.
@@ -1,79 +1,4 @@
1
- import type { VoiceAudioEncoding, VoiceCommandType, VoiceControlAction, VoiceEventType, VoiceInputMode, VoicePronunciationEncoding, VoiceSpeechProvider, VoiceTranscriptionVendor } from "./enums";
2
- /**
3
- * A pronunciation rule for one phrase. Belongs to a LANGUAGE, not to the agent: 'Wildix' is
4
- * respelled differently for an Italian and a German voice. A dictionary shared ACROSS languages
5
- * would fight itself, which is why the company dictionary is keyed by language too — see
6
- * PronunciationDictionary.
7
- * @public
8
- */
9
- export interface VoicePronunciation {
10
- /**
11
- * The phrase as it appears in the text, e.g. 'Wildix'. Bounded because every rule is compiled into ONE regular expression — see the list below.
12
- * @public
13
- */
14
- phrase: string;
15
- /**
16
- * Respelling (ALIAS) or phonetic transcription (IPA), e.g. 'Wil-dix'.
17
- * @public
18
- */
19
- as: string;
20
- /**
21
- * Defaults to ALIAS.
22
- * @public
23
- */
24
- encoding?: VoicePronunciationEncoding | undefined;
25
- }
26
- /**
27
- * Synthesis options, used at two levels: as provider-level defaults on VoiceSpeechSettings and as
28
- * per-language overrides on VoiceLanguage. Absent means inherit; there is no way to express
29
- * 'explicitly the same as the parent', which is the intended simplification — the merged result is
30
- * identical either way. Which members apply is a property of the provider AND the model (Chirp 3:
31
- * HD documents only speakingRate; eleven_v3 carries no stability, similarity or speaker boost), so
32
- * the console renders them from a catalog rather than unconditionally.
33
- * @public
34
- */
35
- export interface VoiceSynthesisOptions {
36
- /**
37
- * Provider model id, e.g. 'eleven_flash_v2_5'.
38
- * @public
39
- */
40
- model?: string | undefined;
41
- /**
42
- * Speaking rate. ElevenLabs 0.7-1.2 (default 1.0); Google 0.25-2.0 (default 1.0).
43
- * @public
44
- */
45
- speed?: number | undefined;
46
- /**
47
- * ElevenLabs stability, 0-1 (default 0.5). Our clamp, not a vendor-stated bound.
48
- * @public
49
- */
50
- stability?: number | undefined;
51
- /**
52
- * ElevenLabs similarity boost, 0-1 (default 0.75). Our clamp.
53
- * @public
54
- */
55
- similarity?: number | undefined;
56
- /**
57
- * ElevenLabs style exaggeration, 0-1 (default 0). Our clamp.
58
- * @public
59
- */
60
- style?: number | undefined;
61
- /**
62
- * ElevenLabs speaker boost (default true).
63
- * @public
64
- */
65
- speakerBoost?: boolean | undefined;
66
- /**
67
- * Google pitch in semitones, -20 to 20. Not offered for Chirp 3: HD voices.
68
- * @public
69
- */
70
- pitch?: number | undefined;
71
- /**
72
- * Google volume gain in dB, -96 to 16 (default 0); the vendor recommends staying under +10. Not offered for Chirp 3: HD voices.
73
- * @public
74
- */
75
- volumeGain?: number | undefined;
76
- }
1
+ import type { VoiceAudioEncoding, VoiceCommandType, VoiceControlAction, VoiceEventType, VoiceInputMode } from "./enums";
77
2
  /**
78
3
  * A chunk of raw caller audio, base64-encoded in the session's negotiated input format
79
4
  * (inputAudio from the connect handshake). Used by web/app clients in AUDIO input mode; the
@@ -192,7 +117,7 @@ export interface VoiceAudioFormat {
192
117
  */
193
118
  export interface VoiceConnectParams {
194
119
  /**
195
- * Protocol version advertised by the client (query parameter `v`). 0 (or absent) is the legacy PBX protocol; >= 1 enables the sessionStarted event; >= 2 additionally means the client WAITS for `started` before opening its recognition stream and honours the `speech` payload on it.
120
+ * Protocol version advertised by the client (query parameter `v`). 0 (or absent) is the legacy PBX protocol; >= 1 enables the sessionStarted event.
196
121
  * @public
197
122
  */
198
123
  protocolVersion?: number | undefined;
@@ -436,11 +361,6 @@ export interface ReplyEvent {
436
361
  */
437
362
  id: string;
438
363
  text: string;
439
- /**
440
- * Language the recogniser identified for this completed utterance. THIS is the one that drives the language switch. When the recogniser reports several languages inside one utterance, the PBX sends the LAST labelled segment's language — it is the one the caller is speaking now.
441
- * @public
442
- */
443
- language?: string | undefined;
444
364
  startTime: number;
445
365
  endTime: number;
446
366
  }
@@ -484,11 +404,6 @@ export interface SayCommandData {
484
404
  * @public
485
405
  */
486
406
  interruptible?: boolean | undefined;
487
- /**
488
- * Polly voice the PBX should synthesize with. Set only for provider AMAZON_POLLY, whose synthesis runs on the PBX; ElevenLabs and Google stream PCM through `play` instead and leave this absent.
489
- * @public
490
- */
491
- voice?: string | undefined;
492
407
  /**
493
408
  * Audio-stream parameters when the server synthesizes the reply itself (TTS provider configured on the agent): the `say` is followed by a stream of `play` frames on this stream id.
494
409
  * @public
@@ -542,41 +457,6 @@ export interface SessionEndedWebsocketEvent {
542
457
  */
543
458
  event: SessionEndedEvent;
544
459
  }
545
- /**
546
- * Recognition intent for the call, sent on `started` at protocolVersion >= 2. NOT recogniser
547
- * parameters: the PBX translates it into its vendor's API. Against Amazon Transcribe with
548
- * autoDetect true that is identify-multiple-languages plus language-options and
549
- * preferred-language; with autoDetect false, a single-language stream on preferredLanguage.
550
- *
551
- * Both members the server can get wrong are resolved here rather than forwarded: `vendor` is
552
- * always concrete (an absent one would let the PBX apply a different default than the console
553
- * built its language list for), and `autoDetect` is clamped to false whenever the language count
554
- * is below the vendor's minimum or the vendor cannot identify languages at all (forwarding true
555
- * with one candidate makes Amazon reject the stream outright — a dead call).
556
- * @public
557
- */
558
- export interface VoiceSpeechPayload {
559
- /**
560
- * Concrete transcription vendor; never absent.
561
- * @public
562
- */
563
- vendor: VoiceTranscriptionVendor;
564
- /**
565
- * Every configured language, as candidates for identification.
566
- * @public
567
- */
568
- languages: string[];
569
- /**
570
- * The language the call starts in, resolved from the channel. Always a member of `languages`.
571
- * @public
572
- */
573
- preferredLanguage: string;
574
- /**
575
- * Whether to identify the spoken language per utterance. Already clamped by the server.
576
- * @public
577
- */
578
- autoDetect: boolean;
579
- }
580
460
  /**
581
461
  * Emitted once right after the handshake to confirm the session and the agent it is bound to. Sent only when the client advertises protocol version >= 1.
582
462
  * @public
@@ -629,24 +509,6 @@ export interface SessionStartedEvent {
629
509
  * @public
630
510
  */
631
511
  groupId?: string | undefined;
632
- /**
633
- * Recognition intent for the call. Sent only at protocolVersion >= 2 and only when the agent has `speech` configured. A v2 client that receives `started` WITHOUT this member falls back to exactly its pre-v2 behavior: a single-language stream on the channel's own `language`.
634
- * @public
635
- */
636
- speech?: VoiceSpeechPayload | undefined;
637
- /**
638
- * Music-on-hold class the PBX should play under the call as ambient background.
639
- *
640
- * TOP LEVEL, NOT INSIDE `speech`, because it is not recognition intent and must not inherit
641
- * `speech`'s conditions: a call with no configured languages carries no `speech` payload and can
642
- * still have background audio.
643
- *
644
- * ABSENT MEANS OFF, and absence is the only way to say it — there is no value for 'none'. A bot
645
- * whose administrator never touched the setting sends nothing here, which is exactly what every
646
- * call sent before it existed, so the PBX needs no new case.
647
- * @public
648
- */
649
- backgroundSound?: string | undefined;
650
512
  /**
651
513
  * Negotiated format of caller `audio` chunks the client should send (AUDIO mode).
652
514
  * @public
@@ -714,11 +576,6 @@ export interface TranscriptionEvent {
714
576
  * @public
715
577
  */
716
578
  final?: boolean | undefined;
717
- /**
718
- * Language the recogniser identified for this chunk. Recorded in the trace only — it drives no behavior, so an operator can see what the recogniser thought during an utterance that never became a turn.
719
- * @public
720
- */
721
- language?: string | undefined;
722
579
  time: number;
723
580
  }
724
581
  /**
@@ -843,141 +700,6 @@ export interface DescribeVoiceProtocolOutput {
843
700
  */
844
701
  transferWebsocketCommand?: TransferWebsocketCommand | undefined;
845
702
  }
846
- /**
847
- * @public
848
- */
849
- export interface ListSpeechVoicesInput {
850
- /**
851
- * Text-to-speech provider used to synthesize the agent's replies.
852
- * @public
853
- */
854
- provider: VoiceSpeechProvider;
855
- /**
856
- * Server-side filter for language-bound providers: only voices whose language SET CONTAINS this code. Ignored for ElevenLabs, whose voices are not language bound.
857
- * @public
858
- */
859
- language?: string | undefined;
860
- search?: string | undefined;
861
- /**
862
- * Id of the company's own provider credential, so the picker lists that account's voices including cloned ones. Resolved under the CALLER's company; an id that does not resolve there is rejected. Absent means the platform key.
863
- * @public
864
- */
865
- credential?: string | undefined;
866
- }
867
- /**
868
- * One voice offered by a synthesis provider.
869
- * @public
870
- */
871
- export interface SpeechVoice {
872
- /**
873
- * ElevenLabs voice_id, Google name, or Polly Id.
874
- * @public
875
- */
876
- id: string;
877
- name: string;
878
- /**
879
- * ElevenLabs verified_languages, Google languageCodes, or Polly LanguageCode plus AdditionalLanguageCodes. For an unbound provider this is metadata, not a constraint.
880
- * @public
881
- */
882
- languages?: string[] | undefined;
883
- gender?: string | undefined;
884
- accent?: string | undefined;
885
- /**
886
- * ElevenLabs category, Google tier, or the Polly engines the voice supports.
887
- * @public
888
- */
889
- category?: string | undefined;
890
- /**
891
- * Playable sample published by the provider. ElevenLabs only; the others publish none.
892
- * @public
893
- */
894
- previewUrl?: string | undefined;
895
- /**
896
- * ElevenLabs high_quality_base_model_ids — which models support this voice.
897
- * @public
898
- */
899
- models?: string[] | undefined;
900
- }
901
- /**
902
- * @public
903
- */
904
- export interface ListSpeechVoicesOutput {
905
- voices: SpeechVoice[];
906
- /**
907
- * The provider's FULL language set, independent of the `language` filter — this is what a form intersects with the transcription vendor's set to populate its language select. Empty when voices are not language bound, which means 'imposes no restriction'.
908
- * @public
909
- */
910
- languages?: string[] | undefined;
911
- /**
912
- * When this catalog was last read from the provider. `IsoTimestamp` rather than a bare `Timestamp`: restJson1 serialises the latter as epoch-seconds, which would make this the only Wilma operation answering with a numeric timestamp.
913
- * @public
914
- */
915
- refreshedAt: string;
916
- /**
917
- * True when the provider failed and an expired cache entry was served.
918
- * @public
919
- */
920
- stale?: boolean | undefined;
921
- }
922
- /**
923
- * @public
924
- */
925
- export interface PreviewSpeechInput {
926
- /**
927
- * Text-to-speech provider used to synthesize the agent's replies.
928
- * @public
929
- */
930
- provider: VoiceSpeechProvider;
931
- voice: string;
932
- /**
933
- * BCP-47 language tag, optionally with a region subtag: 'en', 'en-US', 'pt-BR'. Deliberately a
934
- * constrained string rather than an enum: the offerable set is a property of the selected
935
- * transcription vendor and changes with it, so an enumeration here would cap the set at whatever
936
- * was known when the model was released.
937
- * @public
938
- */
939
- language: string;
940
- /**
941
- * Text to speak, BEFORE pronunciation rules are applied.
942
- * @public
943
- */
944
- text: string;
945
- /**
946
- * Provider-level defaults. Merged SERVER-SIDE with the overrides below, by the same helper the call path uses — never pre-merged by the caller, or the form reimplements a rule the server owns and the preview can silently diverge from the call.
947
- * @public
948
- */
949
- synthesis?: VoiceSynthesisOptions | undefined;
950
- /**
951
- * The selected language's overrides of the above.
952
- * @public
953
- */
954
- languageSynthesis?: VoiceSynthesisOptions | undefined;
955
- /**
956
- * The agent's OWN rules for this language, unmerged. The company dictionary for `language` is applied server-side, for the reason given on `synthesis`.
957
- * @public
958
- */
959
- pronunciations?: VoicePronunciation[] | undefined;
960
- /**
961
- * Company-dictionary phrases this language declines. Applied SERVER-SIDE with the rules above, by the same helper the call path uses.
962
- * @public
963
- */
964
- suppressions?: string[] | undefined;
965
- /**
966
- * Credential id, resolved under the CALLER's company. Absent means the platform key.
967
- * @public
968
- */
969
- credential?: string | undefined;
970
- }
971
- /**
972
- * @public
973
- */
974
- export interface PreviewSpeechOutput {
975
- /**
976
- * audio/mpeg. The call path streams raw PCM to the PBX; the preview returns MP3 so a browser <audio> element plays it with no client-side decoding.
977
- * @public
978
- */
979
- audio: Uint8Array;
980
- }
981
703
  /**
982
704
  * Terminate the session and hang up the call.
983
705
  * @public
@@ -1038,11 +760,6 @@ export interface SendSayInput {
1038
760
  * @public
1039
761
  */
1040
762
  interruptible?: boolean | undefined;
1041
- /**
1042
- * Polly voice the PBX should synthesize with. Set only for provider AMAZON_POLLY, whose synthesis runs on the PBX; ElevenLabs and Google stream PCM through `play` instead and leave this absent.
1043
- * @public
1044
- */
1045
- voice?: string | undefined;
1046
763
  /**
1047
764
  * Audio-stream parameters when the server synthesizes the reply itself (TTS provider configured on the agent): the `say` is followed by a stream of `play` frames on this stream id.
1048
765
  * @public
@@ -10,8 +10,6 @@ export declare var ValidationException$: StaticErrorSchema;
10
10
  *
11
11
  */
12
12
  export declare const errorTypeRegistries: TypeRegistry[];
13
- export declare var VoicePronunciation$: StaticStructureSchema;
14
- export declare var VoiceSynthesisOptions$: StaticStructureSchema;
15
13
  export declare var AudioEvent$: StaticStructureSchema;
16
14
  export declare var AudioWebsocketEvent$: StaticStructureSchema;
17
15
  export declare var CompleteEvent$: StaticStructureSchema;
@@ -25,14 +23,10 @@ export declare var HangupCommandData$: StaticStructureSchema;
25
23
  export declare var HangupWebsocketCommand$: StaticStructureSchema;
26
24
  export declare var InterruptionEvent$: StaticStructureSchema;
27
25
  export declare var InterruptionWebsocketEvent$: StaticStructureSchema;
28
- export declare var ListSpeechVoicesInput$: StaticStructureSchema;
29
- export declare var ListSpeechVoicesOutput$: StaticStructureSchema;
30
26
  export declare var PlaybackEvent$: StaticStructureSchema;
31
27
  export declare var PlaybackWebsocketEvent$: StaticStructureSchema;
32
28
  export declare var PlayCommandData$: StaticStructureSchema;
33
29
  export declare var PlayWebsocketCommand$: StaticStructureSchema;
34
- export declare var PreviewSpeechInput$: StaticStructureSchema;
35
- export declare var PreviewSpeechOutput$: StaticStructureSchema;
36
30
  export declare var ReplyEvent$: StaticStructureSchema;
37
31
  export declare var ReplyWebsocketEvent$: StaticStructureSchema;
38
32
  export declare var SayCommandAudioOptions$: StaticStructureSchema;
@@ -52,7 +46,6 @@ export declare var SessionEndedEvent$: StaticStructureSchema;
52
46
  export declare var SessionEndedWebsocketEvent$: StaticStructureSchema;
53
47
  export declare var SessionStartedEvent$: StaticStructureSchema;
54
48
  export declare var SessionStartedWebsocketEvent$: StaticStructureSchema;
55
- export declare var SpeechVoice$: StaticStructureSchema;
56
49
  export declare var StopCommandData$: StaticStructureSchema;
57
50
  export declare var StopWebsocketCommand$: StaticStructureSchema;
58
51
  export declare var TranscriptionEvent$: StaticStructureSchema;
@@ -62,10 +55,7 @@ export declare var TransferWebsocketCommand$: StaticStructureSchema;
62
55
  export declare var VoiceAudioFormat$: StaticStructureSchema;
63
56
  export declare var VoiceConnectParams$: StaticStructureSchema;
64
57
  export declare var VoiceErrorEvent$: StaticStructureSchema;
65
- export declare var VoiceSpeechPayload$: StaticStructureSchema;
66
58
  export declare var DescribeVoiceProtocol$: StaticOperationSchema;
67
- export declare var ListSpeechVoices$: StaticOperationSchema;
68
- export declare var PreviewSpeech$: StaticOperationSchema;
69
59
  export declare var SendHangup$: StaticOperationSchema;
70
60
  export declare var SendPlay$: StaticOperationSchema;
71
61
  export declare var SendSay$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wilma-voice-client",
3
3
  "description": "@wildix/wilma-voice-client client",
4
- "version": "0.0.21",
4
+ "version": "0.0.24",
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",
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListSpeechVoicesCommand = exports.$Command = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
- const endpoints_1 = require("@smithy/core/endpoints");
7
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
- const schemas_0_1 = require("../schemas/schemas_0");
9
- class ListSpeechVoicesCommand extends client_1.Command
10
- .classBuilder()
11
- .ep(EndpointParameters_1.commonParams)
12
- .m(function (Command, cs, config, o) {
13
- return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
14
- })
15
- .s("WilmaVoice", "ListSpeechVoices", {})
16
- .n("WilmaVoiceClient", "ListSpeechVoicesCommand")
17
- .sc(schemas_0_1.ListSpeechVoices$)
18
- .build() {
19
- }
20
- exports.ListSpeechVoicesCommand = ListSpeechVoicesCommand;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PreviewSpeechCommand = exports.$Command = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
- const endpoints_1 = require("@smithy/core/endpoints");
7
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
- const schemas_0_1 = require("../schemas/schemas_0");
9
- class PreviewSpeechCommand extends client_1.Command
10
- .classBuilder()
11
- .ep(EndpointParameters_1.commonParams)
12
- .m(function (Command, cs, config, o) {
13
- return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
14
- })
15
- .s("WilmaVoice", "PreviewSpeech", {})
16
- .n("WilmaVoiceClient", "PreviewSpeechCommand")
17
- .sc(schemas_0_1.PreviewSpeech$)
18
- .build() {
19
- }
20
- exports.PreviewSpeechCommand = PreviewSpeechCommand;
@@ -1,16 +0,0 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListSpeechVoices$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSpeechVoicesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("WilmaVoice", "ListSpeechVoices", {})
13
- .n("WilmaVoiceClient", "ListSpeechVoicesCommand")
14
- .sc(ListSpeechVoices$)
15
- .build() {
16
- }
@@ -1,16 +0,0 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
4
- import { PreviewSpeech$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PreviewSpeechCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("WilmaVoice", "PreviewSpeech", {})
13
- .n("WilmaVoiceClient", "PreviewSpeechCommand")
14
- .sc(PreviewSpeech$)
15
- .build() {
16
- }
@@ -1,101 +0,0 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ListSpeechVoicesInput, ListSpeechVoicesOutput } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, WilmaVoiceClientResolvedConfig } from "../WilmaVoiceClient";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link ListSpeechVoicesCommand}.
14
- */
15
- export interface ListSpeechVoicesCommandInput extends ListSpeechVoicesInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link ListSpeechVoicesCommand}.
21
- */
22
- export interface ListSpeechVoicesCommandOutput extends ListSpeechVoicesOutput, __MetadataBearer {
23
- }
24
- declare const ListSpeechVoicesCommand_base: {
25
- new (input: ListSpeechVoicesCommandInput): import("@smithy/core/client").CommandImpl<ListSpeechVoicesCommandInput, ListSpeechVoicesCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ListSpeechVoicesCommandInput): import("@smithy/core/client").CommandImpl<ListSpeechVoicesCommandInput, ListSpeechVoicesCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Lists the voices a synthesis provider offers, from the provider's own API, cached per company, provider, credential and language.
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { WilmaVoiceClient, ListSpeechVoicesCommand } from "@wildix/wilma-voice-client"; // ES Modules import
35
- * // const { WilmaVoiceClient, ListSpeechVoicesCommand } = require("@wildix/wilma-voice-client"); // CommonJS import
36
- * // import type { WilmaVoiceClientConfig } from "@wildix/wilma-voice-client";
37
- * const config = {}; // type is WilmaVoiceClientConfig
38
- * const client = new WilmaVoiceClient(config);
39
- * const input = { // ListSpeechVoicesInput
40
- * provider: "elevenlabs" || "google" || "amazon_polly", // required
41
- * language: "STRING_VALUE",
42
- * search: "STRING_VALUE",
43
- * credential: "STRING_VALUE",
44
- * };
45
- * const command = new ListSpeechVoicesCommand(input);
46
- * const response = await client.send(command);
47
- * // { // ListSpeechVoicesOutput
48
- * // voices: [ // SpeechVoiceList // required
49
- * // { // SpeechVoice
50
- * // id: "STRING_VALUE", // required
51
- * // name: "STRING_VALUE", // required
52
- * // languages: [ // LanguageCodeList
53
- * // "STRING_VALUE",
54
- * // ],
55
- * // gender: "STRING_VALUE",
56
- * // accent: "STRING_VALUE",
57
- * // category: "STRING_VALUE",
58
- * // previewUrl: "STRING_VALUE",
59
- * // models: [ // SpeechVoiceModelList
60
- * // "STRING_VALUE",
61
- * // ],
62
- * // },
63
- * // ],
64
- * // languages: [
65
- * // "STRING_VALUE",
66
- * // ],
67
- * // refreshedAt: "STRING_VALUE", // required
68
- * // stale: true || false,
69
- * // };
70
- *
71
- * ```
72
- *
73
- * @param ListSpeechVoicesCommandInput - {@link ListSpeechVoicesCommandInput}
74
- * @returns {@link ListSpeechVoicesCommandOutput}
75
- * @see {@link ListSpeechVoicesCommandInput} for command's `input` shape.
76
- * @see {@link ListSpeechVoicesCommandOutput} for command's `response` shape.
77
- * @see {@link WilmaVoiceClientResolvedConfig | config} for WilmaVoiceClient's `config` shape.
78
- *
79
- * @throws {@link ValidationException} (client fault)
80
- *
81
- * @throws {@link ForbiddenException} (client fault)
82
- *
83
- * @throws {@link WilmaVoiceServiceException}
84
- * <p>Base exception class for all service exceptions from WilmaVoice service.</p>
85
- *
86
- *
87
- * @public
88
- */
89
- export declare class ListSpeechVoicesCommand extends ListSpeechVoicesCommand_base {
90
- /** @internal type navigation helper, not in runtime. */
91
- protected static __types: {
92
- api: {
93
- input: ListSpeechVoicesInput;
94
- output: ListSpeechVoicesOutput;
95
- };
96
- sdk: {
97
- input: ListSpeechVoicesCommandInput;
98
- output: ListSpeechVoicesCommandOutput;
99
- };
100
- };
101
- }