Migushthe2nd / MsEdgeTTS

A simple Azure Speech Service module that uses the Microsoft Edge Read Aloud API
https://migushthe2nd.github.io/MsEdgeTTS/
MIT License
272 stars 40 forks source link

Browser compatibility changes #13

Closed yacine-bens closed 9 months ago

yacine-bens commented 9 months ago

In order to allow compatibility for both Nodejs and the browser with the same code, the following changes were made:

To use this library with Webpack 5, edit webpack.config.js:

Migushthe2nd commented 9 months ago

Sorry I totally forgot. I'll look at this in a few days. Also, coincidentally node.js 21 comes with an experimental browser-compatible websocket implementation 😛, so that's even better

yacine-bens commented 9 months ago

Sounds great. I'll check it out.

Migushthe2nd commented 9 months ago

I added a check so that it still uses the provided agent if it's running in node