Граф коммитов

70 Коммитов

Автор SHA1 Сообщение Дата
BrianMouncer 2dddfef0f8 update to final 1.31.0 release version. 2023-08-03 16:06:58 -07:00
BrianMouncer 841f349490 update version to rc.2 2023-08-02 10:33:04 -07:00
BrianMouncer 0b4f41e7f4 update package version to 1.31.0-rc.1 2023-07-26 19:28:35 -07:00
Brian Mouncer e687191b40
update master to v-next verison. (#687) 2023-07-07 13:24:51 -07:00
BrianMouncer 9fff0733c4 update master to v-next version number. 2023-06-14 14:40:08 -07:00
Glenn Harper d071d11d1e
remove CertChecks class (#662) 2023-04-19 09:02:57 -07:00
Glenn Harper a79b92f5bd
remove ocsp code (#649) 2023-04-10 14:03:55 -07:00
BrianMouncer 0b6bb1ce15
update JS SDK version to V-next (1.27)... (#643) 2023-03-08 14:53:35 -08:00
Maddy Miller 7cd0ac248d
chore: update UUID lib and corresponding types lib (#617) 2023-02-22 19:14:27 -05:00
Glenn Harper 855f094028
remove got dependency to close vulnerability, use bent in tests (#628) 2023-02-14 11:49:52 -08:00
BrianMouncer cd27316c5e bump version in master to be v-next. 2023-02-09 12:13:55 -08:00
Glenn Harper cd55c13d25
add source-map override to allow node 18 to build lib (#593) 2022-11-18 09:08:18 -05:00
Glenn Harper 087a1c6b46
use setup instead of preinstall (#589) 2022-11-08 12:42:32 -05:00
Glenn Harper 0ee23f6b52
use overrides in package.json instead of force-resolutions (#588) 2022-11-02 12:02:39 -07:00
Glenn Harper 2f3e0cff9a
Glharper/got lib in tests no request (#567)
* replace request usage in ocsp tests

* added speech tests

* got lib addition complete

* package update

* synced package-lock

* update package.json and lock

* fix synth test
2022-09-14 11:47:26 -04:00
Glenn Harper 23f1e104b4
initial fix for setting segmentation timeout correctly (#566)
* initial fix for setting segmentation timeout correctly

* Add test for bad segmentation silence timeout value
2022-09-08 11:41:36 -07:00
Ryan Hurey fa4c748ad6
Test stability improvements (#558)
* Test stability fixes

* disable audio duration check due to service issus

* Increase translation timeout, format & add try / catch to synthesis test

* Change to a new version of Jest that supports retries. Modify tests to work with new version. Allow 3 retries.

* package-lock update

* Re-install with the same npm version as the ADO agents are using.

* Remove gulp-parent from forced resolution list

* npm audit auto fixes

* Increase error timeouts

* Increase timeouts

* Didn't copy the env change from the package.json to the jest config

* Add logging and increase token timeout.

Co-authored-by: Yulin Li <liyulin@pku.edu.cn>
2022-07-28 15:37:58 -07:00
Glenn Harper d55615a8e0
Update package.json (#540)
use specific versions when forcing resolutions - fix #535
2022-06-06 13:06:59 -07:00
Glenn Harper b096e51075
fix deprecation warnings on build (#536)
* eslint compatibility with node 18

* Update package.json

* reduce deprecation warnings
2022-06-02 13:09:42 -07:00
Glenn Harper 4b00954e08
update minimist to secure version (#514) 2022-03-30 09:17:31 -07:00
Glenn Harper 6c070c429f
Convert to using ESLint for static code analysis (#498)
* Initial cleanup, 1884 errors remaining

* use async cancelSpeech synchronously in callback

* fix synthvoiceresult constructor

* fix IInternalParticipant to add members forgotten in original implementation, more lint fixes

* turn off member ordering, more fixes for linter

* down to 1301 problems (but inferred types ain't one).

* 1254 errors

* more lints

* lint progress checkin

* 989 problems

* 899 errors

* milestone checkin

* add IActivity interface

* milestone checkin

* milestone checkin

* 425 errors

* milestone checkin < 400 errors

* milestone checkin

* 224 errors

* 194 errors

* 94 issues

* CertChecks passes lint without breaking tests

* all src files pass eslint

* fix build issues, allow eslint to fail build

* package changes for build

* og package lock

* retry build

* different import order for certchecks

* revert cert_checks

* see if this builds

* testing url-parse removal

* Use more complete WordResult interface

* More correct IActivity interface

* add hostname to options in CertChecks
2022-03-15 13:46:57 -07:00
Glenn Harper 7ae6e89935
Glharper/lid custom models (#493)
* update url-parse in package-lock

* at-start LID for SR - add custom models to speech.context, add property for endpoint versioning
2022-03-01 17:33:45 -08:00
Glenn Harper 447962b53a
check for privAudio for SAD mute/volume API (#486)
* check for privAudio for SAD mute/volume API

* update url-parse, fix syntax issues from community PR
2022-02-24 11:09:34 -08:00
dependabot[bot] 2e4639e5bc
Bump url-parse from 1.5.3 to 1.5.6 (#481)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.6.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.6)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-24 09:32:18 -08:00
Glenn Harper 3b735de02f
fix build and insecure package version (#484) 2022-02-23 12:11:24 -08:00
Glenn Harper d065af01ec
update jest-junit, ws, minimist to latest (#461)
* update jest-junit, ws, minimist to latest

* ws 7.5.6

* update jest

* pull up on jest update
2021-12-10 09:59:15 -08:00
Ryan Hurey 94d0493c59
Update dependencies. (#445)
Some dependencies require a forced version update, others were automatic.

Also, change negative translation case to use an invalid language code, as the random one chosen before now works.
Disable one OCSP test as the test cert is expired and the site publisher is waiting on CA renewal.
2021-10-13 11:23:03 -07:00
Glenn Harper 1e6aaf9a05
upgrade uuid to 8.3.x, fix #424 (#428) 2021-08-26 13:02:24 -07:00
Glenn Harper 25cb37adff
Fix for regression, and test (#410)
* Fix for regression, and test

* use 1.0.3 of username-sync, fix for #405
2021-08-03 13:35:13 -07:00
Glenn Harper 2612691b90
Replace xmlhttprequest-ts dependency with bent, unify REST calls. fixes #403 (#408)
* Replace xmlhttprequest-ts dependency with bent, clean up code

* code cleanup
2021-07-27 12:41:01 -07:00
Glenn Harper 5a5b10b20c
Glharper/file audio node (#295)
* Fix connection leak on bad audio buffer

* Fix connection leak in simple scenarios

* remove unused import

* make typescript happy

* Update FileAudioSource to take a buffer input (allowing Node usage), enable more testing against it.

* package updates, ts => 3.8, jest => latest

* clean up recognition correctly on audio input error

* remove unnecessary parameter

* revert to pre-PR
2021-02-19 16:03:51 -08:00
Glenn Harper 166baa93d5
replace url dependency with url-parse from CertChecks.ts (#322)
* private constru

* use url-parse dependency instead of node-url

* syntax cleanup

* ocsp expects path variable on parsedUri object
2021-02-10 08:25:09 -08:00
Glenn Harper 3d7764bdad
update https-proxy-agent lib to version that doesn't depend on problematic agent-base version (#310) 2021-01-26 14:53:46 -08:00
Ryan Hurey 07294a7791
Lower UUID version (#307) 2021-01-25 15:17:47 -08:00
Yulin Li 134c8f1013
fixing test report (#290) 2020-12-12 16:18:08 +08:00
Orgad Shaneh 1d3554f478
Bump version to 1.15 (#277) 2020-12-11 16:40:26 +08:00
Orgad Shaneh 674b455707
Guid: Use uuid (#242) (#259)
It is much faster than handcrafted regexp.
2020-10-21 09:05:17 -07:00
Ryan Hurey a153a191fc
When a non-secure connection is requested, don't use the TLS library to open the socket. (#232) 2020-08-26 10:46:16 -07:00
Ryan Hurey 74c252225c
Fix linter break and bump version number. (#222)
* Fix leaked promise rejection. Code merge let this in past the linter.

* Bump version to 1.14
2020-08-01 20:26:31 -07:00
Ryan Hurey e4215d0db4
Update to .13 (#202) 2020-07-07 17:27:28 -07:00
Ryan Hurey fc9f3f6d2a
Add a cache for OCSP responses. (#196)
* Extend OCSP certificate verification to include a memory and disk based cache.

The disk cache will by default be located in TMPDIR/<username>/ but can be overridden.

When the cached OCSP response is within 1 day of expiring, or 1/2 way through it's vaility period (whichever is shorter) a background
task is queued to refresh it while the cached value is used.

* More fixes

* Fix error case

* Fix typos
2020-07-02 09:59:35 -07:00
glharper db402ca8ca
Glharper/speaker recognition (#192)
* Create more idiomatic RestConnection class and methods

* Fix lint for new classes

* Initial implementation of create profile

* Fix broken conversation translator test

* Fixes to return actual VoiceProfile object

* Build fixes

* Clean up callback code

* Initial version of voice enrollment

* Add delete profile to client, add rest connection class in case needed for speaker recognizer.

* Add blob promise to IAudioSource interface in place of file

* Add reset profile method

* Initial implementation of verifySpeaker and identifySpeaker

* Fix create model bug, rename public methods to align with SDK conventions

* SpeakerRecognition recognizeOnceAsync() works now for Identification models/profiles

* speaker verify now working

* Add CancellationDetail classes for SR results

* Handle service errors and result property setting

* Better error handling for VoiceProfile, VoiceProfileResult callbacks

* Bug fixes, misspelled detail fields

* Fix error creation for Enrollments

* Add tests for speaker recognition

* Generate VoiceProfileResult errors using response statusText

* Remove currently unused RestConnection class

* Use "reason" getter for result consistency

* Use PromiseHelper for instant promise fulfillment

* add xmlhttprequest dependency for node

* Node support for XMLHttpRequest primitive

* Allow CancellationDetails to be seen externally

* Allow PushAudioInputStream to be read as Blob for REST connections

* Address code review issues, simplify callback handling in VoiceProfileClient, lengthen rest timeout

* More code review corrections

* Fix weird node promise issue, clean up promise code

* Another fix from input stream

* Use Buffer when sending AudioPushStream with node.js

* Add china host detection, use Buffer.from instead of deprecated Buffer constructor

* Use PromiseHelper to send error promise for unimplemented blob getter

* Add new static test variables for Speaker ID tests
2020-06-17 08:32:38 -07:00
Ryan Hurey 1bc42c801f
Update Jest and ts-jest. (#181)
* Update Jest

* More updates

* Refresh package-lock.json for test project
2020-05-13 16:49:47 -07:00
Yulin Li 65d292ddf5
TTS implementation (#161)
initial commit for TTS implementation, with NodeJS support only.
2020-03-26 15:54:34 +08:00
BrianMouncer b73c871047
move master the Version 1.11... (#152) 2020-03-25 20:16:01 -07:00
Ryan Hurey 6c4292814a
Revert back to type script 3.5.3 to resolve compatability problems. (#133)
* Don't send auth header if there's no auth value

* Back to 3.5.3

* If the service never sends any messages and the connection fails, don't reconnect.
2020-01-28 21:43:23 -08:00
BrianMouncer 00e5c09b8a change master to next/future version. (#123) 2020-01-27 16:20:51 -08:00
Orgad Shaneh f562aa733d Update dependencies (#111) 2020-01-17 11:11:08 -08:00
Brandon Miller 2053c62454
DialogServiceConnector, Connect/Disconnect impl (#90)
* Implemented DialogConnectorFactory.

* WIP

* begin add dialog tests

* connect impl and first test

* headers for browser

* expose connect

* initial listenOnce

* repalce websocket use

* listenOnce with browser connection support

* listenOnce with activity responses

* expose get/setter props

* cleanup

* generic send fnc

* extracting functionality from base reco

* Save the day

* First incarnation of the BaseAudioPlayer class.

# Conflicts:
#	tests/DialogServiceConnectorTests.ts

* Fix bugs in BaseAudioPlayer and added manual tests for it.
- server.js - web socket streaming long audio file (node server.js from the folder)
- AudioPlayerBaseTest.html lauch http-server in the folder and then load the page

* lint cleanup

* Added missed server.js file for audio player manual tests

* Added audio output stream

* TSLint fixes

* AudioOutputStreamTests

* update message loop

* AudioOutputStream fixes
Jsonification of activity
Added AudioOutputStream to activity
ActivityPayloadResponse class

* refactor message loop and add sendActivity

* Turn management classes

* Add integration with turn management

* Few fixes - turn.end is not coming
Merge branch 'brandom/dialog' of https://github.com/microsoft/cognitive-services-speech-sdk-js into gghizila/TTSStreamIntegration

# Conflicts:
#	src/common.speech/DialogServiceAdapter.ts

* Fixed the traces for turns to report "debugturn" to help with turn.end investigation missing

* Added timeouts as workaround to not routed messages to 2s.
Added debugturn logging for investingating the messages not routed.
Added timestamps to console.info

* remove promisehelper wait, rm cancel recos

* minor code restructuring

* * The last audio message is null. When we encounter it we closed the audio stream.
* Added isClosed to the audio output stream impl.
* Changed tests to defer the shutdown to avoid random red herrings.

* * The last audio message is null. When we encounter it we closed the audio stream.
 * Added isClosed to the audio output stream impl.
 * Changed tests to defer the shutdown to avoid random red herrings.

* Added try / catch for audio message handling.

* restrict config to once per connection

* Upgrade https-proxy-agent to 2.2.3 after the last alert.

* fix reco end, remove speech context on turn.end

* Fix machine in the middle vulnerability for "https-proxy-agent" (#97)

- changes generated by npm audit fix --force
- upgrade "https-proxy-agent" to 3.0.0 as there is inconsistency on reports as what version fixes the vulnerability

* fix for mic staying open

* split config into BF and Commands

* add temporary ApplicationId to tests

* add reconnect on websocket timeout, config parity

* remove authHeader from botFramework config

* Implemented DialogConnectorFactory.

* WIP

* begin add dialog tests

* connect impl and first test

* headers for browser

* initial listenOnce

* expose connect

* repalce websocket use

* listenOnce with browser connection support

* listenOnce with activity responses

* expose get/setter props

* cleanup

* generic send fnc

* extracting functionality from base reco

* Save the day

* First incarnation of the BaseAudioPlayer class.

# Conflicts:
#	tests/DialogServiceConnectorTests.ts

* Fix bugs in BaseAudioPlayer and added manual tests for it.
- server.js - web socket streaming long audio file (node server.js from the folder)
- AudioPlayerBaseTest.html lauch http-server in the folder and then load the page

* lint cleanup

* Added missed server.js file for audio player manual tests

* Added audio output stream

* TSLint fixes

* AudioOutputStreamTests

* update message loop

* AudioOutputStream fixes
Jsonification of activity
Added AudioOutputStream to activity
ActivityPayloadResponse class

* refactor message loop and add sendActivity

* Turn management classes

* Add integration with turn management

* Few fixes - turn.end is not coming
Merge branch 'brandom/dialog' of https://github.com/microsoft/cognitive-services-speech-sdk-js into gghizila/TTSStreamIntegration

# Conflicts:
#	src/common.speech/DialogServiceAdapter.ts

* Fixed the traces for turns to report "debugturn" to help with turn.end investigation missing

* Added timeouts as workaround to not routed messages to 2s.
Added debugturn logging for investingating the messages not routed.
Added timestamps to console.info

* remove promisehelper wait, rm cancel recos

* minor code restructuring

* * The last audio message is null. When we encounter it we closed the audio stream.
* Added isClosed to the audio output stream impl.
* Changed tests to defer the shutdown to avoid random red herrings.

* * The last audio message is null. When we encounter it we closed the audio stream.
 * Added isClosed to the audio output stream impl.
 * Changed tests to defer the shutdown to avoid random red herrings.

* Added try / catch for audio message handling.

* restrict config to once per connection

* fix reco end, remove speech context on turn.end

* fix for mic staying open

* split config into BF and Commands

* add temporary ApplicationId to tests

* add reconnect on websocket timeout, config parity

* remove authHeader from botFramework config

* merge

* restore code coverage

* extend gitattributes
2019-10-31 11:48:40 -07:00
Gabriel Ghizila 6c6134687d
Fix machine in the middle vulnerability for "https-proxy-agent" (#97)
- changes generated by npm audit fix --force
- upgrade "https-proxy-agent" to 3.0.0 as there is inconsistency on reports as what version fixes the vulnerability
2019-10-22 17:39:49 -07:00