UNPKG

web-speech-cognitive-services

Version:

Polyfill Web Speech API with Cognitive Services Speech-to-Text service

112 lines (111 loc) 4.41 kB
{ "name": "web-speech-cognitive-services", "version": "8.1.4", "description": "Polyfill Web Speech API with Cognitive Services Speech-to-Text service", "files": [ "./*.js", "./dist/" ], "exports": { ".": { "import": { "types": "./dist/web-speech-cognitive-services.d.mts", "default": "./dist/web-speech-cognitive-services.mjs" }, "require": { "types": "./dist/web-speech-cognitive-services.d.ts", "default": "./dist/web-speech-cognitive-services.js" } } }, "main": "./dist/web-speech-cognitive-services.js", "typings": "./dist/web-speech-cognitive-services.d.ts", "scripts": { "build": "tsup", "bump": "npm run bump:prod && npm run bump:dev", "bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true", "bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true", "precommit": "npm run precommit:eslint && npm run precommit:publint && npm run precommit:typescript:production && npm run precommit:typescript:test", "precommit:eslint": "ESLINT_USE_FLAT_CONFIG=false eslint ./src/", "precommit:publint": "publint", "precommit:typescript:production": "tsc --noEmit --project ./src/tsconfig.precommit.production.json", "precommit:typescript:test": "tsc --noEmit --project ./src/tsconfig.precommit.test.json", "prepack": "cp ../../CHANGELOG.md . && cp ../../LICENSE . && cp ../../README.md .", "start": "npm run build -- --onSuccess \"touch ../pages/package.json\" --watch", "switch": "cat package.json | jq --arg SWITCH_NAME $SWITCH_NAME -r '(.[\"switch:\" + $SWITCH_NAME] // {}) as $TEMPLATE | .devDependencies += ($TEMPLATE.devDependencies // {}) | .dependencies += ($TEMPLATE.dependencies // {})' | tee ./package.json.tmp && mv ./package.json.tmp ./package.json", "test": "jest" }, "repository": { "type": "git", "url": "https://github.com/compulim/web-speech-cognitive-services.git" }, "keywords": [ "cognitive services", "dictation", "microphone", "polyfill", "react", "speak", "speech recognition", "speech synthesis", "speech to text", "speechsynthesis", "stt", "text to speech", "tts", "unified speech", "utterance", "voice recognition", "web speech", "webrtc", "webspeech" ], "author": "William Wong <compulim@hotmail.com> (http://compulim.info/)", "license": "MIT", "bugs": { "url": "https://github.com/compulim/web-speech-cognitive-services/issues" }, "homepage": "https://github.com/compulim/web-speech-cognitive-services#readme", "pinDependencies": { "node-fetch": [ "2", "jsdom does not support node-fetch@3 because missing TextDecoder" ] }, "devDependencies": { "@babel/preset-env": "^7.28.5", "@babel/preset-typescript": "^7.28.5", "@jest/globals": "^30.2.0", "@tsconfig/recommended": "^1.0.13", "@tsconfig/strictest": "^2.0.8", "@types/dom-speech-recognition": "^0.0.7", "@types/jest": "^30.0.0", "@types/node": "^25.0.3", "dotenv": "^17.2.3", "esbuild": "^0.27.2", "global-agent": "^3.0.0", "jest": "^30.2.0", "jest-environment-jsdom": "^30.2.0", "lolex": "^6.0.0", "microsoft-cognitiveservices-speech-sdk": "^1.47.0", "node-fetch": "^2.7.0", "p-defer": "^4.0.1", "prettier": "^3.7.4", "publint": "^0.3.16", "tsup": "^8.5.1", "typescript": "^5.9.3" }, "dependencies": { "base64-arraybuffer": "^1.0.2", "event-as-promise": "^2.0.1", "event-target-shim": "^6.0.2", "memoize-one": "^6.0.0", "on-error-resume-next": "^2.0.3", "simple-update-in": "^2.2.0", "valibot": "^1.2.0", "web-speech-cognitive-services": "^8.1.4" }, "peerDependencies": { "microsoft-cognitiveservices-speech-sdk": "^1.17.0" } }