{"_id":"@audc/microsoft-cognitiveservices-speech-sdk","name":"@audc/microsoft-cognitiveservices-speech-sdk","dist-tags":{"latest":"1.48.0"},"versions":{"1.48.0":{"name":"@audc/microsoft-cognitiveservices-speech-sdk","author":{"name":"Microsoft Corporation"},"homepage":"https://docs.microsoft.com/azure/cognitive-services/speech-service/","version":"1.48.0","license":"MIT","description":"Microsoft Cognitive Services Speech SDK for JavaScript","keywords":["microsoft","cognitiveservices","speech","sdk","javascript","typescript","ts","js","browser","websocket","speechtotext","texttospeech"],"bugs":{"url":"https://github.com/Microsoft/cognitive-services-speech-sdk-js/issues"},"repository":{"type":"git","url":"git+https://github.com/Microsoft/cognitive-services-speech-sdk-js.git"},"browser":{"asn1.js-rfc2560":false,"asn1.js-rfc5280":false,"https-proxy-agent":false,"simple-lru-cache":false,"ws":false,"fs":false,"agent-base":false,"tls":false,"net":false},"main":"distrib/lib/microsoft.cognitiveservices.speech.sdk.js","module":"distrib/lib/microsoft.cognitiveservices.speech.sdk.js","types":"distrib/lib/microsoft.cognitiveservices.speech.sdk.d.ts","devDependencies":{"@azure/identity":"^4.9.1","@types/bent":"^7.3.2","@types/jest":"^27.0.0","@types/node":"^12.12.30","@types/node-fetch":"^2.6.12","@types/prettier":"<2.6.0","@types/request":"^2.48.3","@types/rimraf":"^3.0.0","@types/uuid":"^9.0.0","@types/ws":"^7.4.0","@typescript-eslint/eslint-plugin":"^5.26.0","@typescript-eslint/eslint-plugin-tslint":"^5.27.0","@typescript-eslint/parser":"^5.27.0","asn1.js":"^5.2.0","dts-bundle-webpack":"^1.0.2","eslint":"^8.16.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.3.2","eslint-plugin-prefer-arrow":"^1.2.3","gulp":"^5.0.0","gulp-eslint":"^6.0.0","gulp-rename":"^2.0.0","gulp-sourcemaps":"^2.6.5","gulp-terser":"^2.1.0","gulp-typescript":"^5.0.1","jest":"^27.0.0","jest-junit":"^12.0.0","node-fetch":"^2.6.1","rimraf":"^3.0.2","semver":"^6.3.0","source-map-loader":"^3.0.1","ts-jest":"^27.0.0","tslint":"^5.20.1","typescript":"4.5","webpack":"^5.72.1","webpack-stream":"^7.0.0"},"scripts":{"build":"gulp compress --gulpfile gulpfile.cjs && gulp build --gulpfile gulpfile.cjs","test":"npm run lint && npm run jest --coverage","test:connection":"node -e \"process.platform === 'win32' ? require('child_process').execSync('powershell -File ./scripts/run-connection-tests.ps1', {stdio: 'inherit'}) : require('child_process').execSync('./scripts/run-connection-tests.sh', {stdio: 'inherit'})\"","test:non-connection":"node -e \"process.platform === 'win32' ? require('child_process').execSync('powershell -File ./scripts/run-non-connection-tests.ps1', {stdio: 'inherit'}) : require('child_process').execSync('./scripts/run-non-connection-tests.sh', {stdio: 'inherit'})\"","jest":"jest","lint":"eslint -c .eslintrc.cjs --ext .ts src","linttest":"eslint -c .eslintrc.cjs --ext .ts tests","setversion":"chmod +x ./ci/set-version.sh && ./ci/set-version.sh","prepare":"npm run build","setup":"npm install --package-lock-only --ignore-scripts --no-audit"},"jest-junit":{"suiteName":"jest tests","outputName":"./test-javascript-junit.xml","classNameTemplate":"{filename}-{title}","titleTemplate":"{filename}-{title}","ancestorSeparator":" � ","suiteNameTemplate":"{filepath}","includeConsoleOutput":true},"dependencies":{"@azure/core-auth":"^1.9.0","@types/webrtc":"^0.0.37","agent-base":"^6.0.1","bent":"^7.3.12","https-proxy-agent":"^4.0.0","uuid":"^9.0.0","ws":"^8.18.2"},"overrides":{"extend":"3.0.2","set-value":"4.0.1","minimist":"1.2.6","source-map":"~0.8.0-beta.0","chokidar":{"glob-parent":"6.0.2"},"glob-stream":{"glob-parent":"6.0.2"}},"sideEffects":false,"_id":"@audc/microsoft-cognitiveservices-speech-sdk@1.48.0","gitHead":"043c32ac0cc2e12f03f6b121b92be1ef2ec52705","_nodeVersion":"22.22.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-mfCXZbUBaVS2BVpZeKl8BSaLcgeQaY5MnXwrJKCI9BBVs1bqKoi9UNJccG1o2l7kcY2EQsICLHfQDvDOPX5O/g==","shasum":"06571353db0e16017afbcdc34a74fd63c8f898c6","tarball":"https://registry.npmjs.org/@audc/microsoft-cognitiveservices-speech-sdk/-/microsoft-cognitiveservices-speech-sdk-1.48.0.tgz","fileCount":1150,"unpackedSize":8165988,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB7dpNNU2sP1xfZt51ZNoegE+sP+ugT5L0A1RkfRb8JIAiBmGT5DTbmHsYnQOeSxFdL8ApeKcHiNMAdqgNgwAx+VhQ=="}]},"_npmUser":{"name":"orgads","email":"orgads@gmail.com"},"directories":{},"maintainers":[{"name":"orgads","email":"orgads@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/microsoft-cognitiveservices-speech-sdk_1.48.0_1773750878104_0.3965747251628966"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-17T12:34:37.990Z","1.48.0":"2026-03-17T12:34:38.336Z","modified":"2026-03-17T12:34:38.569Z"},"maintainers":[{"name":"orgads","email":"orgads@gmail.com"}],"description":"Microsoft Cognitive Services Speech SDK for JavaScript","homepage":"https://docs.microsoft.com/azure/cognitive-services/speech-service/","keywords":["microsoft","cognitiveservices","speech","sdk","javascript","typescript","ts","js","browser","websocket","speechtotext","texttospeech"],"repository":{"type":"git","url":"git+https://github.com/Microsoft/cognitive-services-speech-sdk-js.git"},"author":{"name":"Microsoft Corporation"},"bugs":{"url":"https://github.com/Microsoft/cognitive-services-speech-sdk-js/issues"},"license":"MIT","readme":"# Microsoft Cognitive Services Speech SDK for JavaScript\n\n[![npm version](https://badge.fury.io/js/microsoft-cognitiveservices-speech-sdk.svg)](https://badge.fury.io/js/microsoft-cognitiveservices-speech-sdk)\n[![Downloads](https://img.shields.io/npm/dm/microsoft-cognitiveservices-speech-sdk.svg)](https://www.npmjs.com/package/microsoft-cognitiveservices-speech-sdk)\n\nThe Microsoft Cognitive Services Speech SDK for JavaScript is the JavaScript version of the Microsoft Cognitive Services Speech SDK. An [in-depth description of feature set, functionality, supported platforms, as well as installation options](https://aka.ms/csspeech) is available.\n\nThe JavaScript versions of the Cognitive Services Speech SDK supports browser scenarios as well as the Node.js environment.\n\n## Installing\n\nFor the latest stable version:\n\n```bash\nnpm install microsoft-cognitiveservices-speech-sdk\n```\n\n## Documentation\n\n* [Quick tutorial - Node.js](https://docs.microsoft.com/azure/cognitive-services/speech-service/quickstart-js-node)\n* [API Reference](https://aka.ms/csspeech/javascriptref)\n* [Speech SDK Homepage](https://aka.ms/csspeech)\n\n## Samples\n\n* Quick-start samples for Node.js: In the [Speech SDK samples repo](https://aka.ms/csspeech/samples) under quickstart/javascript/node.\n* Quick-start samples for Browser: In the [Speech SDK samples repo](https://aka.ms/csspeech/samples) under quickstart/javascript/browser.\n* Other Node.js and Browser samples: In the [Speech SDK samples repo](https://aka.ms/csspeech/samples) under samples/js.\n\n## Building\n\nThis source code for the Cognitive Services Speech SDK (JavaScript) is available in a public [GitHub repository](https://github.com/Microsoft/cognitive-services-speech-sdk-js). You are not required to go through the build process. We create prebuilt packages tuned for your use-cases. These are updated in regular intervals.\n\nIn order to build the Speech SDK, ensure that you have [Git](https://git-scm.com/downloads) and [Node.js](https://nodejs.org/) installed. Version requirement for Node: 12.44.0 or higher (or 14.17.0 or higher for Node 14).\n\nClone the repository:\n\n```bash\ngit clone https://github.com/Microsoft/cognitive-services-speech-sdk-js\n```\n\nChange to the Speech SDK directory:\n\n```bash\ncd cognitive-services-speech-sdk-js\n```\n\nRun setup to pull updated dependency versions:\n\n``` bash | powershell\nnpm run setup\n```\n\nInstall the required packages:\n\n``` bash | powershell\nnpm install\n```\n\nRun the build:\n\n``` bash | powershell\nnpm run build\n```\n\n## Testing\n\n### Run all tests\n\nRun tests (see [ci/build.yml](ci/build.yml)) -- complete results require several specifically-configured subscriptions, but incomplete results can be obtained with a subset (expect and ignore failures involving missing assignments).\n\nAt a minimum, invoking `npm run test` will compile/lint the test files to catch early problems in test code changes.\n\n``` batch\nRunTests.cmd ^\nSpeechSubscriptionKey:SPEECH_KEY ^\nSpeechRegion:SPEECH_REGION ^\nSpeechTestEndpointId:CUSTOM_ENDPOINT ^\nBotSubscription:BOT_KEY ^\nBotRegion:BOT_REGION ^\nCustomVoiceSubscriptionKey:CUSTOM_VOICE_KEY ^\nCustomVoiceRegion:CUSTOM_VOICE_REGION\n```\n\n### Run a subset of tests\n\n* Edit the file `jest.config.js`. Replace the regex expressions in `testRegex: \"tests/.*Tests\\\\.ts$\"` with one that defines the test file (or files)\nyou want to run. For example, to only run tests defined in `AutoSourceLangDetectionTests.ts`, replace it with `testRegex: \"tests/AutoSourceLangDetectionTests.ts\"`. Do this is for the two project `jsdom` and `node`.\n\n* Option 1: Use a secrets file. Create the file `secrets\\TestConfiguration.ts`. It should import the default configuration settings and define the values of the mandatory ones for this test, as well as and any additional optional settings. For example, to run the `AutoSourceLangDetectionTests.ts` tests, the required mandatory values are the speech key and region (using a fake key here as an example):\n\n    ```javascript\n    import { Settings } from \"../tests/Settings\";\n    Settings.SpeechSubscriptionKey = \"0123456789abcdef0123456789abcdef\";\n    Settings.SpeechRegion = \"westcentralus\";\n    ```\n\n    Then to run the tests type `RunTests.cmd` in the root of the repo.\n\n* Option 2: Use command line arguments. Instead of creating `secrets\\TestConfiguration.ts`, pass the values directly to `RunTests.cmd`. For the above example, this would be:\n\n    ``` Batch\n    RunTests.cmd SpeechSubscriptionKey:0123456789abcdef0123456789abcdef SpeechRegion:westcentralus\n    ```\n\n* Option 3: Edit the file `tests\\Settings.ts` directly and enter values needed to run the test.\n\n* See summary of the test results in `test-javascript-junit.xml`.\n\n## Data / Telemetry\n\nThis project collects data and sends it to Microsoft to help monitor our service performance and improve our products and services. Read the [Microsoft\nPrivacy Statement](https://aka.ms/csspeech/privacy) to learn more.\n\nTo disable telemetry, you can call the following API:\n\n```javascript\n// disable telemetry data\nsdk.Recognizer.enableTelemetry(false);\n```\n\nThis is a global setting and will disable telemetry for all recognizers (already created or new recognizers).\n\nWe strongly recommend you keep telemetry enabled. With telemetry enabled you transmit information about your platform (operating system and possibly, Speech Service relevant information like microphone characteristics, etc.), and information about the performance of the Speech Service (the time when you did send data and when you received data). It can be used to tune the service, monitor service performance and stability, and might help us to analyze reported problems. Without telemetry enabled, it is not possible for us to do any form of detailed analysis in case of a support request.\n\n## Contributing\n\nThis project welcomes contributions and suggestions.  Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit <https://cla.microsoft.com>.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n","readmeFilename":"README.md","_rev":"1-d6d4848a5882c4a8663d0b0260dbae15"}