@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,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
- }