compulim / web-speech-cognitive-services

Polyfill Web Speech API with Cognitive Services Bing Speech for both speech-to-text and text-to-speech service.
https://compulim.github.io/web-speech-cognitive-services
MIT License
63 stars 18 forks source link

Can we use this library in angular app #84

Closed saisandeeppalla closed 3 years ago

saisandeeppalla commented 4 years ago

I am trying to use this library in angular but getting exception that web_speech_cognitive_services_lib_SpeechServices__WEBPACK_IMPORTED_MODULE_5__ is not a function

compulim commented 3 years ago

It seems your import statement is incorrect. Please see the following.

import { createSpeechRecognitionPonyfill } from 'web-speech-cognitive-services/lib/SpeechServices/SpeechToText';