@aws-sdk/client-transcribe-streaming 3.315.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.
|
@@ -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);
|
|
@@ -1,48 +1,13 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { StartCallAnalyticsStreamTranscriptionCommand, } from "./commands/StartCallAnalyticsStreamTranscriptionCommand";
|
|
2
3
|
import { StartMedicalStreamTranscriptionCommand, } from "./commands/StartMedicalStreamTranscriptionCommand";
|
|
3
4
|
import { StartStreamTranscriptionCommand, } from "./commands/StartStreamTranscriptionCommand";
|
|
4
5
|
import { TranscribeStreamingClient } from "./TranscribeStreamingClient";
|
|
6
|
+
const commands = {
|
|
7
|
+
StartCallAnalyticsStreamTranscriptionCommand,
|
|
8
|
+
StartMedicalStreamTranscriptionCommand,
|
|
9
|
+
StartStreamTranscriptionCommand,
|
|
10
|
+
};
|
|
5
11
|
export class TranscribeStreaming extends TranscribeStreamingClient {
|
|
6
|
-
startCallAnalyticsStreamTranscription(args, optionsOrCb, cb) {
|
|
7
|
-
const command = new StartCallAnalyticsStreamTranscriptionCommand(args);
|
|
8
|
-
if (typeof optionsOrCb === "function") {
|
|
9
|
-
this.send(command, optionsOrCb);
|
|
10
|
-
}
|
|
11
|
-
else if (typeof cb === "function") {
|
|
12
|
-
if (typeof optionsOrCb !== "object")
|
|
13
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
14
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
return this.send(command, optionsOrCb);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
startMedicalStreamTranscription(args, optionsOrCb, cb) {
|
|
21
|
-
const command = new StartMedicalStreamTranscriptionCommand(args);
|
|
22
|
-
if (typeof optionsOrCb === "function") {
|
|
23
|
-
this.send(command, optionsOrCb);
|
|
24
|
-
}
|
|
25
|
-
else if (typeof cb === "function") {
|
|
26
|
-
if (typeof optionsOrCb !== "object")
|
|
27
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
28
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
return this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
startStreamTranscription(args, optionsOrCb, cb) {
|
|
35
|
-
const command = new StartStreamTranscriptionCommand(args);
|
|
36
|
-
if (typeof optionsOrCb === "function") {
|
|
37
|
-
this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
else if (typeof cb === "function") {
|
|
40
|
-
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
12
|
}
|
|
13
|
+
createAggregatedClient(commands, TranscribeStreaming);
|
|
@@ -3,6 +3,26 @@ import { StartCallAnalyticsStreamTranscriptionCommandInput, StartCallAnalyticsSt
|
|
|
3
3
|
import { StartMedicalStreamTranscriptionCommandInput, StartMedicalStreamTranscriptionCommandOutput } from "./commands/StartMedicalStreamTranscriptionCommand";
|
|
4
4
|
import { StartStreamTranscriptionCommandInput, StartStreamTranscriptionCommandOutput } from "./commands/StartStreamTranscriptionCommand";
|
|
5
5
|
import { TranscribeStreamingClient } from "./TranscribeStreamingClient";
|
|
6
|
+
export interface TranscribeStreaming {
|
|
7
|
+
/**
|
|
8
|
+
* @see {@link StartCallAnalyticsStreamTranscriptionCommand}
|
|
9
|
+
*/
|
|
10
|
+
startCallAnalyticsStreamTranscription(args: StartCallAnalyticsStreamTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<StartCallAnalyticsStreamTranscriptionCommandOutput>;
|
|
11
|
+
startCallAnalyticsStreamTranscription(args: StartCallAnalyticsStreamTranscriptionCommandInput, cb: (err: any, data?: StartCallAnalyticsStreamTranscriptionCommandOutput) => void): void;
|
|
12
|
+
startCallAnalyticsStreamTranscription(args: StartCallAnalyticsStreamTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCallAnalyticsStreamTranscriptionCommandOutput) => void): void;
|
|
13
|
+
/**
|
|
14
|
+
* @see {@link StartMedicalStreamTranscriptionCommand}
|
|
15
|
+
*/
|
|
16
|
+
startMedicalStreamTranscription(args: StartMedicalStreamTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<StartMedicalStreamTranscriptionCommandOutput>;
|
|
17
|
+
startMedicalStreamTranscription(args: StartMedicalStreamTranscriptionCommandInput, cb: (err: any, data?: StartMedicalStreamTranscriptionCommandOutput) => void): void;
|
|
18
|
+
startMedicalStreamTranscription(args: StartMedicalStreamTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartMedicalStreamTranscriptionCommandOutput) => void): void;
|
|
19
|
+
/**
|
|
20
|
+
* @see {@link StartStreamTranscriptionCommand}
|
|
21
|
+
*/
|
|
22
|
+
startStreamTranscription(args: StartStreamTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<StartStreamTranscriptionCommandOutput>;
|
|
23
|
+
startStreamTranscription(args: StartStreamTranscriptionCommandInput, cb: (err: any, data?: StartStreamTranscriptionCommandOutput) => void): void;
|
|
24
|
+
startStreamTranscription(args: StartStreamTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartStreamTranscriptionCommandOutput) => void): void;
|
|
25
|
+
}
|
|
6
26
|
/**
|
|
7
27
|
* @public
|
|
8
28
|
* <p>Amazon Transcribe streaming offers three main types of real-time transcription:
|
|
@@ -29,90 +49,5 @@ import { TranscribeStreamingClient } from "./TranscribeStreamingClient";
|
|
|
29
49
|
* </li>
|
|
30
50
|
* </ul>
|
|
31
51
|
*/
|
|
32
|
-
export declare class TranscribeStreaming extends TranscribeStreamingClient {
|
|
33
|
-
/**
|
|
34
|
-
* @public
|
|
35
|
-
* <p>Starts a bidirectional HTTP/2 or WebSocket stream where audio is streamed to
|
|
36
|
-
* Amazon Transcribe and the transcription results are streamed to your application. Use this operation
|
|
37
|
-
* for <a href="https://docs.aws.amazon.com/transcribe/latest/dg/call-analytics.html">Call Analytics</a> transcriptions.</p>
|
|
38
|
-
* <p>The following parameters are required:</p>
|
|
39
|
-
* <ul>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>
|
|
42
|
-
* <code>language-code</code>
|
|
43
|
-
* </p>
|
|
44
|
-
* </li>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>
|
|
47
|
-
* <code>media-encoding</code>
|
|
48
|
-
* </p>
|
|
49
|
-
* </li>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>
|
|
52
|
-
* <code>sample-rate</code>
|
|
53
|
-
* </p>
|
|
54
|
-
* </li>
|
|
55
|
-
* </ul>
|
|
56
|
-
* <p>For more information on streaming with Amazon Transcribe, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html">Transcribing streaming audio</a>.</p>
|
|
57
|
-
*/
|
|
58
|
-
startCallAnalyticsStreamTranscription(args: StartCallAnalyticsStreamTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<StartCallAnalyticsStreamTranscriptionCommandOutput>;
|
|
59
|
-
startCallAnalyticsStreamTranscription(args: StartCallAnalyticsStreamTranscriptionCommandInput, cb: (err: any, data?: StartCallAnalyticsStreamTranscriptionCommandOutput) => void): void;
|
|
60
|
-
startCallAnalyticsStreamTranscription(args: StartCallAnalyticsStreamTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCallAnalyticsStreamTranscriptionCommandOutput) => void): void;
|
|
61
|
-
/**
|
|
62
|
-
* @public
|
|
63
|
-
* <p>Starts a bidirectional HTTP/2 or WebSocket stream where audio is streamed to
|
|
64
|
-
* Amazon Transcribe Medical and the transcription results are streamed to your
|
|
65
|
-
* application.</p>
|
|
66
|
-
* <p>The following parameters are required:</p>
|
|
67
|
-
* <ul>
|
|
68
|
-
* <li>
|
|
69
|
-
* <p>
|
|
70
|
-
* <code>language-code</code>
|
|
71
|
-
* </p>
|
|
72
|
-
* </li>
|
|
73
|
-
* <li>
|
|
74
|
-
* <p>
|
|
75
|
-
* <code>media-encoding</code>
|
|
76
|
-
* </p>
|
|
77
|
-
* </li>
|
|
78
|
-
* <li>
|
|
79
|
-
* <p>
|
|
80
|
-
* <code>sample-rate</code>
|
|
81
|
-
* </p>
|
|
82
|
-
* </li>
|
|
83
|
-
* </ul>
|
|
84
|
-
* <p>For more information on streaming with Amazon Transcribe Medical, see
|
|
85
|
-
* <a href="https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html">Transcribing
|
|
86
|
-
* streaming audio</a>.</p>
|
|
87
|
-
*/
|
|
88
|
-
startMedicalStreamTranscription(args: StartMedicalStreamTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<StartMedicalStreamTranscriptionCommandOutput>;
|
|
89
|
-
startMedicalStreamTranscription(args: StartMedicalStreamTranscriptionCommandInput, cb: (err: any, data?: StartMedicalStreamTranscriptionCommandOutput) => void): void;
|
|
90
|
-
startMedicalStreamTranscription(args: StartMedicalStreamTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartMedicalStreamTranscriptionCommandOutput) => void): void;
|
|
91
|
-
/**
|
|
92
|
-
* @public
|
|
93
|
-
* <p>Starts a bidirectional HTTP/2 or WebSocket stream where audio is streamed to
|
|
94
|
-
* Amazon Transcribe and the transcription results are streamed to your application.</p>
|
|
95
|
-
* <p>The following parameters are required:</p>
|
|
96
|
-
* <ul>
|
|
97
|
-
* <li>
|
|
98
|
-
* <p>
|
|
99
|
-
* <code>language-code</code> or <code>identify-language</code>
|
|
100
|
-
* </p>
|
|
101
|
-
* </li>
|
|
102
|
-
* <li>
|
|
103
|
-
* <p>
|
|
104
|
-
* <code>media-encoding</code>
|
|
105
|
-
* </p>
|
|
106
|
-
* </li>
|
|
107
|
-
* <li>
|
|
108
|
-
* <p>
|
|
109
|
-
* <code>sample-rate</code>
|
|
110
|
-
* </p>
|
|
111
|
-
* </li>
|
|
112
|
-
* </ul>
|
|
113
|
-
* <p>For more information on streaming with Amazon Transcribe, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html">Transcribing streaming audio</a>.</p>
|
|
114
|
-
*/
|
|
115
|
-
startStreamTranscription(args: StartStreamTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<StartStreamTranscriptionCommandOutput>;
|
|
116
|
-
startStreamTranscription(args: StartStreamTranscriptionCommandInput, cb: (err: any, data?: StartStreamTranscriptionCommandOutput) => void): void;
|
|
117
|
-
startStreamTranscription(args: StartStreamTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartStreamTranscriptionCommandOutput) => void): void;
|
|
52
|
+
export declare class TranscribeStreaming extends TranscribeStreamingClient implements TranscribeStreaming {
|
|
118
53
|
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
StartStreamTranscriptionCommandOutput,
|
|
13
13
|
} from "./commands/StartStreamTranscriptionCommand";
|
|
14
14
|
import { TranscribeStreamingClient } from "./TranscribeStreamingClient";
|
|
15
|
-
export
|
|
15
|
+
export interface TranscribeStreaming {
|
|
16
16
|
startCallAnalyticsStreamTranscription(
|
|
17
17
|
args: StartCallAnalyticsStreamTranscriptionCommandInput,
|
|
18
18
|
options?: __HttpHandlerOptions
|
|
@@ -59,3 +59,6 @@ export declare class TranscribeStreaming extends TranscribeStreamingClient {
|
|
|
59
59
|
cb: (err: any, data?: StartStreamTranscriptionCommandOutput) => void
|
|
60
60
|
): void;
|
|
61
61
|
}
|
|
62
|
+
export declare class TranscribeStreaming
|
|
63
|
+
extends TranscribeStreamingClient
|
|
64
|
+
implements TranscribeStreaming {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-transcribe-streaming",
|
|
3
3
|
"description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
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",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
25
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
26
26
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
28
28
|
"@aws-sdk/eventstream-handler-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/eventstream-serde-browser": "3.310.0",
|
|
30
30
|
"@aws-sdk/eventstream-serde-config-resolver": "3.310.0",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
49
49
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
50
50
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
51
|
-
"@aws-sdk/smithy-client": "3.
|
|
51
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
52
52
|
"@aws-sdk/types": "3.310.0",
|
|
53
53
|
"@aws-sdk/url-parser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-base64": "3.310.0",
|
|
55
55
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
56
56
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
57
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
58
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
57
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
58
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
59
59
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
60
60
|
"@aws-sdk/util-retry": "3.310.0",
|
|
61
61
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|