Socket
Socket
Sign inDemoInstall

@aws-sdk/client-transcribe-streaming

Package Overview
Dependencies
Maintainers
5
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-transcribe-streaming - npm Package Compare versions

Comparing version 3.12.0 to 3.13.0

4

commands/StartMedicalStreamTranscriptionCommand.ts

@@ -30,4 +30,4 @@ import {

/**
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe Medical and the transcription
* results are streamed to your application.</p>
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe Medical and the
* transcription results are streamed to your application.</p>
*/

@@ -34,0 +34,0 @@ export class StartMedicalStreamTranscriptionCommand extends $Command<

@@ -10,4 +10,4 @@ "use strict";

/**
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe Medical and the transcription
* results are streamed to your application.</p>
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe Medical and the
* transcription results are streamed to your application.</p>
*/

@@ -14,0 +14,0 @@ class StartMedicalStreamTranscriptionCommand extends smithy_client_1.Command {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StartStreamTranscriptionResponse = exports.TranscriptResultStream = exports.TranscriptEvent = exports.Transcript = exports.StartStreamTranscriptionRequest = exports.VocabularyFilterMethod = exports.StartMedicalStreamTranscriptionResponse = exports.StartMedicalStreamTranscriptionRequest = exports.Type = exports.Specialty = exports.Result = exports.MedicalTranscriptResultStream = exports.ServiceUnavailableException = exports.MedicalTranscriptEvent = exports.MedicalTranscript = exports.MedicalResult = exports.MedicalAlternative = exports.MedicalItem = exports.MediaEncoding = exports.LimitExceededException = exports.LanguageCode = exports.InternalFailureException = exports.ConflictException = exports.BadRequestException = exports.AudioStream = exports.AudioEvent = exports.Alternative = exports.Item = exports.ItemType = void 0;
exports.StartStreamTranscriptionResponse = exports.TranscriptResultStream = exports.TranscriptEvent = exports.Transcript = exports.StartStreamTranscriptionRequest = exports.VocabularyFilterMethod = exports.StartMedicalStreamTranscriptionResponse = exports.StartMedicalStreamTranscriptionRequest = exports.Type = exports.Specialty = exports.Result = exports.MedicalTranscriptResultStream = exports.ServiceUnavailableException = exports.MedicalTranscriptEvent = exports.MedicalTranscript = exports.MedicalResult = exports.MedicalContentIdentificationType = exports.MedicalAlternative = exports.MedicalItem = exports.MedicalEntity = exports.MediaEncoding = exports.LimitExceededException = exports.LanguageCode = exports.InternalFailureException = exports.ConflictException = exports.BadRequestException = exports.AudioStream = exports.AudioEvent = exports.Alternative = exports.Item = exports.ItemType = void 0;
var ItemType;

@@ -72,2 +72,3 @@ (function (ItemType) {

LanguageCode["PT_BR"] = "pt-BR";
LanguageCode["ZH_CN"] = "zh-CN";
})(LanguageCode = exports.LanguageCode || (exports.LanguageCode = {}));

@@ -86,2 +87,8 @@ var LimitExceededException;

})(MediaEncoding = exports.MediaEncoding || (exports.MediaEncoding = {}));
var MedicalEntity;
(function (MedicalEntity) {
MedicalEntity.filterSensitiveLog = (obj) => ({
...obj,
});
})(MedicalEntity = exports.MedicalEntity || (exports.MedicalEntity = {}));
var MedicalItem;

@@ -99,2 +106,6 @@ (function (MedicalItem) {

})(MedicalAlternative = exports.MedicalAlternative || (exports.MedicalAlternative = {}));
var MedicalContentIdentificationType;
(function (MedicalContentIdentificationType) {
MedicalContentIdentificationType["PHI"] = "PHI";
})(MedicalContentIdentificationType = exports.MedicalContentIdentificationType || (exports.MedicalContentIdentificationType = {}));
var MedicalResult;

@@ -101,0 +112,0 @@ (function (MedicalResult) {

{
"name": "@aws-sdk/client-transcribe-streaming",
"description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native",
"version": "3.12.0",
"version": "3.13.0",
"scripts": {

@@ -33,5 +33,5 @@ "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",

"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.12.0",
"@aws-sdk/client-sts": "3.13.0",
"@aws-sdk/config-resolver": "3.12.0",
"@aws-sdk/credential-provider-node": "3.12.0",
"@aws-sdk/credential-provider-node": "3.13.0",
"@aws-sdk/eventstream-handler-node": "3.12.0",

@@ -60,3 +60,2 @@ "@aws-sdk/eventstream-serde-browser": "3.12.0",

"@aws-sdk/url-parser": "3.12.0",
"@aws-sdk/url-parser-native": "3.12.0",
"@aws-sdk/util-base64-browser": "3.12.0",

@@ -73,3 +72,3 @@ "@aws-sdk/util-base64-node": "3.12.0",

"devDependencies": {
"@aws-sdk/client-documentation-generator": "3.12.0",
"@aws-sdk/client-documentation-generator": "3.13.0",
"@types/node": "^12.7.5",

@@ -76,0 +75,0 @@ "downlevel-dts": "0.7.0",

@@ -28,2 +28,5 @@ "use strict";

}),
...(isSerializableHeaderValue(input.ContentIdentificationType) && {
"x-amzn-transcribe-content-identification-type": input.ContentIdentificationType,
}),
};

@@ -97,2 +100,3 @@ let resolvedPath = "/medical-stream-transcription";

$metadata: deserializeMetadata(output),
ContentIdentificationType: undefined,
EnableChannelIdentification: undefined,

@@ -144,2 +148,5 @@ LanguageCode: undefined,

}
if (output.headers["x-amzn-transcribe-content-identification-type"] !== undefined) {
contents.ContentIdentificationType = output.headers["x-amzn-transcribe-content-identification-type"];
}
const data = context.eventStreamMarshaller.deserialize(output.body, async (event) => {

@@ -598,2 +605,3 @@ const eventName = Object.keys(event)[0];

return {
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined,
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined,

@@ -621,2 +629,5 @@ EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined,

return {
Entities: output.Entities !== undefined && output.Entities !== null
? deserializeAws_restJson1MedicalEntityList(output.Entities, context)
: undefined,
Items: output.Items !== undefined && output.Items !== null

@@ -638,2 +649,21 @@ ? deserializeAws_restJson1MedicalItemList(output.Items, context)

};
const deserializeAws_restJson1MedicalEntity = (output, context) => {
return {
Category: output.Category !== undefined && output.Category !== null ? output.Category : undefined,
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined,
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined,
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined,
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined,
};
};
const deserializeAws_restJson1MedicalEntityList = (output, context) => {
return (output || [])
.filter((e) => e != null)
.map((entry) => {
if (entry === null) {
return null;
}
return deserializeAws_restJson1MedicalEntity(entry, context);
});
};
const deserializeAws_restJson1MedicalItem = (output, context) => {

@@ -640,0 +670,0 @@ return {

@@ -6,3 +6,2 @@ "use strict";

const middleware_sdk_transcribe_streaming_1 = require("@aws-sdk/middleware-sdk-transcribe-streaming");
const url_parser_native_1 = require("@aws-sdk/url-parser-native");
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");

@@ -18,4 +17,3 @@ /**

sha256: sha256_js_1.Sha256,
urlParser: url_parser_native_1.parseUrl,
};
//# sourceMappingURL=runtimeConfig.native.js.map

@@ -8,4 +8,4 @@ import { __extends } from "tslib";

/**
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe Medical and the transcription
* results are streamed to your application.</p>
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe Medical and the
* transcription results are streamed to your application.</p>
*/

@@ -12,0 +12,0 @@ var StartMedicalStreamTranscriptionCommand = /** @class */ (function (_super) {

@@ -59,2 +59,3 @@ import { __assign } from "tslib";

LanguageCode["PT_BR"] = "pt-BR";
LanguageCode["ZH_CN"] = "zh-CN";
})(LanguageCode || (LanguageCode = {}));

@@ -71,2 +72,6 @@ export var LimitExceededException;

})(MediaEncoding || (MediaEncoding = {}));
export var MedicalEntity;
(function (MedicalEntity) {
MedicalEntity.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
})(MedicalEntity || (MedicalEntity = {}));
export var MedicalItem;

@@ -80,2 +85,6 @@ (function (MedicalItem) {

})(MedicalAlternative || (MedicalAlternative = {}));
export var MedicalContentIdentificationType;
(function (MedicalContentIdentificationType) {
MedicalContentIdentificationType["PHI"] = "PHI";
})(MedicalContentIdentificationType || (MedicalContentIdentificationType = {}));
export var MedicalResult;

@@ -82,0 +91,0 @@ (function (MedicalResult) {

{
"name": "@aws-sdk/client-transcribe-streaming",
"description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native",
"version": "3.12.0",
"version": "3.13.0",
"scripts": {

@@ -33,5 +33,5 @@ "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",

"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.12.0",
"@aws-sdk/client-sts": "3.13.0",
"@aws-sdk/config-resolver": "3.12.0",
"@aws-sdk/credential-provider-node": "3.12.0",
"@aws-sdk/credential-provider-node": "3.13.0",
"@aws-sdk/eventstream-handler-node": "3.12.0",

@@ -60,3 +60,2 @@ "@aws-sdk/eventstream-serde-browser": "3.12.0",

"@aws-sdk/url-parser": "3.12.0",
"@aws-sdk/url-parser-native": "3.12.0",
"@aws-sdk/util-base64-browser": "3.12.0",

@@ -73,3 +72,3 @@ "@aws-sdk/util-base64-node": "3.12.0",

"devDependencies": {
"@aws-sdk/client-documentation-generator": "3.12.0",
"@aws-sdk/client-documentation-generator": "3.13.0",
"@types/node": "^12.7.5",

@@ -76,0 +75,0 @@ "downlevel-dts": "0.7.0",

@@ -9,3 +9,3 @@ import { __assign, __awaiter, __generator } from "tslib";

case 0:
headers = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (isSerializableHeaderValue(input.LanguageCode) && { "x-amzn-transcribe-language-code": input.LanguageCode })), (isSerializableHeaderValue(input.MediaSampleRateHertz) && {
headers = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (isSerializableHeaderValue(input.LanguageCode) && { "x-amzn-transcribe-language-code": input.LanguageCode })), (isSerializableHeaderValue(input.MediaSampleRateHertz) && {
"x-amzn-transcribe-sample-rate": input.MediaSampleRateHertz.toString(),

@@ -20,2 +20,4 @@ })), (isSerializableHeaderValue(input.MediaEncoding) && { "x-amzn-transcribe-media-encoding": input.MediaEncoding })), (isSerializableHeaderValue(input.VocabularyName) && {

"x-amzn-transcribe-number-of-channels": input.NumberOfChannels.toString(),
})), (isSerializableHeaderValue(input.ContentIdentificationType) && {
"x-amzn-transcribe-content-identification-type": input.ContentIdentificationType,
}));

@@ -92,2 +94,3 @@ resolvedPath = "/medical-stream-transcription";

$metadata: deserializeMetadata(output),
ContentIdentificationType: undefined,
EnableChannelIdentification: undefined,

@@ -139,2 +142,5 @@ LanguageCode: undefined,

}
if (output.headers["x-amzn-transcribe-content-identification-type"] !== undefined) {
contents.ContentIdentificationType = output.headers["x-amzn-transcribe-content-identification-type"];
}
data = context.eventStreamMarshaller.deserialize(output.body, function (event) { return __awaiter(void 0, void 0, void 0, function () {

@@ -706,2 +712,3 @@ var eventName, eventHeaders, eventMessage, parsedEvent;

return {
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined,
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined,

@@ -729,2 +736,5 @@ EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined,

return {
Entities: output.Entities !== undefined && output.Entities !== null
? deserializeAws_restJson1MedicalEntityList(output.Entities, context)
: undefined,
Items: output.Items !== undefined && output.Items !== null

@@ -746,2 +756,21 @@ ? deserializeAws_restJson1MedicalItemList(output.Items, context)

};
var deserializeAws_restJson1MedicalEntity = function (output, context) {
return {
Category: output.Category !== undefined && output.Category !== null ? output.Category : undefined,
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined,
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined,
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined,
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined,
};
};
var deserializeAws_restJson1MedicalEntityList = function (output, context) {
return (output || [])
.filter(function (e) { return e != null; })
.map(function (entry) {
if (entry === null) {
return null;
}
return deserializeAws_restJson1MedicalEntity(entry, context);
});
};
var deserializeAws_restJson1MedicalItem = function (output, context) {

@@ -748,0 +777,0 @@ return {

import { __assign } from "tslib";
import { Sha256 } from "@aws-crypto/sha256-js";
import { WebSocketHandler, eventStreamPayloadHandler } from "@aws-sdk/middleware-sdk-transcribe-streaming";
import { parseUrl } from "@aws-sdk/url-parser-native";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

@@ -9,3 +8,3 @@ /**

*/
export var ClientDefaultValues = __assign(__assign({}, BrowserDefaults), { runtime: "react-native", eventStreamPayloadHandlerProvider: function () { return eventStreamPayloadHandler; }, requestHandler: new WebSocketHandler(), sha256: Sha256, urlParser: parseUrl });
export var ClientDefaultValues = __assign(__assign({}, BrowserDefaults), { runtime: "react-native", eventStreamPayloadHandlerProvider: function () { return eventStreamPayloadHandler; }, requestHandler: new WebSocketHandler(), sha256: Sha256 });
//# sourceMappingURL=runtimeConfig.native.js.map

@@ -8,4 +8,4 @@ import { ServiceInputTypes, ServiceOutputTypes, TranscribeStreamingClientResolvedConfig } from "../TranscribeStreamingClient";

/**
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe Medical and the transcription
* results are streamed to your application.</p>
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe Medical and the
* transcription results are streamed to your application.</p>
*/

@@ -12,0 +12,0 @@ export declare class StartMedicalStreamTranscriptionCommand extends $Command<StartMedicalStreamTranscriptionCommandInput, StartMedicalStreamTranscriptionCommandOutput, TranscribeStreamingClientResolvedConfig> {

@@ -8,3 +8,3 @@ import { SmithyException as __SmithyException } from "@aws-sdk/smithy-client";

/**
* <p>A word or phrase transcribed from the input audio.</p>
* <p>A word, phrase, or punctuation mark that is transcribed from the input audio.</p>
*/

@@ -42,2 +42,7 @@ export interface Item {

Speaker?: string;
/**
* <p>A value between 0 and 1 for an item that is a confidence score that Amazon Transcribe assigns to
* each word or phrase that it transcribes.</p>
*/
Confidence?: number;
}

@@ -65,6 +70,7 @@ export declare namespace Item {

* <p>Provides a wrapper for the audio chunks that you are sending.</p>
* <p>For information on audio encoding in Amazon Transcribe, see <a>input</a>. For information on audio encoding formats in Amazon Transcribe Medical, see <a>input-med</a>.</p>
*/
export interface AudioEvent {
/**
* <p>An audio blob that contains the next part of the audio that you want to transcribe.</p>
* <p>An audio blob that contains the next part of the audio that you want to transcribe. The maximum audio chunk size is 32 KB.</p>
*/

@@ -84,2 +90,4 @@ AudioChunk?: Uint8Array;

* events.</p>
* <p>For information on audio encoding formats in Amazon Transcribe, see <a>input</a>. For information on audio encoding formats in Amazon Transcribe Medical, see <a>input-med</a>.</p>
* <p>For more information on stream encoding in Amazon Transcribe, see <a>event-stream</a>. For information on stream encoding in Amazon Transcribe Medical, see <a>event-stream-med</a>.</p>
*/

@@ -150,3 +158,4 @@ interface AudioEventMember {

KO_KR = "ko-KR",
PT_BR = "pt-BR"
PT_BR = "pt-BR",
ZH_CN = "zh-CN"
}

@@ -173,4 +182,35 @@ /**

/**
* <p>A word or punctuation that is transcribed from the input audio.</p>
* <p>The medical entity identified as personal health information.</p>
*/
export interface MedicalEntity {
/**
* <p>The start time of the speech that was identified as a medical entity.</p>
*/
StartTime?: number;
/**
* <p>The end time of the speech that was identified as a medical entity.</p>
*/
EndTime?: number;
/**
* <p>The type of personal health information of the medical entity.</p>
*/
Category?: string;
/**
* <p>The word or words in the transcription output that have been identified as a
* medical entity.</p>
*/
Content?: string;
/**
* <p>A value between zero and one that Amazon Transcribe Medical assigned to the personal health information
* that it identified in the source audio. Larger values indicate that Amazon Transcribe Medical has higher
* confidence in the personal health information that it identified.</p>
*/
Confidence?: number;
}
export declare namespace MedicalEntity {
const filterSensitiveLog: (obj: MedicalEntity) => any;
}
/**
* <p>A word, phrase, or punctuation mark that is transcribed from the input audio.</p>
*/
export interface MedicalItem {

@@ -199,4 +239,4 @@ /**

/**
* <p>A value between 0 and 1 for an item that is a confidence score that Amazon Transcribe Medical
* assigns to each word that it transcribes.</p>
* <p>A value between 0 and 1 for an item that is a confidence score that Amazon Transcribe Medical assigns to
* each word that it transcribes.</p>
*/

@@ -226,6 +266,10 @@ Confidence?: number;

/**
* <p>A list of objects that contains words and punctuation marks that represents one or more
* interpretations of the input audio.</p>
* <p>A list of objects that contains words and punctuation marks that represents one or
* more interpretations of the input audio.</p>
*/
Items?: MedicalItem[];
/**
* <p>Contains the medical entities identified as personal health information in the transcription output.</p>
*/
Entities?: MedicalEntity[];
}

@@ -235,2 +279,5 @@ export declare namespace MedicalAlternative {

}
export declare enum MedicalContentIdentificationType {
PHI = "PHI"
}
/**

@@ -481,4 +528,4 @@ * <p>The results of transcribing a portion of the input audio stream.</p>

/**
* <p> Indicates the source language used in the input audio stream. For Amazon Transcribe Medical,
* this is US English (en-US). </p>
* <p> Indicates the source language used in the input audio stream. For Amazon Transcribe Medical, this is US
* English (en-US). </p>
*/

@@ -505,3 +552,5 @@ LanguageCode: LanguageCode | string | undefined;

/**
* <p>The type of input audio. Choose <code>DICTATION</code> for a provider dictating patient notes. Choose <code>CONVERSATION</code> for a dialogue between a patient and one or more medical professionanls.</p>
* <p>The type of input audio. Choose <code>DICTATION</code> for a provider dictating
* patient notes. Choose <code>CONVERSATION</code> for a dialogue between a patient and one
* or more medical professionanls.</p>
*/

@@ -537,2 +586,7 @@ Type: Type | string | undefined;

NumberOfChannels?: number;
/**
* <p>Set this field to <code>PHI</code> to identify personal health information in the
* transcription output.</p>
*/
ContentIdentificationType?: MedicalContentIdentificationType | string;
}

@@ -548,4 +602,4 @@ export declare namespace StartMedicalStreamTranscriptionRequest {

/**
* <p>The language code for the response transcript. For Amazon Transcribe Medical, this is US
* English (en-US).</p>
* <p>The language code for the response transcript. For Amazon Transcribe Medical, this is US English
* (en-US).</p>
*/

@@ -594,2 +648,7 @@ LanguageCode?: LanguageCode | string;

NumberOfChannels?: number;
/**
* <p>If the value is <code>PHI</code>, indicates that you've configured your stream to
* identify personal health information.</p>
*/
ContentIdentificationType?: MedicalContentIdentificationType | string;
}

@@ -596,0 +655,0 @@ export declare namespace StartMedicalStreamTranscriptionResponse {

@@ -10,4 +10,4 @@ import { TranscribeStreamingClient } from "./TranscribeStreamingClient";

/**
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe Medical and the transcription
* results are streamed to your application.</p>
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe Medical and the
* transcription results are streamed to your application.</p>
*/

@@ -14,0 +14,0 @@ startMedicalStreamTranscription(args: StartMedicalStreamTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<StartMedicalStreamTranscriptionCommandOutput>;

@@ -10,3 +10,3 @@ import { SmithyException as __SmithyException } from "@aws-sdk/smithy-client";

/**
* <p>A word or phrase transcribed from the input audio.</p>
* <p>A word, phrase, or punctuation mark that is transcribed from the input audio.</p>
*/

@@ -49,2 +49,8 @@ export interface Item {

Speaker?: string;
/**
* <p>A value between 0 and 1 for an item that is a confidence score that Amazon Transcribe assigns to
* each word or phrase that it transcribes.</p>
*/
Confidence?: number;
}

@@ -81,6 +87,7 @@

* <p>Provides a wrapper for the audio chunks that you are sending.</p>
* <p>For information on audio encoding in Amazon Transcribe, see <a>input</a>. For information on audio encoding formats in Amazon Transcribe Medical, see <a>input-med</a>.</p>
*/
export interface AudioEvent {
/**
* <p>An audio blob that contains the next part of the audio that you want to transcribe.</p>
* <p>An audio blob that contains the next part of the audio that you want to transcribe. The maximum audio chunk size is 32 KB.</p>
*/

@@ -105,2 +112,4 @@ AudioChunk?: Uint8Array;

* events.</p>
* <p>For information on audio encoding formats in Amazon Transcribe, see <a>input</a>. For information on audio encoding formats in Amazon Transcribe Medical, see <a>input-med</a>.</p>
* <p>For more information on stream encoding in Amazon Transcribe, see <a>event-stream</a>. For information on stream encoding in Amazon Transcribe Medical, see <a>event-stream-med</a>.</p>
*/

@@ -195,2 +204,3 @@ export interface AudioEventMember {

PT_BR = "pt-BR",
ZH_CN = "zh-CN",
}

@@ -223,4 +233,43 @@

/**
* <p>A word or punctuation that is transcribed from the input audio.</p>
* <p>The medical entity identified as personal health information.</p>
*/
export interface MedicalEntity {
/**
* <p>The start time of the speech that was identified as a medical entity.</p>
*/
StartTime?: number;
/**
* <p>The end time of the speech that was identified as a medical entity.</p>
*/
EndTime?: number;
/**
* <p>The type of personal health information of the medical entity.</p>
*/
Category?: string;
/**
* <p>The word or words in the transcription output that have been identified as a
* medical entity.</p>
*/
Content?: string;
/**
* <p>A value between zero and one that Amazon Transcribe Medical assigned to the personal health information
* that it identified in the source audio. Larger values indicate that Amazon Transcribe Medical has higher
* confidence in the personal health information that it identified.</p>
*/
Confidence?: number;
}
export namespace MedicalEntity {
export const filterSensitiveLog = (obj: MedicalEntity): any => ({
...obj,
});
}
/**
* <p>A word, phrase, or punctuation mark that is transcribed from the input audio.</p>
*/
export interface MedicalItem {

@@ -253,4 +302,4 @@ /**

/**
* <p>A value between 0 and 1 for an item that is a confidence score that Amazon Transcribe Medical
* assigns to each word that it transcribes.</p>
* <p>A value between 0 and 1 for an item that is a confidence score that Amazon Transcribe Medical assigns to
* each word that it transcribes.</p>
*/

@@ -286,6 +335,11 @@ Confidence?: number;

/**
* <p>A list of objects that contains words and punctuation marks that represents one or more
* interpretations of the input audio.</p>
* <p>A list of objects that contains words and punctuation marks that represents one or
* more interpretations of the input audio.</p>
*/
Items?: MedicalItem[];
/**
* <p>Contains the medical entities identified as personal health information in the transcription output.</p>
*/
Entities?: MedicalEntity[];
}

@@ -299,2 +353,6 @@

export enum MedicalContentIdentificationType {
PHI = "PHI",
}
/**

@@ -621,4 +679,4 @@ * <p>The results of transcribing a portion of the input audio stream.</p>

/**
* <p> Indicates the source language used in the input audio stream. For Amazon Transcribe Medical,
* this is US English (en-US). </p>
* <p> Indicates the source language used in the input audio stream. For Amazon Transcribe Medical, this is US
* English (en-US). </p>
*/

@@ -650,3 +708,5 @@ LanguageCode: LanguageCode | string | undefined;

/**
* <p>The type of input audio. Choose <code>DICTATION</code> for a provider dictating patient notes. Choose <code>CONVERSATION</code> for a dialogue between a patient and one or more medical professionanls.</p>
* <p>The type of input audio. Choose <code>DICTATION</code> for a provider dictating
* patient notes. Choose <code>CONVERSATION</code> for a dialogue between a patient and one
* or more medical professionanls.</p>
*/

@@ -687,2 +747,8 @@ Type: Type | string | undefined;

NumberOfChannels?: number;
/**
* <p>Set this field to <code>PHI</code> to identify personal health information in the
* transcription output.</p>
*/
ContentIdentificationType?: MedicalContentIdentificationType | string;
}

@@ -704,4 +770,4 @@

/**
* <p>The language code for the response transcript. For Amazon Transcribe Medical, this is US
* English (en-US).</p>
* <p>The language code for the response transcript. For Amazon Transcribe Medical, this is US English
* (en-US).</p>
*/

@@ -760,2 +826,8 @@ LanguageCode?: LanguageCode | string;

NumberOfChannels?: number;
/**
* <p>If the value is <code>PHI</code>, indicates that you've configured your stream to
* identify personal health information.</p>
*/
ContentIdentificationType?: MedicalContentIdentificationType | string;
}

@@ -762,0 +834,0 @@

{
"name": "@aws-sdk/client-transcribe-streaming",
"description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native",
"version": "3.12.0",
"version": "3.13.0",
"scripts": {

@@ -33,5 +33,5 @@ "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",

"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.12.0",
"@aws-sdk/client-sts": "3.13.0",
"@aws-sdk/config-resolver": "3.12.0",
"@aws-sdk/credential-provider-node": "3.12.0",
"@aws-sdk/credential-provider-node": "3.13.0",
"@aws-sdk/eventstream-handler-node": "3.12.0",

@@ -60,3 +60,2 @@ "@aws-sdk/eventstream-serde-browser": "3.12.0",

"@aws-sdk/url-parser": "3.12.0",
"@aws-sdk/url-parser-native": "3.12.0",
"@aws-sdk/util-base64-browser": "3.12.0",

@@ -73,3 +72,3 @@ "@aws-sdk/util-base64-node": "3.12.0",

"devDependencies": {
"@aws-sdk/client-documentation-generator": "3.12.0",
"@aws-sdk/client-documentation-generator": "3.13.0",
"@types/node": "^12.7.5",

@@ -76,0 +75,0 @@ "downlevel-dts": "0.7.0",

@@ -19,2 +19,3 @@ import {

MedicalAlternative,
MedicalEntity,
MedicalItem,

@@ -67,2 +68,5 @@ MedicalResult,

}),
...(isSerializableHeaderValue(input.ContentIdentificationType) && {
"x-amzn-transcribe-content-identification-type": input.ContentIdentificationType!,
}),
};

@@ -146,2 +150,3 @@ let resolvedPath = "/medical-stream-transcription";

$metadata: deserializeMetadata(output),
ContentIdentificationType: undefined,
EnableChannelIdentification: undefined,

@@ -193,2 +198,5 @@ LanguageCode: undefined,

}
if (output.headers["x-amzn-transcribe-content-identification-type"] !== undefined) {
contents.ContentIdentificationType = output.headers["x-amzn-transcribe-content-identification-type"];
}
const data: any = context.eventStreamMarshaller.deserialize(output.body, async (event) => {

@@ -734,2 +742,3 @@ const eventName = Object.keys(event)[0];

return {
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined,
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined,

@@ -760,2 +769,6 @@ EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined,

return {
Entities:
output.Entities !== undefined && output.Entities !== null
? deserializeAws_restJson1MedicalEntityList(output.Entities, context)
: undefined,
Items:

@@ -780,2 +793,23 @@ output.Items !== undefined && output.Items !== null

const deserializeAws_restJson1MedicalEntity = (output: any, context: __SerdeContext): MedicalEntity => {
return {
Category: output.Category !== undefined && output.Category !== null ? output.Category : undefined,
Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined,
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined,
EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined,
StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined,
} as any;
};
const deserializeAws_restJson1MedicalEntityList = (output: any, context: __SerdeContext): MedicalEntity[] => {
return (output || [])
.filter((e: any) => e != null)
.map((entry: any) => {
if (entry === null) {
return null as any;
}
return deserializeAws_restJson1MedicalEntity(entry, context);
});
};
const deserializeAws_restJson1MedicalItem = (output: any, context: __SerdeContext): MedicalItem => {

@@ -782,0 +816,0 @@ return {

@@ -140,3 +140,3 @@ # @aws-sdk/client-transcribe-streaming

try {
const data = client.startMedicalStreamTranscription(params);
const data = await client.startMedicalStreamTranscription(params);
// process data.

@@ -143,0 +143,0 @@ } catch (error) {

import { Sha256 } from "@aws-crypto/sha256-js";
import { WebSocketHandler, eventStreamPayloadHandler } from "@aws-sdk/middleware-sdk-transcribe-streaming";
import { parseUrl } from "@aws-sdk/url-parser-native";
import { ClientDefaults } from "./TranscribeStreamingClient";

@@ -16,3 +15,2 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

sha256: Sha256,
urlParser: parseUrl,
};

@@ -19,4 +19,4 @@ import { TranscribeStreamingClient } from "./TranscribeStreamingClient";

/**
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe Medical and the transcription
* results are streamed to your application.</p>
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe Medical and the
* transcription results are streamed to your application.</p>
*/

@@ -23,0 +23,0 @@ public startMedicalStreamTranscription(

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc