@euirim/microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
31 lines (29 loc) • 1.03 kB
JavaScript
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// response
export class ActivityPayloadResponse {
constructor(json) {
this.privActivityResponse = JSON.parse(json);
}
static fromJSON(json) {
return new ActivityPayloadResponse(json);
}
get conversationId() {
return this.privActivityResponse.conversationId;
}
get messageDataStreamType() {
return this.privActivityResponse.messageDataStreamType;
}
get messagePayload() {
return this.privActivityResponse.messagePayload;
}
get version() {
return this.privActivityResponse.version;
}
}
export var MessageDataStreamType;
(function (MessageDataStreamType) {
MessageDataStreamType[MessageDataStreamType["None"] = 0] = "None";
MessageDataStreamType[MessageDataStreamType["TextToSpeechAudio"] = 1] = "TextToSpeechAudio";
})(MessageDataStreamType || (MessageDataStreamType = {}));
//# sourceMappingURL=ActivityResponsePayload.js.map