compulim/web-speech-cognitive-services
Polyfill Web Speech API with Cognitive Services for both speech-to-text and text-to-speech service.
Implements a ponyfill pattern that wraps Azure Cognitive Services Speech SDK to provide W3C-compliant SpeechRecognition and SpeechSynthesis APIs without polluting the global namespace. Supports flexible credential management (subscription keys, authorization tokens, or custom hostnames) and integrates with Web Audio API for synthesis playback, requiring WebRTC for recognition on HTTPS or localhost. Available as both UMD bundle and NPM package, with optional AudioContext priming for Safari compatibility.
70 stars and 79,062 monthly downloads. Used by 1 other package. Available on npm.
Stars
70
Forks
19
Language
JavaScript
License
MIT
Category
Last pushed
Mar 05, 2026
Monthly downloads
79,062
Commits (30d)
0
Dependencies
8
Reverse dependents
1
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/voice-ai/compulim/web-speech-cognitive-services"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
Azure-Samples/Cognitive-Speech-TTS
Microsoft Text-to-Speech API sample code in several languages, part of Cognitive Services.
VolcanicArts/VRCOSC
A modular node-programming language, program creator, animation system, toolkit, router, and...
alphacep/vosk-unity-asr
Automatic Speech Recognition in Unity using Vosk library
Femoon/tts-azure-web
TTS Azure Web 是一个 Azure 文本转语音(TTS)网页应用,可以在本地或者云端使用你的 Azure Key 一键部署。TTS Azure Web is an Azure...
dectalk/dectalk
Modern builds for the 90s/00s DECtalk text-to-speech application.