UNPKG

web-speech-profanity

Version:

Web Speech API adapter to use Cognitive Services Speech Services for both speech-to-text and text-to-speech service.

6 lines (4 loc) 167 B
export default function subscribeEvent(target, name, handler) { target.addEventListener(name, handler); return () => target.removeEventListener(name, handler); }