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
62 stars 18 forks source link

Get authorization token for every synthesis #71

Closed compulim closed 5 years ago

compulim commented 5 years ago

Fix #70.

Today, authorization token is only fetched when creating ponyfill.

We should get authorization token just before every synthesis to make sure the token is fresh.