Migushthe2nd / MsEdgeTTS

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

Browser compatibility changes #13

Closed yacine-bens closed 11 months ago

yacine-bens commented 1 year 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 11 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 11 months ago

Sounds great. I'll check it out.

Migushthe2nd commented 11 months ago

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