@wildix/wilma-voice-client 0.0.26 → 0.0.27

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.
@@ -11,7 +11,6 @@ export declare var ValidationException$: StaticErrorSchema;
11
11
  */
12
12
  export declare const errorTypeRegistries: TypeRegistry[];
13
13
  export declare var VoicePronunciation$: StaticStructureSchema;
14
- export declare var VoiceSynthesisOptions$: StaticStructureSchema;
15
14
  export declare var AudioEvent$: StaticStructureSchema;
16
15
  export declare var AudioWebsocketEvent$: StaticStructureSchema;
17
16
  export declare var CompleteEvent$: StaticStructureSchema;
@@ -25,14 +24,12 @@ export declare var HangupCommandData$: StaticStructureSchema;
25
24
  export declare var HangupWebsocketCommand$: StaticStructureSchema;
26
25
  export declare var InterruptionEvent$: StaticStructureSchema;
27
26
  export declare var InterruptionWebsocketEvent$: StaticStructureSchema;
28
- export declare var ListSpeechVoicesInput$: StaticStructureSchema;
29
- export declare var ListSpeechVoicesOutput$: StaticStructureSchema;
27
+ export declare var ListVoicesInput$: StaticStructureSchema;
28
+ export declare var ListVoicesOutput$: StaticStructureSchema;
30
29
  export declare var PlaybackEvent$: StaticStructureSchema;
31
30
  export declare var PlaybackWebsocketEvent$: StaticStructureSchema;
32
31
  export declare var PlayCommandData$: StaticStructureSchema;
33
32
  export declare var PlayWebsocketCommand$: StaticStructureSchema;
34
- export declare var PreviewSpeechInput$: StaticStructureSchema;
35
- export declare var PreviewSpeechOutput$: StaticStructureSchema;
36
33
  export declare var ReplyEvent$: StaticStructureSchema;
37
34
  export declare var ReplyWebsocketEvent$: StaticStructureSchema;
38
35
  export declare var SayCommandAudioOptions$: StaticStructureSchema;
@@ -52,22 +49,24 @@ export declare var SessionEndedEvent$: StaticStructureSchema;
52
49
  export declare var SessionEndedWebsocketEvent$: StaticStructureSchema;
53
50
  export declare var SessionStartedEvent$: StaticStructureSchema;
54
51
  export declare var SessionStartedWebsocketEvent$: StaticStructureSchema;
55
- export declare var SpeechVoice$: StaticStructureSchema;
56
52
  export declare var StopCommandData$: StaticStructureSchema;
57
53
  export declare var StopWebsocketCommand$: StaticStructureSchema;
54
+ export declare var TextToSpeechInput$: StaticStructureSchema;
55
+ export declare var TextToSpeechOutput$: StaticStructureSchema;
58
56
  export declare var TranscriptionEvent$: StaticStructureSchema;
59
57
  export declare var TranscriptionWebsocketEvent$: StaticStructureSchema;
60
58
  export declare var TransferCommandData$: StaticStructureSchema;
61
59
  export declare var TransferWebsocketCommand$: StaticStructureSchema;
60
+ export declare var Voice$: StaticStructureSchema;
62
61
  export declare var VoiceAudioFormat$: StaticStructureSchema;
63
62
  export declare var VoiceConnectParams$: StaticStructureSchema;
64
63
  export declare var VoiceErrorEvent$: StaticStructureSchema;
65
64
  export declare var VoiceSpeechPayload$: StaticStructureSchema;
66
65
  export declare var DescribeVoiceProtocol$: StaticOperationSchema;
67
- export declare var ListSpeechVoices$: StaticOperationSchema;
68
- export declare var PreviewSpeech$: StaticOperationSchema;
66
+ export declare var ListVoices$: StaticOperationSchema;
69
67
  export declare var SendHangup$: StaticOperationSchema;
70
68
  export declare var SendPlay$: StaticOperationSchema;
71
69
  export declare var SendSay$: StaticOperationSchema;
72
70
  export declare var SendStop$: StaticOperationSchema;
73
71
  export declare var SendTransfer$: StaticOperationSchema;
72
+ export declare var TextToSpeech$: 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.26",
4
+ "version": "0.0.27",
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,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: [ // ProviderLanguageTagList
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
- }
@@ -1,119 +0,0 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { Uint8ArrayBlobAdapter } from "@smithy/core/serde";
3
- import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
- import type { PreviewSpeechInput, PreviewSpeechOutput } from "../models/models_0";
5
- import type { ServiceInputTypes, ServiceOutputTypes, WilmaVoiceClientResolvedConfig } from "../WilmaVoiceClient";
6
- /**
7
- * @public
8
- */
9
- export type { __MetadataBearer };
10
- export { $Command };
11
- /**
12
- * @public
13
- *
14
- * The input for {@link PreviewSpeechCommand}.
15
- */
16
- export interface PreviewSpeechCommandInput extends PreviewSpeechInput {
17
- }
18
- /**
19
- * @public
20
- */
21
- export type PreviewSpeechCommandOutputType = Omit<PreviewSpeechOutput, "audio"> & {
22
- audio: Uint8ArrayBlobAdapter;
23
- };
24
- /**
25
- * @public
26
- *
27
- * The output of {@link PreviewSpeechCommand}.
28
- */
29
- export interface PreviewSpeechCommandOutput extends PreviewSpeechCommandOutputType, __MetadataBearer {
30
- }
31
- declare const PreviewSpeechCommand_base: {
32
- new (input: PreviewSpeechCommandInput): import("@smithy/core/client").CommandImpl<PreviewSpeechCommandInput, PreviewSpeechCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
33
- new (input: PreviewSpeechCommandInput): import("@smithy/core/client").CommandImpl<PreviewSpeechCommandInput, PreviewSpeechCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
34
- getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
35
- };
36
- /**
37
- * Synthesizes one phrase with the supplied settings and returns MP3. Everything about the AGENT travels in the request because the settings being previewed are normally unsaved form state; the operation reads no stored agent. It does read the company's pronunciation dictionary for `language` — that is stored configuration rather than draft state, and it must be exactly what a call would use.
38
- * @example
39
- * Use a bare-bones client and the command you need to make an API call.
40
- * ```javascript
41
- * import { WilmaVoiceClient, PreviewSpeechCommand } from "@wildix/wilma-voice-client"; // ES Modules import
42
- * // const { WilmaVoiceClient, PreviewSpeechCommand } = require("@wildix/wilma-voice-client"); // CommonJS import
43
- * // import type { WilmaVoiceClientConfig } from "@wildix/wilma-voice-client";
44
- * const config = {}; // type is WilmaVoiceClientConfig
45
- * const client = new WilmaVoiceClient(config);
46
- * const input = { // PreviewSpeechInput
47
- * provider: "elevenlabs" || "google" || "amazon_polly", // required
48
- * voice: "STRING_VALUE", // required
49
- * language: "STRING_VALUE", // required
50
- * text: "STRING_VALUE", // required
51
- * synthesis: { // VoiceSynthesisOptions
52
- * model: "STRING_VALUE",
53
- * speed: Number("float"),
54
- * stability: Number("float"),
55
- * similarity: Number("float"),
56
- * style: Number("float"),
57
- * speakerBoost: true || false,
58
- * pitch: Number("float"),
59
- * volumeGain: Number("float"),
60
- * },
61
- * languageSynthesis: {
62
- * model: "STRING_VALUE",
63
- * speed: Number("float"),
64
- * stability: Number("float"),
65
- * similarity: Number("float"),
66
- * style: Number("float"),
67
- * speakerBoost: true || false,
68
- * pitch: Number("float"),
69
- * volumeGain: Number("float"),
70
- * },
71
- * pronunciations: [ // VoicePronunciationList
72
- * { // VoicePronunciation
73
- * phrase: "STRING_VALUE", // required
74
- * as: "STRING_VALUE", // required
75
- * encoding: "alias" || "ipa",
76
- * },
77
- * ],
78
- * suppressions: [ // VoicePronunciationSuppressionList
79
- * "STRING_VALUE",
80
- * ],
81
- * credential: "STRING_VALUE",
82
- * };
83
- * const command = new PreviewSpeechCommand(input);
84
- * const response = await client.send(command);
85
- * // { // PreviewSpeechOutput
86
- * // audio: new Uint8Array(), // required
87
- * // };
88
- *
89
- * ```
90
- *
91
- * @param PreviewSpeechCommandInput - {@link PreviewSpeechCommandInput}
92
- * @returns {@link PreviewSpeechCommandOutput}
93
- * @see {@link PreviewSpeechCommandInput} for command's `input` shape.
94
- * @see {@link PreviewSpeechCommandOutput} for command's `response` shape.
95
- * @see {@link WilmaVoiceClientResolvedConfig | config} for WilmaVoiceClient's `config` shape.
96
- *
97
- * @throws {@link ValidationException} (client fault)
98
- *
99
- * @throws {@link ForbiddenException} (client fault)
100
- *
101
- * @throws {@link WilmaVoiceServiceException}
102
- * <p>Base exception class for all service exceptions from WilmaVoice service.</p>
103
- *
104
- *
105
- * @public
106
- */
107
- export declare class PreviewSpeechCommand extends PreviewSpeechCommand_base {
108
- /** @internal type navigation helper, not in runtime. */
109
- protected static __types: {
110
- api: {
111
- input: PreviewSpeechInput;
112
- output: PreviewSpeechOutput;
113
- };
114
- sdk: {
115
- input: PreviewSpeechCommandInput;
116
- output: PreviewSpeechCommandOutput;
117
- };
118
- };
119
- }