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.

17 lines (14 loc) 533 B
import createSpeechRecognitionPonyfill from './SpeechToText/createSpeechRecognitionPonyfill'; import createSpeechSynthesisPonyfill from './TextToSpeech/createSpeechSynthesisPonyfill'; import fetchAuthorizationToken from './fetchAuthorizationToken'; export default async function (...args) { return await { ...(await createSpeechRecognitionPonyfill(...args)), ...(await createSpeechSynthesisPonyfill(...args)) }; } export { createSpeechRecognitionPonyfill, createSpeechSynthesisPonyfill, fetchAuthorizationToken }