{"_id":"@davi-ai/web-speech-cognitive-services-davi","_rev":"16-e07844959212a30024ce371d3247aa09","name":"@davi-ai/web-speech-cognitive-services-davi","dist-tags":{"latest":"3.0.1"},"versions":{"0.0.2":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"0.0.2","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":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@0.0.2","maintainers":[{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"}],"homepage":"https://github.com/compulim/web-speech-cognitive-services#readme","bugs":{"url":"https://github.com/compulim/web-speech-cognitive-services/issues"},"dist":{"shasum":"a461a3c339bd7b26cc3662dda212ea8301517c1a","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-0.0.2.tgz","fileCount":87,"integrity":"sha512-BV2F4uTh8wxNYeRs4hGfWmldIw1fW79LDxY6HUDyGeUZKmO3xvf7ePDYsUSzYvZmQh1fmuN8txbG0s5jDkKKqQ==","signatures":[{"sig":"MEQCIES8nvlv/xoxcO2nJfLoVR/DdQzM/RJQfBD1iCnNQNOqAiAW6HDWJsq1bZ2T1Wjk3rif9yWcD7+Z9edXSaNRbJb1Nw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":399999},"main":"lib/index.js","gitHead":"150ba13e5b40f490defa7d6626db848f4c2ca8a2","scripts":{"bump":"npm run bump:prod && npm run bump:dev","test":"jest","build":"babel --out-dir lib --ignore **/*.spec.js,**/*.test.js --source-maps true src/","clean":"rimraf lib","start":"npm run build -- --skip-initial-build --watch","eslint":"eslint src/**/*.js","bump:dev":"npm install --legacy-peer-deps $(cat package.json | jq -r '(.devDependencies | keys) - (.skipBump | keys) | .[]' | awk '{print $1 \"@latest\"}')","bump:prod":"npm install --legacy-peer-deps --save-exact $(cat package.json | jq -r '(.dependencies | keys) - (.skipBump | keys) | .[]' | awk '{print $1 \"@latest\"}')"},"_npmUser":{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},"skipBump":{"node-fetch":"node-fetch@3 does not support CommonJS"},"repository":{"url":"git+https://github.com/compulim/web-speech-cognitive-services.git","type":"git"},"_npmVersion":"9.5.1","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"18.16.0","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","@babel/runtime":"7.19.0","event-as-promise":"1.0.5","simple-update-in":"2.2.0","event-target-shim":"6.0.2","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"^1.29.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.3","lolex":"^6.0.0","dotenv":"^16.0.2","eslint":"^8.24.0","rimraf":"^3.0.2","prettier":"^2.7.1","@babel/cli":"^7.18.10","babel-jest":"^29.0.3","node-fetch":"^2.6.7","@babel/core":"^7.19.1","global-agent":"^3.0.0","@babel/preset-env":"^7.19.1","jest-environment-jsdom":"^29.0.3","@babel/plugin-transform-runtime":"^7.19.1","@babel/plugin-proposal-object-rest-spread":"^7.18.9","babel-plugin-transform-inline-environment-variables":"^0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_0.0.2_1690383062972_0.6841568064361292","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"1.0.0","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":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@1.0.0","maintainers":[{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"}],"dist":{"shasum":"5832ea77ccbb754c74e4de03517d94d5fc74276b","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-1.0.0.tgz","fileCount":88,"integrity":"sha512-bBXS1JryTTLMMz/cgpGSowEI6COe2htcRzOnLB660Gw7oopjCk1RO8IYOiwoMotU3xiNHtE6ebrt6rzt7N/Xdg==","signatures":[{"sig":"MEUCIQCAMrRfGd8oiJwlI4yfMKpdCUD1c4n1rhSXkkPhY9Vs4QIgcy5CSmSeY9wV3A+1QuAtBKnv4t92EHOfUMJQJZski4Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":397485},"main":"lib/index.js","scripts":{"bump":"npm run bump:prod && npm run bump:dev","test":"jest","build":"babel --out-dir lib --ignore **/*.spec.js,**/*.test.js --source-maps true src/","clean":"rimraf lib","start":"npm run build -- --skip-initial-build --watch","eslint":"eslint src/**/*.js","bump:dev":"npm install --legacy-peer-deps $(cat package.json | jq -r '(.devDependencies | keys) - (.skipBump | keys) | .[]' | awk '{print $1 \"@latest\"}')","bump:prod":"npm install --legacy-peer-deps --save-exact $(cat package.json | jq -r '(.dependencies | keys) - (.skipBump | keys) | .[]' | awk '{print $1 \"@latest\"}')"},"_npmUser":{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},"skipBump":{"node-fetch":"node-fetch@3 does not support CommonJS"},"repository":{"url":"none","type":"git"},"_npmVersion":"9.6.7","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"18.17.0","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","@babel/runtime":"7.19.0","event-as-promise":"1.0.5","simple-update-in":"2.2.0","event-target-shim":"6.0.2","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"^1.29.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.3","lolex":"^6.0.0","dotenv":"^16.0.2","eslint":"^8.24.0","rimraf":"^3.0.2","prettier":"^2.7.1","@babel/cli":"^7.18.10","babel-jest":"^29.0.3","node-fetch":"^2.6.7","@babel/core":"^7.19.1","global-agent":"^3.0.0","@babel/preset-env":"^7.19.1","jest-environment-jsdom":"^29.0.3","@babel/plugin-transform-runtime":"^7.19.1","@babel/plugin-proposal-object-rest-spread":"^7.18.9","babel-plugin-transform-inline-environment-variables":"^0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_1.0.0_1690553145347_0.9127563614475214","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"1.0.1","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":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@1.0.1","maintainers":[{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"}],"dist":{"shasum":"8a72ebc8b3d65a342a948fba0916a3d6683090c6","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-1.0.1.tgz","fileCount":88,"integrity":"sha512-SeWathWPScJbaAiE+dAAb49J8fbCxzyr5XXO5nRb0vXCd4/QpT8eu1SNg+aWh8BYO+vvBzxe6qeombK8NQp1tg==","signatures":[{"sig":"MEQCIHjap/KE/rAwdVp5kJmsCshPanHOAfSvxzfbrbed06eNAiA0tVyb41klplnrlWvNdzMFhrzoJ2h4C+qpzS3Augs1kA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":402642},"main":"lib/index.js","scripts":{"bump":"npm run bump:prod && npm run bump:dev","test":"jest","build":"babel --out-dir lib --ignore **/*.spec.js,**/*.test.js --source-maps true src/","clean":"rimraf lib","start":"npm run build -- --skip-initial-build --watch","eslint":"eslint src/**/*.js","bump:dev":"npm install --legacy-peer-deps $(cat package.json | jq -r '(.devDependencies | keys) - (.skipBump | keys) | .[]' | awk '{print $1 \"@latest\"}')","bump:prod":"npm install --legacy-peer-deps --save-exact $(cat package.json | jq -r '(.dependencies | keys) - (.skipBump | keys) | .[]' | awk '{print $1 \"@latest\"}')"},"_npmUser":{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},"skipBump":{"node-fetch":"node-fetch@3 does not support CommonJS"},"repository":{"url":"none","type":"git"},"_npmVersion":"9.6.7","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"18.17.1","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","@babel/runtime":"7.19.0","event-as-promise":"1.0.5","simple-update-in":"2.2.0","event-target-shim":"6.0.2","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"^1.29.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.3","lolex":"^6.0.0","dotenv":"^16.0.2","eslint":"^8.24.0","rimraf":"^3.0.2","prettier":"^2.7.1","@babel/cli":"^7.18.10","babel-jest":"^29.0.3","node-fetch":"^2.6.7","@babel/core":"^7.19.1","global-agent":"^3.0.0","@babel/preset-env":"^7.19.1","jest-environment-jsdom":"^29.0.3","@babel/plugin-transform-runtime":"^7.19.1","@babel/plugin-proposal-object-rest-spread":"^7.18.9","babel-plugin-transform-inline-environment-variables":"^0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_1.0.1_1693903266956_0.8013542425063471","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"1.0.2","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":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@1.0.2","maintainers":[{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"}],"dist":{"shasum":"5a4eb400b4ec83947f2e25d35d2586505af9c607","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-1.0.2.tgz","fileCount":88,"integrity":"sha512-vdgHLIb2uPiig5mvjrc7IwkZSVd0RxsIowWYLyoUG8tYhNvhDrpphjh7vm6HD4yFh0XhWIMCtOMztfwLI0vc9w==","signatures":[{"sig":"MEUCIBEJyJvdWlKXYOENayrO2TIo4epX2ohS6/DZAS4Q0WclAiEA+5+xTIcq60DWhrRF16Wyij4S4IvIxssdNpMyf8Da+4s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":405285},"main":"lib/index.js","scripts":{"bump":"npm run bump:prod && npm run bump:dev","test":"jest","build":"babel --out-dir lib --ignore **/*.spec.js,**/*.test.js --source-maps true src/","clean":"rimraf lib","start":"npm run build -- --skip-initial-build --watch","eslint":"eslint src/**/*.js","bump:dev":"npm install --legacy-peer-deps $(cat package.json | jq -r '(.devDependencies | keys) - (.skipBump | keys) | .[]' | awk '{print $1 \"@latest\"}')","bump:prod":"npm install --legacy-peer-deps --save-exact $(cat package.json | jq -r '(.dependencies | keys) - (.skipBump | keys) | .[]' | awk '{print $1 \"@latest\"}')"},"_npmUser":{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},"skipBump":{"node-fetch":"node-fetch@3 does not support CommonJS"},"repository":{"url":"none","type":"git"},"_npmVersion":"9.6.7","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"18.17.1","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","@babel/runtime":"7.19.0","event-as-promise":"1.0.5","simple-update-in":"2.2.0","event-target-shim":"6.0.2","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"^1.29.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.3","lolex":"^6.0.0","dotenv":"^16.0.2","eslint":"^8.24.0","rimraf":"^3.0.2","prettier":"^2.7.1","@babel/cli":"^7.18.10","babel-jest":"^29.0.3","node-fetch":"^2.6.7","@babel/core":"^7.19.1","global-agent":"^3.0.0","@babel/preset-env":"^7.19.1","jest-environment-jsdom":"^29.0.3","@babel/plugin-transform-runtime":"^7.19.1","@babel/plugin-proposal-object-rest-spread":"^7.18.9","babel-plugin-transform-inline-environment-variables":"^0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_1.0.2_1693924641136_0.09306658409327828","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"2.0.3","author":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@2.0.3","maintainers":[{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"}],"dist":{"shasum":"c1608fc77190f2335f4f369fdd129093be4aee98","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-2.0.3.tgz","fileCount":7,"integrity":"sha512-pp1JJuXtc0tZK7W12nYNGUnTpVL/WnM4kOQuy6Vi7/jWoygHMcElQMrSfpmfAtacYqMcmu3dFcd7/ZYjwHbTnw==","signatures":[{"sig":"MEQCIBcx0dNSd/shrIIlwfWbXavsEXS04O+w4XT32vRYQ/80AiB/pUxtg66ovdZLx59E1NdnYNCd66B2mE33fAzRYBU4iQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":158998},"main":"dist/index.js","types":"dist/index.d.ts","source":"src/index.ts","gitHead":"88357789a54c4716394efd941894e10c682192ab","scripts":{"build":"parcel build","start":"parcel watch"},"_npmUser":{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},"repository":{"url":"none","type":"git"},"_npmVersion":"9.8.1","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"18.18.2","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","simple-update-in":"2.2.0","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"^1.32.0"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.0.2","eslint":"^8.24.0","parcel":"^2.10.1","prettier":"^2.7.1","node-fetch":"^2.6.7","typescript":"^5.2.2","@types/node":"^20.8.10","global-agent":"^3.0.0","@parcel/packager-ts":"^2.10.1","@parcel/transformer-typescript-types":"^2.10.1"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_2.0.3_1701270748375_0.43731253169129713","host":"s3://npm-registry-packages"}},"2.0.4":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"2.0.4","author":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@2.0.4","maintainers":[{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"}],"dist":{"shasum":"5910bae32f1b3297a8fea77725ec291ae391cdc6","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-2.0.4.tgz","fileCount":7,"integrity":"sha512-fexHEJ43cTOQbJ8D7B3pdxBqCNsGb8xLN0r3+Sxjzf7ueL23ut9YkvZsxa2ekn7wtCsmY3iho94p7uXV7V6JYg==","signatures":[{"sig":"MEQCIGe4e1GmrKdLUaAG+Ky7vshGyktcJcqkEkyQcDM/R4RaAiBnbDsK9+mL9Yd2CodBiu6P+LtG4ZTZQiGMBcRIqPa26g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":159685},"main":"dist/index.js","types":"dist/index.d.ts","source":"src/index.ts","gitHead":"6c246ac1a85f444cd9b5bfdabd7d0761b508e1e0","scripts":{"build":"parcel build","start":"parcel watch"},"_npmUser":{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},"repository":{"url":"none","type":"git"},"_npmVersion":"9.8.1","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"18.18.2","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","simple-update-in":"2.2.0","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"^1.33.1"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.0.2","eslint":"^8.24.0","parcel":"^2.10.1","prettier":"^2.7.1","node-fetch":"^2.6.7","typescript":"^5.2.2","@types/node":"^20.8.10","global-agent":"^3.0.0","@parcel/packager-ts":"^2.10.1","@parcel/transformer-typescript-types":"^2.10.1"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_2.0.4_1702391085007_0.3072194278419169","host":"s3://npm-registry-packages"}},"2.0.5":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"2.0.5","author":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@2.0.5","maintainers":[{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"}],"dist":{"shasum":"b81a0c9749188c100403730e0633b38ff92b7c1d","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-2.0.5.tgz","fileCount":7,"integrity":"sha512-IXwOWnW1hxGvcSMxpm+V4uqeR0e895D169qf6ViyEyehgq8ppaHnFt6n9PIIIT4S81p6ZuZ8ZbBb7A1EADjuPA==","signatures":[{"sig":"MEQCIEHq2yM5vuiF+s+/OflmPPkKDClnvp99vzkCKCKtSEj3AiAw1uOdPCIiR9ggI21TtkHuzvwibk8pWW2FrRnxIr89XQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":160731},"main":"dist/index.js","types":"dist/index.d.ts","source":"src/index.ts","gitHead":"938b80c97a06532ee9b786ff00df6b2b07cc974a","scripts":{"build":"parcel build","start":"parcel watch"},"_npmUser":{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},"repository":{"url":"none","type":"git"},"_npmVersion":"9.8.1","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"18.18.2","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","simple-update-in":"2.2.0","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"^1.33.1"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.0.2","eslint":"^8.24.0","parcel":"^2.10.1","prettier":"^2.7.1","node-fetch":"^2.6.7","typescript":"^5.2.2","@types/node":"^20.8.10","global-agent":"^3.0.0","@parcel/packager-ts":"^2.10.1","@parcel/transformer-typescript-types":"^2.10.1"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_2.0.5_1702468713934_0.5982403731672246","host":"s3://npm-registry-packages"}},"2.0.6":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"2.0.6","author":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@2.0.6","maintainers":[{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"}],"dist":{"shasum":"f69e15212b57d89bf249880631e5849d56f34800","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-2.0.6.tgz","fileCount":7,"integrity":"sha512-xgrV8ICz1pEMjS0L9qQflcEGo7s9QaxETri+K8PvvRAmAm3dtM7CofLgW91R/3u3lXcf8CQ9rvjpO3y7ZGRllg==","signatures":[{"sig":"MEUCIQDAg49B7wJtnncTBA8FKM9nDjHQJKQ14Kba8j+TCrZc7wIgcZ2I8ekqGd02SI2cFfX/L+uuS7xxFIT2UuZxwRI1rZA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":163792},"main":"dist/index.js","types":"dist/index.d.ts","source":"src/index.ts","gitHead":"9f2672fad50f2678c15744770f191a0d772f0822","scripts":{"build":"parcel build","start":"parcel watch"},"_npmUser":{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},"repository":{"url":"none","type":"git"},"_npmVersion":"9.8.1","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"18.18.2","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","simple-update-in":"2.2.0","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"^1.33.1"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.0.2","eslint":"^8.24.0","parcel":"^2.10.1","prettier":"^2.7.1","node-fetch":"^2.6.7","typescript":"^5.2.2","@types/node":"^20.8.10","global-agent":"^3.0.0","@parcel/packager-ts":"^2.10.1","@parcel/transformer-typescript-types":"^2.10.1"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_2.0.6_1702480562568_0.21074799574938852","host":"s3://npm-registry-packages"}},"2.0.7":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"2.0.7","author":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@2.0.7","maintainers":[{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"}],"dist":{"shasum":"2dc5e0d7a7b27b648657a0b2eb09089fea7a25b8","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-2.0.7.tgz","fileCount":7,"integrity":"sha512-KQxsRXTR9rZhiCexLZvL57nHv8EhkarEJtjdR3gjCd/LVLHas8uupnWj3Q4rPESzFZ5Pp/hXSBD3P2/HU3oAjA==","signatures":[{"sig":"MEUCIBSkUr3+n6cVQw1hIpU95+QdOz3RGj+2kfJ29Vnutlm2AiEAvwMbFTJeFGE7eQkOzLjQ3GsDFCZ6XsFJdjDS88qQNbQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":164723},"main":"dist/index.js","types":"dist/index.d.ts","source":"src/index.ts","gitHead":"35ebbcc5f063dcc4af419898ff3c14cfa522c7ac","scripts":{"build":"parcel build","start":"parcel watch"},"_npmUser":{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},"repository":{"url":"none","type":"git"},"_npmVersion":"9.8.1","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"18.18.2","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","simple-update-in":"2.2.0","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"^1.33.1"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.0.2","eslint":"^8.24.0","parcel":"^2.10.1","prettier":"^2.7.1","node-fetch":"^2.6.7","typescript":"^5.2.2","@types/node":"^20.8.10","global-agent":"^3.0.0","@parcel/packager-ts":"^2.10.1","@parcel/transformer-typescript-types":"^2.10.1"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_2.0.7_1704718622919_0.7946954567532731","host":"s3://npm-registry-packages"}},"2.0.8":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"2.0.8","author":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@2.0.8","maintainers":[{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"}],"dist":{"shasum":"9ddcb251909ecc87e1f9b55f1c6a75023b1d6d16","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-2.0.8.tgz","fileCount":7,"integrity":"sha512-MPlUTdbHCo8VPj20KcgzkpK1B65t5ttFa8DyYp17GVyOiF9K+uSfc4o4Wx4foqSfoKrim6990OWHLneSNPBEKQ==","signatures":[{"sig":"MEUCIQD0SI6awBSQ3qu4VBEDkCUz6UW1spx6MwJhILa1/BkRBQIgMD5Q+XJKxp6Xdg4TFNTcy1cFXtU4fSYXoSTn1drfQtA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":165064},"main":"dist/index.js","types":"dist/index.d.ts","source":"src/index.ts","gitHead":"e12535ad3f6139da70047f71176ed4fa5d512d88","scripts":{"build":"parcel build","start":"parcel watch"},"_npmUser":{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},"repository":{"url":"none","type":"git"},"_npmVersion":"9.8.1","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"18.18.2","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","simple-update-in":"2.2.0","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"^1.33.1"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.0.2","eslint":"^8.24.0","parcel":"^2.10.1","prettier":"^2.7.1","node-fetch":"^2.6.7","typescript":"^5.2.2","@types/node":"^20.8.10","global-agent":"^3.0.0","@parcel/packager-ts":"^2.10.1","@parcel/transformer-typescript-types":"^2.10.1"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_2.0.8_1707138493596_0.4019724065706014","host":"s3://npm-registry-packages"}},"2.0.9":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"2.0.9","author":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@2.0.9","maintainers":[{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"genestadrien","email":"adrien.genest@davi.ai"}],"dist":{"shasum":"ed04353851cb0a9c166835c966d0c8206e694520","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-2.0.9.tgz","fileCount":7,"integrity":"sha512-adAXQ/ZDWE6TodRuPz70IjEWvvVltlGzKyJQHVb+yZTtS1mcW9AO88OMNges/0Vr2oAbsWLIoZ4OMtR2KOPdSg==","signatures":[{"sig":"MEUCIQCwgQvLetcWsjrFaHYWvd6qlL4EZ/vmekkjQY4H2c3OoQIgM9npGqN4wCixM6o1mxf+oFwzMP9Ke3/LqyOOQagwbdY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":165398},"main":"dist/index.js","types":"dist/index.d.ts","source":"src/index.ts","gitHead":"7af4444eb6ac56cf3b3a856210895eb730508b71","scripts":{"build":"parcel build","start":"parcel watch"},"_npmUser":{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},"repository":{"url":"none","type":"git"},"_npmVersion":"10.8.2","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"18.20.8","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","simple-update-in":"2.2.0","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"^1.33.1"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.0.2","eslint":"^8.24.0","parcel":"^2.10.1","prettier":"^2.7.1","node-fetch":"^2.6.7","typescript":"^5.2.2","@types/node":"^20.8.10","global-agent":"^3.0.0","@parcel/packager-ts":"^2.10.1","@parcel/transformer-typescript-types":"^2.10.1"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_2.0.9_1745501632914_0.8041152200115789","host":"s3://npm-registry-packages-npm-production"}},"2.0.10":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"2.0.10","author":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@2.0.10","maintainers":[{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"genestadrien","email":"adrien.genest@davi.ai"}],"dist":{"shasum":"e54a62d1275dfefb192a2fe3d9fdd59ee6c92acf","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-2.0.10.tgz","fileCount":7,"integrity":"sha512-m2V1TseNM/17nxPDXHTaQBTXbvwjNye0OjMUOIUUHQciUBUU3iv7S6fMjo80/slMPpBlfjjhud3EtkFxnC5mpw==","signatures":[{"sig":"MEQCIBVkNWWSNk+z3fKkRH9+dOREvrInQ0IBVRb28UH3j0WLAiA1xPSl8MRDSm17R+KV0ERG9GCt3ts8Ta2YwpNG0jMvGA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":165398},"main":"dist/index.js","types":"dist/index.d.ts","source":"src/index.ts","gitHead":"b780cfbd1574387554824a9be818bea67e5ee745","scripts":{"build":"parcel build","start":"parcel watch"},"_npmUser":{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},"repository":{"url":"none","type":"git"},"_npmVersion":"10.8.2","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"18.20.8","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","simple-update-in":"2.2.0","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"1.33.1"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.0.2","eslint":"^8.24.0","parcel":"^2.10.1","prettier":"^2.7.1","node-fetch":"^2.6.7","typescript":"^5.2.2","@types/node":"^20.8.10","global-agent":"^3.0.0","@parcel/packager-ts":"^2.10.1","@parcel/transformer-typescript-types":"^2.10.1"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_2.0.10_1748330525698_0.9950949609944009","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"2.1.0","author":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@2.1.0","maintainers":[{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"genestadrien","email":"adrien.genest@davi.ai"}],"dist":{"shasum":"3a105da271901682f7d4f6d0ddd08d029e9195f3","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-2.1.0.tgz","fileCount":7,"integrity":"sha512-WT08lL0CYhaJAzBL8Oj2mo7+EkP1q/Bb/ogt9Yj6LHlpVckIRplELgGRWAcytp+opIPmTZfzqeVwpupSj1MaNQ==","signatures":[{"sig":"MEYCIQC6BsDKfRjNCDWGnjR2tqe/bickFqzl2b9A2X0gAXqktgIhAMLVEmlc+vE/7FWupp6ZKpwn17GB3mRGX+VHBKK8aZhq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":166049},"main":"dist/index.js","types":"dist/index.d.ts","source":"src/index.ts","gitHead":"f4dd41189353ab26f83198bbeb0e83ab82d0d5f8","scripts":{"build":"parcel build","start":"parcel watch"},"_npmUser":{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},"repository":{"url":"none","type":"git"},"_npmVersion":"10.9.4","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"22.21.1","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","simple-update-in":"2.2.0","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"1.33.1"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.0.2","eslint":"^8.24.0","parcel":"^2.10.1","prettier":"^2.7.1","node-fetch":"^2.6.7","typescript":"^5.2.2","@types/node":"^20.8.10","global-agent":"^3.0.0","@parcel/packager-ts":"^2.10.1","@parcel/transformer-typescript-types":"^2.10.1"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_2.1.0_1763366785171_0.6982266553239169","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@davi-ai/web-speech-cognitive-services-davi","version":"3.0.0","author":{"name":"DAVI"},"license":"MIT","_id":"@davi-ai/web-speech-cognitive-services-davi@3.0.0","maintainers":[{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"genestadrien","email":"adrien.genest@davi.ai"}],"dist":{"shasum":"af9792a8682222e14e8322c40c85b2976d0540a6","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-3.0.0.tgz","fileCount":7,"integrity":"sha512-SkFYY0H/SeM2WTGIiq+yk0M98d8cNLvTvUTpveqf4N7K64l2WcOH9B7ssYbsxk9yxdvIOG8hpnS/g9mIV5gv3Q==","signatures":[{"sig":"MEQCIFWQ26sZtjf5gnkeSW4ww1757Ul2xO5iu1ZjxfKtmiNFAiAadcO9HkWwJnfMzJCTYxMydZF9s6zC5FTHiWUpa59jbA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":166911},"main":"dist/index.js","types":"dist/index.d.ts","source":"src/index.ts","gitHead":"3a04cb1444edaa4a61b91b250a25d978303dbbdb","scripts":{"build":"parcel build","start":"parcel watch"},"_npmUser":{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},"repository":{"url":"none","type":"git"},"_npmVersion":"10.9.4","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"_nodeVersion":"22.21.1","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","simple-update-in":"2.2.0","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"1.47.0"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.0.2","eslint":"^8.24.0","parcel":"^2.10.1","prettier":"^2.7.1","node-fetch":"^2.6.7","typescript":"^5.2.2","@types/node":"^20.8.10","global-agent":"^3.0.0","@parcel/packager-ts":"^2.10.1","@parcel/transformer-typescript-types":"^2.10.1"},"_npmOperationalInternal":{"tmp":"tmp/web-speech-cognitive-services-davi_3.0.0_1768904712688_0.13721328316628734","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"_id":"@davi-ai/web-speech-cognitive-services-davi@3.0.1","dist":{"shasum":"aa330e83abbe2f19870f17a90e3e26b5ef10c162","tarball":"https://registry.npmjs.org/@davi-ai/web-speech-cognitive-services-davi/-/web-speech-cognitive-services-davi-3.0.1.tgz","fileCount":7,"integrity":"sha512-TB/QDd7DqB4Khqb9x6AxlOMi2KnaOrpj3Lch30ClOr2hn5tYjr8o96hmaN4y9XyG5KtqTktPV/gQoUWUmXGMBw==","signatures":[{"sig":"MEQCIBLgWYgUV2iBWH09gPIcdpYMV+u2bDKihQfTNpwMYe68AiA8hXj8wpGhXyk6vyQaGYZpUNJnsRBLeC64Y0qeKJleWQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDB/Z+3gbz+tfamF7vjixZ4Kv1DdikYeIgvF0ANcFRzwQIhALlDC1JlERPkArmx+ki9yF8BTnQLTxFvMjKANgT1Ql3x"}],"unpackedSize":169108},"main":"dist/index.js","name":"@davi-ai/web-speech-cognitive-services-davi","types":"dist/index.d.ts","author":{"name":"DAVI"},"source":"src/index.ts","gitHead":"0a692e1f4e57afcef4231f8470e1bbdeca9495d1","license":"MIT","scripts":{"build":"parcel build","start":"parcel watch"},"version":"3.0.1","_npmUser":{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},"repository":{"url":"none","type":"git"},"_npmVersion":"10.9.8","description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","directories":{},"maintainers":[{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"genestadrien","email":"adrien.genest@davi.ai"}],"_nodeVersion":"22.23.2","dependencies":{"p-defer":"4.0.0","memoize-one":"6.0.0","p-defer-es5":"2.0.1","simple-update-in":"2.2.0","base64-arraybuffer":"1.0.2","on-error-resume-next":"1.1.0","microsoft-cognitiveservices-speech-sdk":"1.47.0"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.0.2","eslint":"^8.24.0","parcel":"^2.10.1","prettier":"^2.7.1","node-fetch":"^2.6.7","typescript":"^5.2.2","@types/node":"^20.8.10","global-agent":"^3.0.0","@parcel/packager-ts":"^2.10.1","@parcel/transformer-typescript-types":"^2.10.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/web-speech-cognitive-services-davi_3.0.1_1790584580413_0.253333428150573"}}},"time":{"created":"2023-07-26T14:51:02.830Z","modified":"2026-09-28T08:36:20.740Z","0.0.2":"2023-07-26T14:51:03.326Z","1.0.0":"2023-07-28T14:05:45.693Z","1.0.1":"2023-09-05T08:41:07.157Z","1.0.2":"2023-09-05T14:37:21.326Z","2.0.3":"2023-11-29T15:12:28.584Z","2.0.4":"2023-12-12T14:24:45.205Z","2.0.5":"2023-12-13T11:58:34.174Z","2.0.6":"2023-12-13T15:16:02.752Z","2.0.7":"2024-01-08T12:57:03.101Z","2.0.8":"2024-02-05T13:08:13.767Z","2.0.9":"2025-04-24T13:33:53.119Z","2.0.10":"2025-05-27T07:22:05.891Z","2.1.0":"2025-11-17T08:06:25.369Z","3.0.0":"2026-01-20T10:25:12.819Z","3.0.1":"2026-09-28T08:36:20.493Z"},"author":{"name":"DAVI"},"license":"MIT","repository":{"url":"none","type":"git"},"description":"Polyfill Web Speech API with Cognitive Services Speech-to-Text service","maintainers":[{"name":"sbiaudet","email":"sebastien.biaudet@davi.ai"},{"name":"guillaume.gay","email":"guillaume.gay@davi.ai"},{"name":"genestadrien","email":"adrien.genest@davi.ai"}],"readme":"# web-speech-cognitive-services-davi\r\n\r\nThis package is based on a fork of [web-speech-cognitive-services](https://www.npmjs.com/package/web-speech-cognitive-services).\r\nThe primary goal is the use the SpeechSynthetizer from [microsoft-cognitiveservices-speech-sdk](https://www.npmjs.com/package/microsoft-cognitiveservices-speech-sdk) in the TTS part of the package, in order to receive the boundaries and visemes on a speech synthesis to overcome the existing issues of the original package.\r\nNow using Typescript !\r\n\r\n## Install\r\n\r\n```bash\r\nnpm install @davi-ai/web-speech-cognitive-services-davi\r\n```\r\n\r\n## SPEECH SYNTHESIS\r\n### Changes compared to original package\r\n\r\nIn order to use speech synthesis, you still need to use the original process :\r\n- create a speechSynthesisPonyfill (type SpeechSynthesisPonyfillType) with your credentials, containing a speechSynthesis object\r\n- wait for the voices to be loaded\r\n- create a SpeechSynthesisUtterance\r\n- changes : attach callbacks to the utterance (no more events)\r\n- play the utterance\r\n\r\nUse the imports from the new package with :\r\n```js\r\nimport { createSpeechSynthesisPonyfill } from '@davi-ai/web-speech-cognitive-services-davi'\r\nimport type { SpeechSynthesisPonyfillType, SpeechSynthesisUtterance } from '@davi-ai/web-speech-cognitive-services-davi'\r\n```\r\n\r\n#### Events\r\n\r\nYou can now listen to the following events by attaching callbacks to the utterance :\r\n- onsynthesisstart : fired when the synthesis starts\r\n- onsynthesiscompleted : fired when the synthesis is completed\r\n- onboundary : receive an event with the following data \r\n    ```js\r\n      {\r\n        name: string,                                                   // the word / punctuation\r\n        elapsedTime: number,                                            // time elapsed since the beginning of the speech\r\n        duration: number,                                               // duration of the speech for this word / punctuation\r\n        boundaryType: 'WordBoundary' | 'PunctuationBoundary' | 'Viseme' // type of the boundary. 'Viseme' was added by us for private needs\r\n      }\r\n    ```\r\n    This event is fired for each boundary and each viseme in the synthesis\r\n- onmark : receive an event with the following data\r\n    ```js\r\n      {\r\n        name: string,         // the name of the bookmark\r\n        elapsedTime: number   // time elapsed since the beginning of the speech\r\n      }\r\n    ```\r\n- onviseme : receive an event with the following data\r\n    ```js\r\n      {\r\n        name: string,           // the id of the viseme\r\n        elapsedTime: number,    // time elapsed since the beginning of the speech\r\n        duration: 0,\r\n        boundaryType: 'Viseme'\r\n      }\r\n    ```\r\n    This event is fired for each viseme in the synthesis.\r\n    [(Viseme id documentation here)](https://learn.microsoft.com/en-us/azure/ai-services/speech-service/how-to-speech-synthesis-viseme?tabs=visemeid&pivots=programming-language-javascript)\r\n- examples :\r\n  - `utterance.onsynthesisstart = (): void => { 'Synthesis started !' }`\r\n  - `utterance.onsynthesiscompleted = (): void => { 'Synthesis ended !' }`\r\n  - `utterance.onboundary = (event): void => { console.log('Boundary data : ', event.boundaryType, event.name, event.elapsedTime, event.duration )}`\r\n\r\n#### Improvements    \r\n\r\nUsing the SpeechSynthetizer class leads to several improvements in the functionalities :\r\n- the `start` event is now linked to the `oncanplaythrough` event of the AudioElement used by the AudioContext. This allows a better synchronisation at the beginning of the speech.\r\n- you can call `mute()` and `unmute()` on the ponyfill.speechSynthesis object anytime\r\n\r\n#### Other Features  \r\n\r\n##### Retrieve synthesized data\r\n\r\nYou can retrieve all data synthesized in an ArrayBuffer once the synthesis is finished, by using `ponyfill.speechSynthesis.synthesizeAndGetArrayData(utterance: SpeechSynthesisUtterance, callback: (data: ArrayBuffer) => void)`\r\nThe `data` will contain the whole synthesis and can then be used (for example you can create a Blob from these data and play it).\r\n\r\nExample\r\n```js\r\n  const callback = (data: ArrayBuffer): void => {\r\n    const blob = new Blob([data], { type: 'audio/mp3' })\r\n    const url = URL.createObjectURL(blob)\r\n\r\n    const audioElement = document.getElementById('myaudio')\r\n    audioElement.src = url\r\n    audioElement.play()\r\n  }\r\n\r\n  ponyfill.speechSynthesis.synthesizeAndGetArrayData(utterance, callback)\r\n```\r\n\r\n#### Use a stream to get data\r\n\r\nYou can pass a stream as secondary argument to the `speak` method, to prevent the synthesizer from playing the synthesized data and retrieve them in the stream on your side.\r\nThe stream must be a `AudioOutputStream.createPullStream()` object, `AudioOutputStream` coming from the `microsoft-cognitiveservices-speech-sdk` package.\r\n\r\nExample\r\n```js\r\n  import { AudioOutputStream } from 'microsoft-cognitiveservices-speech-sdk'\r\n\r\n  let stream = AudioOutputStream.createPullStream()\r\n  ponyfill.speechSynthesis.speak(utterance, stream)\r\n```\r\n\r\n## SPEECH RECOGNITION\r\n### Changes compared to original package\r\n\r\nIn order to use speech recognition, the process has been modified in order to mimic the one used in speech synthesis :\r\n- create a speechRecognitionPonyfill with your credentials and a set of options that will be detailed below, containing a speechRecognition object\r\n- attach callbacks to the speechRecognition object\r\n- start recognition\r\n\r\nUse the imports from the new package with :\r\n```js\r\nimport { createSpeechRecognitionPonyfill } from '@davi-ai/web-speech-cognitive-services-davi'\r\nimport type { SpeechRecognitionPonyfillType, SpeechRecognitionProps } from '@davi-ai/web-speech-cognitive-services-davi'\r\n```\r\n\r\n#### Recognition options\r\n\r\n```ts\r\ninterface SpeechRecognitionProps {\r\n  autoStart?: boolean           // Start recognizing after creation\r\n  passive?: boolean             // Passive / active recognition, see below\r\n  wakeWords?: Array<string>     // List of words that trigger the onwakeup callback in passive mode only\r\n  continuous?: boolean\r\n  lang?: string\r\n  grammarsList?: Array<string> | string\r\n  interimResults?: boolean\r\n  timerBeforeSpeechEnd?: number // Set delay (in ms) for recognition ending after something has been recognized (silence time at the end of the recognition)\r\n  debug?: boolean               // Log calls to events when true\r\n}\r\n\r\nconst options: SpeechRecognitionProps = {\r\n  autoStart: false,\r\n  passive: true,\r\n  wakeWords: ['hello', 'world'],\r\n  continuous: true,\r\n  interimResults: true,\r\n  grammarsList: [],\r\n  lang: 'en-US',\r\n  timerBeforeSpeechEnd: 3000,\r\n  debug: false\r\n}\r\n\r\nconst ponyfillCredentials = {\r\n  region: 'westus',\r\n  authorizationToken / subscriptionKey: '<connexion data>'\r\n}\r\n\r\nconst ponyfill = createSpeechRecognitionPonyfill(\r\n  { credentials: ponyfillCredentials },\r\n  options\r\n)\r\n```\r\n\r\n#### Modes\r\n\r\nYou can use active (passive = false) or passive mode (passive = true) for recognition. Active mode is the one that existed before, while passive mode has been added.\r\nThe passive mode is intended to run as a background task (with continuous = true), to detect specific words (wakeWords) and then call the onwakeup callback.\r\nThis comes from the fact that we can't use custom keywords in speech recognition in javascript as of today [From Microsoft docs here](https://learn.microsoft.com/en-us/azure/ai-services/speech-service/custom-keyword-basics?pivots=programming-language-javascript)\r\n\r\n#### Callbacks\r\n\r\nHere is the basic implementation. You can overload each and any by attaching callbacks to your speechRecognitionPonyfill.speechRecognition, if you need.\r\n\r\n```ts\r\n// These 2 callbakcs are called only in active mode\r\nonstart = (): void => {};\r\nonend = (): void => {};\r\n\r\n// These 2 callbakcs are called only in passive mode\r\nonpassivestart = (): void => {};\r\nonpassiveend = (): void => {};\r\n\r\nonaudiostart = (): void => {};\r\nonaudioend = (): void => {};\r\n\r\nonsoundstart = (): void => {};\r\nonsoundend = (): void => {};\r\n\r\nonspeechstart = (): void => {};\r\nonspeechend = (): void => {};\r\n\r\nonerror = (value: any): void => {\r\n  console.log('Error : ', value);\r\n};\r\nonabort = (): void => {\r\n  this._debug && console.log('Recognition aborted');\r\n}\r\n\r\n// List of results from the current recognition (word by word in active mode, only when a recognition is finished in passive mode)\r\nonresult = (value: Array<SpeechRecognitionResultListItem> | SpeechRecognitionResultList): void => {\r\n  this._debug && console.log('Result : ', value);\r\n};\r\n\r\n// Last result when passive mode is used\r\nonpassiveresult = (value: Array<SpeechRecognitionResultListItem> | SpeechRecognitionResultList): void => {\r\n  this._debug && console.log('Passive Result : ', value);\r\n};\r\n\r\n// Called when a 'wake word' is found in the current recognition in passive mode\r\nonwakeup = (): void => {\r\n  this._debug && console.log('Wake up !');\r\n};\r\n```\r\n\r\n#### New methods\r\n\r\nThree new methods were implemented, to make it easier to use some functionalities :\r\n- async changeLanguage(lang?: string): Promise<void> -> call this one to change the recognition language in one go. This method stops the current recognition, changes the language, and starts a new recognition if the continuous parameter in on.\r\n- async toggleContinuousPassiveToActive(): Promise<void> -> when toggling from continuous passive to active mode by changing the 'passive' and 'continuous' variables, if there is a current recognition, this one will not stop and will continue, adding existing results to the future ones. In our use case, we don't want that to happen. We prefer stopping the current recognition, to start a brand new one without existing result.\r\n- async toggleContinuousActiveToPassive(): Promise<void> -> when toggling from active to continuous passive mode by changing the 'passive' and 'continuous' variables, the current active recognition is oftern already ended, so to prevent troubles we force stopping the current recognition if it is still running, to start a new continuous one.","readmeFilename":"README.md"}