@aws-sdk/client-transcribe-streaming 3.312.0 → 3.316.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.
- package/dist-cjs/TranscribeStreaming.js +7 -42
- package/dist-cjs/protocols/Aws_restJson1.js +143 -277
- package/dist-es/TranscribeStreaming.js +7 -42
- package/dist-es/protocols/Aws_restJson1.js +133 -267
- package/dist-types/TranscribeStreaming.d.ts +21 -86
- package/dist-types/ts3.4/TranscribeStreaming.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,52 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TranscribeStreaming = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const StartCallAnalyticsStreamTranscriptionCommand_1 = require("./commands/StartCallAnalyticsStreamTranscriptionCommand");
|
|
5
6
|
const StartMedicalStreamTranscriptionCommand_1 = require("./commands/StartMedicalStreamTranscriptionCommand");
|
|
6
7
|
const StartStreamTranscriptionCommand_1 = require("./commands/StartStreamTranscriptionCommand");
|
|
7
8
|
const TranscribeStreamingClient_1 = require("./TranscribeStreamingClient");
|
|
9
|
+
const commands = {
|
|
10
|
+
StartCallAnalyticsStreamTranscriptionCommand: StartCallAnalyticsStreamTranscriptionCommand_1.StartCallAnalyticsStreamTranscriptionCommand,
|
|
11
|
+
StartMedicalStreamTranscriptionCommand: StartMedicalStreamTranscriptionCommand_1.StartMedicalStreamTranscriptionCommand,
|
|
12
|
+
StartStreamTranscriptionCommand: StartStreamTranscriptionCommand_1.StartStreamTranscriptionCommand,
|
|
13
|
+
};
|
|
8
14
|
class TranscribeStreaming extends TranscribeStreamingClient_1.TranscribeStreamingClient {
|
|
9
|
-
startCallAnalyticsStreamTranscription(args, optionsOrCb, cb) {
|
|
10
|
-
const command = new StartCallAnalyticsStreamTranscriptionCommand_1.StartCallAnalyticsStreamTranscriptionCommand(args);
|
|
11
|
-
if (typeof optionsOrCb === "function") {
|
|
12
|
-
this.send(command, optionsOrCb);
|
|
13
|
-
}
|
|
14
|
-
else if (typeof cb === "function") {
|
|
15
|
-
if (typeof optionsOrCb !== "object")
|
|
16
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
17
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return this.send(command, optionsOrCb);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
startMedicalStreamTranscription(args, optionsOrCb, cb) {
|
|
24
|
-
const command = new StartMedicalStreamTranscriptionCommand_1.StartMedicalStreamTranscriptionCommand(args);
|
|
25
|
-
if (typeof optionsOrCb === "function") {
|
|
26
|
-
this.send(command, optionsOrCb);
|
|
27
|
-
}
|
|
28
|
-
else if (typeof cb === "function") {
|
|
29
|
-
if (typeof optionsOrCb !== "object")
|
|
30
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
31
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return this.send(command, optionsOrCb);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
startStreamTranscription(args, optionsOrCb, cb) {
|
|
38
|
-
const command = new StartStreamTranscriptionCommand_1.StartStreamTranscriptionCommand(args);
|
|
39
|
-
if (typeof optionsOrCb === "function") {
|
|
40
|
-
this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
else if (typeof cb === "function") {
|
|
43
|
-
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
15
|
}
|
|
52
16
|
exports.TranscribeStreaming = TranscribeStreaming;
|
|
17
|
+
(0, smithy_client_1.createAggregatedClient)(commands, TranscribeStreaming);
|