@wildix/wilma-voice-client 0.0.22 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/WilmaVoice.js +0 -4
- package/dist-cjs/commands/index.js +0 -2
- package/dist-cjs/models/enums.js +1 -13
- package/dist-cjs/schemas/schemas_0.js +68 -168
- package/dist-es/WilmaVoice.js +0 -4
- package/dist-es/commands/index.js +0 -2
- package/dist-es/models/enums.js +0 -12
- package/dist-es/schemas/schemas_0.js +66 -166
- package/dist-types/WilmaVoice.d.ts +0 -14
- package/dist-types/WilmaVoiceClient.d.ts +2 -4
- package/dist-types/commands/DescribeVoiceProtocolCommand.d.ts +0 -12
- package/dist-types/commands/SendSayCommand.d.ts +0 -1
- package/dist-types/commands/index.d.ts +0 -2
- package/dist-types/models/enums.d.ts +0 -42
- package/dist-types/models/models_0.d.ts +2 -285
- package/dist-types/schemas/schemas_0.d.ts +0 -10
- package/package.json +1 -1
- package/dist-cjs/commands/ListSpeechVoicesCommand.js +0 -20
- package/dist-cjs/commands/PreviewSpeechCommand.js +0 -20
- package/dist-es/commands/ListSpeechVoicesCommand.js +0 -16
- package/dist-es/commands/PreviewSpeechCommand.js +0 -16
- package/dist-types/commands/ListSpeechVoicesCommand.d.ts +0 -101
- package/dist-types/commands/PreviewSpeechCommand.d.ts +0 -119
|
@@ -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
|
-
}
|