@aws-sdk/client-transcribe-streaming 3.734.0 → 3.741.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.
@@ -0,0 +1,128 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetMedicalScribeStreamRequest, GetMedicalScribeStreamResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TranscribeStreamingClientResolvedConfig } from "../TranscribeStreamingClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetMedicalScribeStreamCommand}.
14
+ */
15
+ export interface GetMedicalScribeStreamCommandInput extends GetMedicalScribeStreamRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetMedicalScribeStreamCommand}.
21
+ */
22
+ export interface GetMedicalScribeStreamCommandOutput extends GetMedicalScribeStreamResponse, __MetadataBearer {
23
+ }
24
+ declare const GetMedicalScribeStreamCommand_base: {
25
+ new (input: GetMedicalScribeStreamCommandInput): import("@smithy/smithy-client").CommandImpl<GetMedicalScribeStreamCommandInput, GetMedicalScribeStreamCommandOutput, TranscribeStreamingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetMedicalScribeStreamCommandInput): import("@smithy/smithy-client").CommandImpl<GetMedicalScribeStreamCommandInput, GetMedicalScribeStreamCommandOutput, TranscribeStreamingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Provides details about the specified Amazon Web Services HealthScribe streaming session.
31
+ * To view the status of the streaming session, check the <code>StreamStatus</code> field in the response. To get the
32
+ * details of post-stream analytics, including its status, check the <code>PostStreamAnalyticsResult</code> field in the response.
33
+ * </p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { TranscribeStreamingClient, GetMedicalScribeStreamCommand } from "@aws-sdk/client-transcribe-streaming"; // ES Modules import
38
+ * // const { TranscribeStreamingClient, GetMedicalScribeStreamCommand } = require("@aws-sdk/client-transcribe-streaming"); // CommonJS import
39
+ * const client = new TranscribeStreamingClient(config);
40
+ * const input = { // GetMedicalScribeStreamRequest
41
+ * SessionId: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GetMedicalScribeStreamCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetMedicalScribeStreamResponse
46
+ * // MedicalScribeStreamDetails: { // MedicalScribeStreamDetails
47
+ * // SessionId: "STRING_VALUE",
48
+ * // StreamCreatedAt: new Date("TIMESTAMP"),
49
+ * // StreamEndedAt: new Date("TIMESTAMP"),
50
+ * // LanguageCode: "en-US",
51
+ * // MediaSampleRateHertz: Number("int"),
52
+ * // MediaEncoding: "pcm" || "ogg-opus" || "flac",
53
+ * // VocabularyName: "STRING_VALUE",
54
+ * // VocabularyFilterName: "STRING_VALUE",
55
+ * // VocabularyFilterMethod: "remove" || "mask" || "tag",
56
+ * // ResourceAccessRoleArn: "STRING_VALUE",
57
+ * // ChannelDefinitions: [ // MedicalScribeChannelDefinitions
58
+ * // { // MedicalScribeChannelDefinition
59
+ * // ChannelId: Number("int"), // required
60
+ * // ParticipantRole: "PATIENT" || "CLINICIAN", // required
61
+ * // },
62
+ * // ],
63
+ * // EncryptionSettings: { // MedicalScribeEncryptionSettings
64
+ * // KmsEncryptionContext: { // KMSEncryptionContextMap
65
+ * // "<keys>": "STRING_VALUE",
66
+ * // },
67
+ * // KmsKeyId: "STRING_VALUE", // required
68
+ * // },
69
+ * // StreamStatus: "IN_PROGRESS" || "PAUSED" || "FAILED" || "COMPLETED",
70
+ * // PostStreamAnalyticsSettings: { // MedicalScribePostStreamAnalyticsSettings
71
+ * // ClinicalNoteGenerationSettings: { // ClinicalNoteGenerationSettings
72
+ * // OutputBucketName: "STRING_VALUE", // required
73
+ * // },
74
+ * // },
75
+ * // PostStreamAnalyticsResult: { // MedicalScribePostStreamAnalyticsResult
76
+ * // ClinicalNoteGenerationResult: { // ClinicalNoteGenerationResult
77
+ * // ClinicalNoteOutputLocation: "STRING_VALUE",
78
+ * // TranscriptOutputLocation: "STRING_VALUE",
79
+ * // Status: "IN_PROGRESS" || "FAILED" || "COMPLETED",
80
+ * // FailureReason: "STRING_VALUE",
81
+ * // },
82
+ * // },
83
+ * // },
84
+ * // };
85
+ *
86
+ * ```
87
+ *
88
+ * @param GetMedicalScribeStreamCommandInput - {@link GetMedicalScribeStreamCommandInput}
89
+ * @returns {@link GetMedicalScribeStreamCommandOutput}
90
+ * @see {@link GetMedicalScribeStreamCommandInput} for command's `input` shape.
91
+ * @see {@link GetMedicalScribeStreamCommandOutput} for command's `response` shape.
92
+ * @see {@link TranscribeStreamingClientResolvedConfig | config} for TranscribeStreamingClient's `config` shape.
93
+ *
94
+ * @throws {@link BadRequestException} (client fault)
95
+ * <p>One or more arguments to the <code>StartStreamTranscription</code>,
96
+ * <code>StartMedicalStreamTranscription</code>, or <code>StartCallAnalyticsStreamTranscription</code>
97
+ * operation was not valid. For example, <code>MediaEncoding</code> or <code>LanguageCode</code>
98
+ * used unsupported values. Check the specified parameters and try your request again.</p>
99
+ *
100
+ * @throws {@link InternalFailureException} (server fault)
101
+ * <p>A problem occurred while processing the audio. Amazon Transcribe terminated
102
+ * processing.</p>
103
+ *
104
+ * @throws {@link LimitExceededException} (client fault)
105
+ * <p>Your client has exceeded one of the Amazon Transcribe limits. This is typically the audio length
106
+ * limit. Break your audio stream into smaller chunks and try your request again.</p>
107
+ *
108
+ * @throws {@link ResourceNotFoundException} (client fault)
109
+ * <p>The request references a resource which doesn't exist.</p>
110
+ *
111
+ * @throws {@link TranscribeStreamingServiceException}
112
+ * <p>Base exception class for all service exceptions from TranscribeStreaming service.</p>
113
+ *
114
+ * @public
115
+ */
116
+ export declare class GetMedicalScribeStreamCommand extends GetMedicalScribeStreamCommand_base {
117
+ /** @internal type navigation helper, not in runtime. */
118
+ protected static __types: {
119
+ api: {
120
+ input: GetMedicalScribeStreamRequest;
121
+ output: GetMedicalScribeStreamResponse;
122
+ };
123
+ sdk: {
124
+ input: GetMedicalScribeStreamCommandInput;
125
+ output: GetMedicalScribeStreamCommandOutput;
126
+ };
127
+ };
128
+ }
@@ -0,0 +1,205 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { StartMedicalScribeStreamRequest, StartMedicalScribeStreamResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TranscribeStreamingClientResolvedConfig } from "../TranscribeStreamingClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StartMedicalScribeStreamCommand}.
14
+ */
15
+ export interface StartMedicalScribeStreamCommandInput extends StartMedicalScribeStreamRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartMedicalScribeStreamCommand}.
21
+ */
22
+ export interface StartMedicalScribeStreamCommandOutput extends StartMedicalScribeStreamResponse, __MetadataBearer {
23
+ }
24
+ declare const StartMedicalScribeStreamCommand_base: {
25
+ new (input: StartMedicalScribeStreamCommandInput): import("@smithy/smithy-client").CommandImpl<StartMedicalScribeStreamCommandInput, StartMedicalScribeStreamCommandOutput, TranscribeStreamingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: StartMedicalScribeStreamCommandInput): import("@smithy/smithy-client").CommandImpl<StartMedicalScribeStreamCommandInput, StartMedicalScribeStreamCommandOutput, TranscribeStreamingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Starts a bidirectional HTTP/2 stream, where audio is streamed to
31
+ * Amazon Web Services HealthScribe
32
+ * and the transcription results are streamed to your application.</p>
33
+ * <p>When you start a stream, you first specify the stream configuration in a <code>MedicalScribeConfigurationEvent</code>.
34
+ * This event includes channel definitions, encryption settings, and post-stream analytics settings, such as the output configuration for aggregated transcript and clinical note generation. These are additional
35
+ * streaming session configurations beyond those provided in your initial start request headers. Whether you are starting a new session or resuming an existing session,
36
+ * your first event must be a <code>MedicalScribeConfigurationEvent</code>. </p>
37
+ * <p>
38
+ * After you send a <code>MedicalScribeConfigurationEvent</code>, you start <code>AudioEvents</code> and Amazon Web Services HealthScribe
39
+ * responds with real-time transcription results. When you are finished, to start processing the results with the post-stream analytics, send a <code>MedicalScribeSessionControlEvent</code> with a <code>Type</code> of
40
+ * <code>END_OF_SESSION</code> and Amazon Web Services HealthScribe starts the analytics.
41
+ * </p>
42
+ * <p>You can pause or resume streaming.
43
+ * To pause streaming, complete the input stream without sending the
44
+ * <code>MedicalScribeSessionControlEvent</code>.
45
+ * To resume streaming, call the <code>StartMedicalScribeStream</code> and specify the same SessionId you used to start the stream.
46
+ * </p>
47
+ * <p>The following parameters are required:</p>
48
+ * <ul>
49
+ * <li>
50
+ * <p>
51
+ * <code>language-code</code>
52
+ * </p>
53
+ * </li>
54
+ * <li>
55
+ * <p>
56
+ * <code>media-encoding</code>
57
+ * </p>
58
+ * </li>
59
+ * <li>
60
+ * <p>
61
+ * <code>media-sample-rate-hertz</code>
62
+ * </p>
63
+ * </li>
64
+ * </ul>
65
+ * <p></p>
66
+ * <p>For more information on streaming with
67
+ * Amazon Web Services HealthScribe,
68
+ * see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/health-scribe-streaming.html">Amazon Web Services HealthScribe</a>.
69
+ * </p>
70
+ * @example
71
+ * Use a bare-bones client and the command you need to make an API call.
72
+ * ```javascript
73
+ * import { TranscribeStreamingClient, StartMedicalScribeStreamCommand } from "@aws-sdk/client-transcribe-streaming"; // ES Modules import
74
+ * // const { TranscribeStreamingClient, StartMedicalScribeStreamCommand } = require("@aws-sdk/client-transcribe-streaming"); // CommonJS import
75
+ * const client = new TranscribeStreamingClient(config);
76
+ * const input = { // StartMedicalScribeStreamRequest
77
+ * SessionId: "STRING_VALUE",
78
+ * LanguageCode: "en-US", // required
79
+ * MediaSampleRateHertz: Number("int"), // required
80
+ * MediaEncoding: "pcm" || "ogg-opus" || "flac", // required
81
+ * InputStream: { // MedicalScribeInputStream Union: only one key present
82
+ * AudioEvent: { // MedicalScribeAudioEvent
83
+ * AudioChunk: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
84
+ * },
85
+ * SessionControlEvent: { // MedicalScribeSessionControlEvent
86
+ * Type: "END_OF_SESSION", // required
87
+ * },
88
+ * ConfigurationEvent: { // MedicalScribeConfigurationEvent
89
+ * VocabularyName: "STRING_VALUE",
90
+ * VocabularyFilterName: "STRING_VALUE",
91
+ * VocabularyFilterMethod: "remove" || "mask" || "tag",
92
+ * ResourceAccessRoleArn: "STRING_VALUE", // required
93
+ * ChannelDefinitions: [ // MedicalScribeChannelDefinitions
94
+ * { // MedicalScribeChannelDefinition
95
+ * ChannelId: Number("int"), // required
96
+ * ParticipantRole: "PATIENT" || "CLINICIAN", // required
97
+ * },
98
+ * ],
99
+ * EncryptionSettings: { // MedicalScribeEncryptionSettings
100
+ * KmsEncryptionContext: { // KMSEncryptionContextMap
101
+ * "<keys>": "STRING_VALUE",
102
+ * },
103
+ * KmsKeyId: "STRING_VALUE", // required
104
+ * },
105
+ * PostStreamAnalyticsSettings: { // MedicalScribePostStreamAnalyticsSettings
106
+ * ClinicalNoteGenerationSettings: { // ClinicalNoteGenerationSettings
107
+ * OutputBucketName: "STRING_VALUE", // required
108
+ * },
109
+ * },
110
+ * },
111
+ * },
112
+ * };
113
+ * const command = new StartMedicalScribeStreamCommand(input);
114
+ * const response = await client.send(command);
115
+ * // { // StartMedicalScribeStreamResponse
116
+ * // SessionId: "STRING_VALUE",
117
+ * // RequestId: "STRING_VALUE",
118
+ * // LanguageCode: "en-US",
119
+ * // MediaSampleRateHertz: Number("int"),
120
+ * // MediaEncoding: "pcm" || "ogg-opus" || "flac",
121
+ * // ResultStream: { // MedicalScribeResultStream Union: only one key present
122
+ * // TranscriptEvent: { // MedicalScribeTranscriptEvent
123
+ * // TranscriptSegment: { // MedicalScribeTranscriptSegment
124
+ * // SegmentId: "STRING_VALUE",
125
+ * // BeginAudioTime: Number("double"),
126
+ * // EndAudioTime: Number("double"),
127
+ * // Content: "STRING_VALUE",
128
+ * // Items: [ // MedicalScribeTranscriptItemList
129
+ * // { // MedicalScribeTranscriptItem
130
+ * // BeginAudioTime: Number("double"),
131
+ * // EndAudioTime: Number("double"),
132
+ * // Type: "pronunciation" || "punctuation",
133
+ * // Confidence: Number("double"),
134
+ * // Content: "STRING_VALUE",
135
+ * // VocabularyFilterMatch: true || false,
136
+ * // },
137
+ * // ],
138
+ * // IsPartial: true || false,
139
+ * // ChannelId: "STRING_VALUE",
140
+ * // },
141
+ * // },
142
+ * // BadRequestException: { // BadRequestException
143
+ * // Message: "STRING_VALUE",
144
+ * // },
145
+ * // LimitExceededException: { // LimitExceededException
146
+ * // Message: "STRING_VALUE",
147
+ * // },
148
+ * // InternalFailureException: { // InternalFailureException
149
+ * // Message: "STRING_VALUE",
150
+ * // },
151
+ * // ConflictException: { // ConflictException
152
+ * // Message: "STRING_VALUE",
153
+ * // },
154
+ * // ServiceUnavailableException: { // ServiceUnavailableException
155
+ * // Message: "STRING_VALUE",
156
+ * // },
157
+ * // },
158
+ * // };
159
+ *
160
+ * ```
161
+ *
162
+ * @param StartMedicalScribeStreamCommandInput - {@link StartMedicalScribeStreamCommandInput}
163
+ * @returns {@link StartMedicalScribeStreamCommandOutput}
164
+ * @see {@link StartMedicalScribeStreamCommandInput} for command's `input` shape.
165
+ * @see {@link StartMedicalScribeStreamCommandOutput} for command's `response` shape.
166
+ * @see {@link TranscribeStreamingClientResolvedConfig | config} for TranscribeStreamingClient's `config` shape.
167
+ *
168
+ * @throws {@link BadRequestException} (client fault)
169
+ * <p>One or more arguments to the <code>StartStreamTranscription</code>,
170
+ * <code>StartMedicalStreamTranscription</code>, or <code>StartCallAnalyticsStreamTranscription</code>
171
+ * operation was not valid. For example, <code>MediaEncoding</code> or <code>LanguageCode</code>
172
+ * used unsupported values. Check the specified parameters and try your request again.</p>
173
+ *
174
+ * @throws {@link ConflictException} (client fault)
175
+ * <p>A new stream started with the same session ID. The current stream has been terminated.</p>
176
+ *
177
+ * @throws {@link InternalFailureException} (server fault)
178
+ * <p>A problem occurred while processing the audio. Amazon Transcribe terminated
179
+ * processing.</p>
180
+ *
181
+ * @throws {@link LimitExceededException} (client fault)
182
+ * <p>Your client has exceeded one of the Amazon Transcribe limits. This is typically the audio length
183
+ * limit. Break your audio stream into smaller chunks and try your request again.</p>
184
+ *
185
+ * @throws {@link ServiceUnavailableException} (server fault)
186
+ * <p>The service is currently unavailable. Try your request later.</p>
187
+ *
188
+ * @throws {@link TranscribeStreamingServiceException}
189
+ * <p>Base exception class for all service exceptions from TranscribeStreaming service.</p>
190
+ *
191
+ * @public
192
+ */
193
+ export declare class StartMedicalScribeStreamCommand extends StartMedicalScribeStreamCommand_base {
194
+ /** @internal type navigation helper, not in runtime. */
195
+ protected static __types: {
196
+ api: {
197
+ input: StartMedicalScribeStreamRequest;
198
+ output: StartMedicalScribeStreamResponse;
199
+ };
200
+ sdk: {
201
+ input: StartMedicalScribeStreamCommandInput;
202
+ output: StartMedicalScribeStreamCommandOutput;
203
+ };
204
+ };
205
+ }
@@ -1,3 +1,5 @@
1
+ export * from "./GetMedicalScribeStreamCommand";
1
2
  export * from "./StartCallAnalyticsStreamTranscriptionCommand";
3
+ export * from "./StartMedicalScribeStreamCommand";
2
4
  export * from "./StartMedicalStreamTranscriptionCommand";
3
5
  export * from "./StartStreamTranscriptionCommand";
@@ -1,7 +1,8 @@
1
1
  /**
2
- * <p>Amazon Transcribe streaming offers three main types of real-time transcription:
3
- * <b>Standard</b>, <b>Medical</b>, and
4
- * <b>Call Analytics</b>.</p>
2
+ * <p>Amazon Transcribe streaming offers four main types of real-time transcription:
3
+ * <b>Standard</b>, <b>Medical</b>,
4
+ * <b>Call Analytics</b>,
5
+ * and <b>Health Scribe</b>.</p>
5
6
  * <ul>
6
7
  * <li>
7
8
  * <p>
@@ -21,6 +22,12 @@
21
22
  * center audio on two different channels; if you're looking for insight into customer service calls, use this
22
23
  * option. Refer to for details.</p>
23
24
  * </li>
25
+ * <li>
26
+ * <p>
27
+ * <b>HealthScribe transcriptions</b> are designed to
28
+ * automatically create clinical notes from patient-clinician conversations using generative AI.
29
+ * Refer to [here] for details.</p>
30
+ * </li>
24
31
  * </ul>
25
32
  *
26
33
  * @packageDocumentation