New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

microsoft-cognitiveservices-speech-sdk

Package Overview
Dependencies
Maintainers
5
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microsoft-cognitiveservices-speech-sdk - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

2

distrib/lib/src/common.speech/RecognizerConfig.js

@@ -119,3 +119,3 @@ "use strict";

// Note: below will be patched for official builds.
var SPEECHSDK_CLIENTSDK_VERSION = "1.4.1";
var SPEECHSDK_CLIENTSDK_VERSION = "1.5.0";
this.name = "SpeechSDK";

@@ -122,0 +122,0 @@ this.version = SPEECHSDK_CLIENTSDK_VERSION;

@@ -37,3 +37,3 @@ "use strict";

var result = this.fireEventForResult(Exports_3.TranslationHypothesis.fromJSON(connectionMessage.textBody), resultProps);
this.privRequestSession.onHypothesis(result.offset);
this.privRequestSession.onHypothesis(this.privRequestSession.currentTurnAudioOffset + result.offset);
if (!!this.privTranslationRecognizer.recognizing) {

@@ -52,4 +52,4 @@ try {

var translatedPhrase = Exports_3.TranslationPhrase.fromJSON(connectionMessage.textBody);
this.privRequestSession.onPhraseRecognized(this.privRequestSession.currentTurnAudioOffset + translatedPhrase.Offset + translatedPhrase.Duration);
if (translatedPhrase.RecognitionStatus === Exports_3.RecognitionStatus.Success) {
this.privRequestSession.onPhraseRecognized(this.privRequestSession.currentTurnAudioOffset + translatedPhrase.Offset + translatedPhrase.Duration);
// OK, the recognition was successful. How'd the translation do?

@@ -87,3 +87,3 @@ var result_1 = this.fireEventForResult(translatedPhrase, resultProps);

var reason = Exports_3.EnumTranslation.implTranslateRecognitionResult(translatedPhrase.RecognitionStatus);
var result_2 = new Exports_2.TranslationRecognitionResult(undefined, this.privRequestSession.requestId, reason, translatedPhrase.Text, translatedPhrase.Duration, translatedPhrase.Offset, undefined, connectionMessage.textBody, resultProps);
var result_2 = new Exports_2.TranslationRecognitionResult(undefined, this.privRequestSession.requestId, reason, translatedPhrase.Text, translatedPhrase.Duration, this.privRequestSession.currentTurnAudioOffset + translatedPhrase.Offset, undefined, connectionMessage.textBody, resultProps);
if (reason === Exports_2.ResultReason.Canceled) {

@@ -105,3 +105,3 @@ var cancelReason = Exports_3.EnumTranslation.implTranslateCancelResult(translatedPhrase.RecognitionStatus);

if (!(this.privRequestSession.isSpeechEnded && reason === Exports_2.ResultReason.NoMatch && translatedPhrase.RecognitionStatus !== Exports_3.RecognitionStatus.InitialSilenceTimeout)) {
var ev = new Exports_2.TranslationRecognitionEventArgs(result_2, 0 /*offset*/, this.privRequestSession.sessionId);
var ev = new Exports_2.TranslationRecognitionEventArgs(result_2, result_2.offset, this.privRequestSession.sessionId);
if (!!this.privTranslationRecognizer.recognized) {

@@ -108,0 +108,0 @@ try {

@@ -78,27 +78,27 @@ /**

/**
* The host name of the proxy server used to connect to the Cognitive Services Speech Service. Under normal circumstances,
* you shouldn't have to use this property directly.
* The host name of the proxy server used to connect to the Cognitive Services Speech Service. Only relevant in Node.js environments.
* You shouldn't have to use this property directly.
* Instead use <see cref="SpeechConfig.SetProxy(string,int,string,string)"/>.
* NOTE: This property id was added in version 1.1.0.
* Added in version 1.4.0.
*/
SpeechServiceConnection_ProxyHostName = 10,
/**
* The port of the proxy server used to connect to the Cognitive Services Speech Service. Under normal circumstances,
* you shouldn't have to use this property directly.
* The port of the proxy server used to connect to the Cognitive Services Speech Service. Only relevant in Node.js environments.
* You shouldn't have to use this property directly.
* Instead use <see cref="SpeechConfig.SetProxy(string,int,string,string)"/>.
* NOTE: This property id was added in version 1.1.0.
* Added in version 1.4.0.
*/
SpeechServiceConnection_ProxyPort = 11,
/**
* The user name of the proxy server used to connect to the Cognitive Services Speech Service. Under normal circumstances,
* you shouldn't have to use this property directly.
* The user name of the proxy server used to connect to the Cognitive Services Speech Service. Only relevant in Node.js environments.
* You shouldn't have to use this property directly.
* Instead use <see cref="SpeechConfig.SetProxy(string,int,string,string)"/>.
* NOTE: This property id was added in version 1.1.0.
* Added in version 1.4.0.
*/
SpeechServiceConnection_ProxyUserName = 12,
/**
* The password of the proxy server used to connect to the Cognitive Services Speech Service. Under normal circumstances,
* you shouldn't have to use this property directly.
* The password of the proxy server used to connect to the Cognitive Services Speech Service. Only relevant in Node.js environments.
* You shouldn't have to use this property directly.
* Instead use <see cref="SpeechConfig.SetProxy(string,int,string,string)"/>.
* NOTE: This property id was added in version 1.1.0.
* Added in version 1.4.0.
*/

@@ -105,0 +105,0 @@ SpeechServiceConnection_ProxyPassword = 13,

@@ -83,27 +83,27 @@ "use strict";

/**
* The host name of the proxy server used to connect to the Cognitive Services Speech Service. Under normal circumstances,
* you shouldn't have to use this property directly.
* The host name of the proxy server used to connect to the Cognitive Services Speech Service. Only relevant in Node.js environments.
* You shouldn't have to use this property directly.
* Instead use <see cref="SpeechConfig.SetProxy(string,int,string,string)"/>.
* NOTE: This property id was added in version 1.1.0.
* Added in version 1.4.0.
*/
PropertyId[PropertyId["SpeechServiceConnection_ProxyHostName"] = 10] = "SpeechServiceConnection_ProxyHostName";
/**
* The port of the proxy server used to connect to the Cognitive Services Speech Service. Under normal circumstances,
* you shouldn't have to use this property directly.
* The port of the proxy server used to connect to the Cognitive Services Speech Service. Only relevant in Node.js environments.
* You shouldn't have to use this property directly.
* Instead use <see cref="SpeechConfig.SetProxy(string,int,string,string)"/>.
* NOTE: This property id was added in version 1.1.0.
* Added in version 1.4.0.
*/
PropertyId[PropertyId["SpeechServiceConnection_ProxyPort"] = 11] = "SpeechServiceConnection_ProxyPort";
/**
* The user name of the proxy server used to connect to the Cognitive Services Speech Service. Under normal circumstances,
* you shouldn't have to use this property directly.
* The user name of the proxy server used to connect to the Cognitive Services Speech Service. Only relevant in Node.js environments.
* You shouldn't have to use this property directly.
* Instead use <see cref="SpeechConfig.SetProxy(string,int,string,string)"/>.
* NOTE: This property id was added in version 1.1.0.
* Added in version 1.4.0.
*/
PropertyId[PropertyId["SpeechServiceConnection_ProxyUserName"] = 12] = "SpeechServiceConnection_ProxyUserName";
/**
* The password of the proxy server used to connect to the Cognitive Services Speech Service. Under normal circumstances,
* you shouldn't have to use this property directly.
* The password of the proxy server used to connect to the Cognitive Services Speech Service. Only relevant in Node.js environments.
* You shouldn't have to use this property directly.
* Instead use <see cref="SpeechConfig.SetProxy(string,int,string,string)"/>.
* NOTE: This property id was added in version 1.1.0.
* Added in version 1.4.0.
*/

@@ -110,0 +110,0 @@ PropertyId[PropertyId["SpeechServiceConnection_ProxyPassword"] = 13] = "SpeechServiceConnection_ProxyPassword";

@@ -62,2 +62,4 @@ import { OutputFormat, PropertyCollection, PropertyId } from "./Exports";

* Sets the proxy configuration.
* Only relevant in Node.js environments.
* Added in version 1.4.0.
* @param proxyHostName The host name of the proxy server.

@@ -68,3 +70,5 @@ * @param proxyPort The port number of the proxy server.

/**
* Sets proxy configuration.
* Sets the proxy configuration.
* Only relevant in Node.js environments.
* Added in version 1.4.0.
* @param proxyHostName The host name of the proxy server, without the protocol scheme (http://)

@@ -71,0 +75,0 @@ * @param porxyPort The port number of the proxy server.

@@ -5,3 +5,3 @@ {

"homepage": "https://docs.microsoft.com/azure/cognitive-services/speech-service/",
"version": "1.4.1",
"version": "1.5.0",
"license": "MIT",

@@ -59,3 +59,3 @@ "description": "Microsoft Cognitive Services Speech SDK for JavaScript",

"ts-jest": "^23.10.5",
"tslint": "^5.11.0",
"tslint": "^5.16.0",
"typescript": "^3.2.1",

@@ -86,3 +86,6 @@ "webpack-stream": "^4.0.0"

"ws": "^6.1.2"
},
"resolutions": {
"extend": "3.0.2"
}
}
}

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

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

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

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